albus
Junior Member level 2
- Joined
- Dec 26, 2010
- Messages
- 22
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,458
I think this is an easy question but how can I set the interrupt to every 40 ms with 10 MHz crystal? I'm using PIC16F877.
I couldn't figure out the prescalar and postscalar. If everyone of them would be their maximum value which is 16, 255, 16. It would be equal to 26 ms or so I guess?
I couldn't figure out the prescalar and postscalar. If everyone of them would be their maximum value which is 16, 255, 16. It would be equal to 26 ms or so I guess?
Code:
setup_timer_2( T2_DIV_BY_x, y, z);