PDA

View Full Version : 18f4520 TMR0 8Bit question



elcrcp
- 1st June 2013, 21:05
Hi guys, a simple quick question, should i load TMR0L or TMR0 when using timer0 in 8 bit mode ?

T0CON=%11000010 ;Timer 0 is on, 8 bit mode, 1/8 prescaler
TMR0=254 ;start timer

Ioannis
- 4th June 2013, 09:51
Only if you want to start from a specific value. Otherwise, this timer counts as long as there is system clock.

Ioannis

Charlie
- 4th June 2013, 10:09
Page 124 of the datasheet shows that TMR0L is used in 8 bit mode.