em78p257 ELAN Microelectronics Corp, em78p257 Datasheet - Page 42

no-image

em78p257

Manufacturer Part Number
em78p257
Description
8-bit Microcontroller
Manufacturer
ELAN Microelectronics Corp
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
em78p257AM
Manufacturer:
SEMTECH
Quantity:
600
4.7 Timer/Counter
This specification is subject to change without prior notice.
Table 10 Related Control Registers of the TCCX
Table 11 Related Status/Data Registers of TCCX
Address
Set predict value
Address
Osci input or
External input
0x0A
0x0B
0x08
0x0B
0x09
0x05
0x06
0x07
0x08
0x09
0x0A
1. Overview
2. Function Description
3. Programming the Related Registers
TCCA
Timer1 (TCCA ) and Timer3 (TCCC) are eight-bit clock counters. Timer2 (TCCB) is a 16-bit clock counter. TCCA,
TCCB, and TCCC can be read and written, and cleared at every reset condition.
Fig.14 shows the TIMER block diagram. Each signal and block is described as follows :
• Osci input : Input clock.
• TCCX: Timer 1~3 register; TCCX increases until it matches with zero, and then reload the previous
When defining TCCX, refer to the related registers of its operation as shown in the Table 10 and Table 11 below.
value. If TCCXIE is enabled, TCCXIF will be set at the same time.
TCCCR/IOC80 TCC2E
TCCBH/IOC71 TCCBH7
TCCBL/IOC61
TCCC/IOC81
TCCA/IOC51
TCR(1)/RA
TCR(2)/RB
HTR/IOCA1
PTR/IOCB1
TCCSR/R9
LTR/IOC91
Name
Name
Overflow
TCCAEN
Set TCCAIF
CMPOUT4 CMPOUT3 CMPOUT2 CMPOUT1
TCCBL7
Bit 7
TCCC7
TCCA7
HTR7
LTR7
PTR7
Bit 7
0
0
TCCBIE/0 TCCBTS/0 TCCBTE/0
TCC4E
Bit 6
Set predict value
TCCBH6
TCCBL6
Osci input or
External input
TCCC6
TCCA6
0
HTR6
LTR6
PTR6
Bit 6
TCCB
Fig. 14 TIMER Block Diagram
TCC6E
Bit 5
TCCBH5
TCCBL5
TCCC5
TCCA5
HTR5
0
LTR5
PTR5
Bit 5
42
Overflow
TCCBEN
TCCBH4 TCCBH3 TCCBH2 TCCBH1 TCCBH0
TCCBE
TCCBL4
TCCC4
TCCA4
HTR4
Bit 4
LTR4
PTR4
Bit 4
Set TCCBIF
0
TCCBL3
Bit 3
TCCC3
TCCA3
HTR3
LTR3
PTR3
0
0
0
Bit 3
Set predict value
Osci input or
External input
0
TCCAIE/0 TCCATS/0 TCCATE/0
TCCCIE/0 TCCCTS/0 TCCCTE/0
TCCC
Bit 2
0
TCCBL2
TCCCIF
TCCC2
TCCA2
HTR2
LTR2
PTR2
Bit 2
EM78P257
Bit 1
TCCBL1
TCCBIF
TCCC1
Overflow
0
TCCA1
HTR1
LTR1
PTR1
Bit 1
TCCCEN
07.27.2004 (V1.4)
OTP ROM
Set TCCCIF
TCCBL0
Bit 0
TCCAIF
TCCC0
TCCA0
HTR0
LTR0
PTR0
Bit 0
0

Related parts for em78p257