Mohammad Mohammad
/
hw2
UCLA-EEM202A 2nd assignment. time synchronization
Revision 2:2661fa86e1d3, committed 2014-03-06
- Comitter:
- mohammmo
- Date:
- Thu Mar 06 08:30:47 2014 +0000
- Parent:
- 1:3f76ed8cd999
- Commit message:
- .04us period with PIT
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 3f76ed8cd999 -r 2661fa86e1d3 main.cpp --- a/main.cpp Thu Mar 06 08:23:41 2014 +0000 +++ b/main.cpp Thu Mar 06 08:30:47 2014 +0000 @@ -31,7 +31,7 @@ PIT->MCR = 0x00; //clear interrup before enabling it PIT->CHANNEL[1].TFLG |= PIT_TFLG_TIF_MASK; - PIT->CHANNEL[1].LDVAL = 0x00BEBC1F; //1 second + PIT->CHANNEL[1].LDVAL = 0x00; //.04us //enable interrup PIT->CHANNEL[1].TCTRL |= PIT_TCTRL_TIE_MASK; //enable interrtup