zic2410 California Eastern Laboratories, zic2410 Datasheet - Page 29

no-image

zic2410

Manufacturer Part Number
zic2410
Description
Single-chip Solution, Compliant With Zigbee
Manufacturer
California Eastern Laboratories
Datasheet
1.7.2 TIMER 2/3, Pulse Width Modulator (PWM) 2/3 
TIMER 2/3
The embedded MCU includes two 16-bit timers (Timer 2 and Timer 3).
Timer2 acts as a general 16-bit timer. Time-out period is calculated by Equation 1.
If the time-out period is set too short, excessive interrupts will occur causing abnormal operation
of the system. It is recommended to set a sufficient time-out period for Timer2 (> 100µs).
Timer3 acts as a general 16-bit timer. Time-out period of Timer3 is calculated by Equation 2.
T23CON (TIMER2/3 CONTROL REGISTER, 0xA9)
This register is used to control Timer2 and Time3.
TL2/TL3/TH2/TH3 (TIMER2/3 TIMER REGISTER, 0xAC, 0xAD, 0xAA, 0xAB)
Register (TH2, TL2) and (TH3, TL3) are 16-bit timer counter register for Timer2 and Timer3.
Bit
7:4
7:0
7:0
7:0
7:0
3
2
1
0
Rev A
Name
TR3
TR2
TH2
TH3
TL2
TL3
M3
M2
F
F
SYS
SYS
GATE
INT0
Reserved
Timer3 Run: When this field is set to ‘1’, Timer3 is operational.
Timer3 PWM Mode: When this field is set to ‘1’, Timer3 is put into
PWM mode.
Timer2 Run: When this field is set to ‘1’, Timer2 is operational.
Timer2 PWM Mode: When this field is set to ‘1’, Timer2 is put into
PWM mode.
Timer2 High Byte Data
Timer2 Low Byte Data
Timer3 High Byte Data
Timer3 Low Byte Data
T0
1/12
1/12
Equation 1 – Time-out Period Calculation (Timer2)
Equation 2 – Time-out Period Calculation (Timer3)
Table 12 – Timer 2 and Timer 3 Registers
TR0
TR0
0
1
C/T
T
Document No. 0005-05-07-00-000
2
Figure 15 – Timer0Mode3
=
C/T = 0
8
ZIC2410 Datasheet
×
(
256
Descriptions
×
fsystem
TH
(8bits)
(8bits)
TH0
TL0
2
+
TL
2
+
) 1
TF1
TF0
Interrupt
Interrupt
Timer 0
Timer 1
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Page 29 of 119
Reset
Value
0x00
0x00
0x00
0x00
0
0
0
0
0

Related parts for zic2410