COI1 Timers Counters in 8051
COI1 Timers Counters in 8051
● 2 Timers/Counters – 16 Bit
● Counts UP and Generates an Overflow after reaching Maximum
● Timer
– Delay Generator
– Uses Oscillator as Clock
● Counter
– Event Counter
– External Events are Counted
● SFR's
– TMOD,TCON, TH1,TL1,TH0,TL0
FFFF
FF
FF
So the time taken to run one Time taken to run one opcode
byte of opcode is T1 is 1 micro second
22/09/15 8051 Timer/Counter - Copyleft
Count to be given for Timer –
Case 1(Time Period Given to Generate)
Procedure Example
2) XTAL=12Mhz
MOV TMOD,#01
MOV TL0,#0F0h
MOV TH0,#0FF0h
SETB TR0
After how much time will the timer 0 Flag be set?
● https://www.sites.google.com/site/sripathroykoganti/my-forms