71M6541F-DB Maxim Integrated Products, 71M6541F-DB Datasheet - Page 39

no-image

71M6541F-DB

Manufacturer Part Number
71M6541F-DB
Description
Power Management Modules & Development Tools 71M6541 Eval Kit
Manufacturer
Maxim Integrated Products
Datasheet

Specifications of 71M6541F-DB

Lead Free Status / RoHS Status
Lead free / RoHS Compliant
2.4.6 Timers and Counters
The 80515 has two 16-bit timer/counter registers: Timer 0 and Timer 1. These registers can be configured
for counter or timer operations.
In timer mode, the register is incremented every machine cycle, i.e., it counts up once for every 12 periods
of the MPU clock. In counter mode, the register is incremented when the falling edge is observed at the
corresponding input signal T0 or T1 (T0 and T1 are the timer gating inputs derived from certain DIO pins,
see
count rate is 1/2 of the clock frequency (CKMPU). There are no restrictions on the duty cycle, however
to ensure proper recognition of the 0 or 1 state, an input should be stable for at least 1 machine cycle.
Four operating modes can be selected for Timer 0 and Timer 1, as shown in
TMOD (SFR 0x89) Register, shown in
operation is controlled by the TCON (SFR 0x88) Register, which is shown in
and TR0 (TCON[4]) in the TCON register start their associated timers when set.
Table 23
v1.1
PCON[7]
2.5.8 Digital
M1
Bit
In Mode 3, TL0 is affected by TR0 and gate control bits, and sets the TF0 flag on overflow, while TH0
is affected by the TR1 bit, and the TF1 flag is set on overflow.
0
0
1
1
specifies the combinations of operation modes allowed for Timer 0 and Timer 1.
M0
SMOD
0
1
0
1
I/O). Since it takes 2 machine cycles to recognize a 1-to-0 event, the maximum input
Symbol
Timer 0 - mode 0
Timer 0 - mode 1
Timer 0 - mode 2
Mode 0
Mode 1
Mode 2
Mode 3
Table 23: Allowed Timer/Counter Mode Combinations
Mode
Table 21: PCON Register Bit Description (SFR 0x87)
© 2008–2011 Teridian Semiconductor Corporation
Table 22: Timers/Counters Mode Description
Function
The SMOD bit doubles the baud rate when set
Function
13-bit Counter/Timer mode with 5 lower bits in the TL0 or TL1 (SFR
0x8A or SFR 0x8B) register and the remaining 8 bits in the TH0 or TH1
(SFR 0x8C or SFR 0x8D) register (for Timer 0 and Timer 1, respectively).
The 3 high order bits of TL0 and TL1 are held at zero.
16-bit Counter/Timer mode.
8-bit auto-reload Counter/Timer. The reload value is kept in TH0 or
TH1, while TL0 or TL1 is incremented every machine cycle. When
TL(x) overflows, a value from TH(x) is copied to TL(x) (where x is 0
for counter/timer 0 or 1 for counter/timer 1.
If Timer 1 M1 and M0 bits are set to 1, Timer 1 stops.
If Timer 0 M1 and M0 bits are set to 1, Timer 0 acts as two independent
8-bit Timer/Counters.
Table
Not allowed
24, is used to select the appropriate mode. The timer/counter
Mode 0
Yes
Yes
Not allowed
Timer 1
Mode 1
Yes
Yes
Table 25.
Table 22
Mode 2
Yes
Yes
Yes
Bits TR1 (TCON[6])
and
Table
23. The
39

Related parts for 71M6541F-DB