em78p5830aa ELAN Microelectronics Corp, em78p5830aa Datasheet - Page 35

no-image

em78p5830aa

Manufacturer Part Number
em78p5830aa
Description
8-bit Micro-controller 8-bit Micro-controller
Manufacturer
ELAN Microelectronics Corp
Datasheet
__________________________________________________________________________________________________________________________________________________________________
* This specification is subject to be changed without notice.
• Fosc: Input clock.
• Prescaler ( T1P0 and T1P1/T2P1 and T2P0 ): Options of 1:2, 1:8, 1:32, and 1:64 are defined by TMRX. It is
• TMR1X and TMR2X (TMR1H/TWR1L and TMR2H/TMR2L ):Timer X register; TMRX is increased until
• PRDX ( PRD1 and PRD2 ): PWM period register.
When defining TMRX, refer to the related registers of its operation as shown in prescale register. It must be
noted that the PWMX bits must be disabled if their related TMRXs are employed. That is, bit 7 and bit 6 of
the PWMCON register must be set to ‘0’.
Related Control Registers(R5 PAGE3) of TMR1 and TMR2
Timer programming procedures/steps
(1) Load PRDX with the TIMER period.
(2) Enable interrupt function by writing IOCF PAGE0, if required
(3) Load a desired value to PWMCON with the TMRX prescaler value and enable both TMRX and disable
PWM2E
cleared when any type of reset occurs.
it matches with PRDX, and then is reset to 0. TMRX cannot be read.
Bit 7
PWMX.
Fosc
Fosc
1:2
1:8
1:32
1:64
1:2
1:8
1:32
1:64
Data Bus
PWM1E
Bit 6
T1P0 T1P1 T1EN
T2P0 T2P1 T2EN
MUX
MUX
T2EN
Bit 5
Fig.14 TMRX Block Diagram
*TMR1X = TMR1H + TMR1L;
*TMR2X = TMR2H +TMR2L
T1EN
Bit 4
T2P1
Bit 3
TMR1X
TMR2X
33
T2P0
Bit 2
PRD2
PRD1
T1P1
reset
Bit 1
reset
Comparator
Comparator
T1P0
Bit 0
To PWM2IF
8-bit Micro-controller
To PWM1IF
Data Bus
Period
Match
12/1/2004 V1.6
Period
Match
EM785830AA

Related parts for em78p5830aa