How do you use Timer0 in your program? Like is it used to generate an interruptHey..
How can we turn off Timer0 after starting it in a code.
ControllerIC16F887
Have you checked the datasheet before writing this Look atThe timer0 control register T0CON has a bit, TMR0ON, just clear it to turn the timer off.
Edit: IMO Table 5-1 should show bits 4 and 5 of the OPTION reg shaded.When used as a counter, the Timer0 module will increment on every rising or falling edge of the T0CKI pin. The incrementing edge is determined by the T0SE bit of the OPTION register. Counter mode is selected by setting the T0CS bit of the OPTION register to ‘1’.
Please take a look here http://en.wikipedia.org/wiki/Bitwise_operations_in_C This should also be described in the manual. For your own sake you should dig up your compiler manual and learn to know it. It can be a great help often.okay thank you all.
what does this mean ?
PIR1 & (1<<TMR1IF)
i am confused with 1<<TMR1IF..
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
N | Problem with PIC18F Timer0 (Counter Mode) in Interrupt. | Microcontrollers | 7 | |
M | Temperature indicator Project | Microcontrollers | 8 | |
D | PIC16F84A TIMER0 | Microcontrollers | 8 | |
A | Embedded C - timer0 and ADC problem | Homework Help | 7 | |
A | C programming - How to compare timer0 reading to an earlier timer reading | Homework Help | 7 |
by Jake Hertz
by Jake Hertz
by Jake Hertz
by Aaron Carman