em78p5842 ELAN Microelectronics Corp, em78p5842 Datasheet - Page 12

no-image

em78p5842

Manufacturer Part Number
em78p5842
Description
8-bit Micro-controller
Manufacturer
ELAN Microelectronics Corp
Datasheet
__________________________________________________________________________________________________________________________________________________________________
* This specification is subject to change without notice.
R6 (PORT6 I/O data, PWM control)
PAGE0 (PORT6 I/O data register)
Bit0 ~ Bit1 (P60 ~ P61): PORT60 and PORT61 can be used on IRC and ERIC mode. In these two mode, PORT60
Bit2 ~ Bit6 (P62 ~ P65): 4-bit PORT6(2~5) I/O data register
Bit6 ~ Bit7 : Unused register. These bits are not allowed to use.
PAGE1, PAGE2 : (undefined) not allowed to use
These two registers are not allowed to use.
PAGE3 (DT1L: the Least Significant Byte ( Bit 7 ~ Bit 0) of Duty Cycle of PWM1)
PWM1[7] PWM1[6] PWM1[5] PWM1[4] PWM1[3] PWM1[2] PWM1[1] PWM1[0]
R/W-0
and PORT61 will defined to general purpose IO. In crystal mode, PORT60 and PORT61 are defined to crystal
input (XIN and XOUT) pins and these two bits are undefined.
Bit 2 ~ Bit 3 ( T2P0 ~ T2P1 ): TMR2 clock prescale option bits.
Bit 4 (T1EN): TMR1 enable bit
Bit 5 (T2EN): TMR2 enable bit
Bit 6 (PWM1E): PWM1 enable bit
Bit 7 (PWM2E): PWM2 enable bit
User can use IOC register to define input or output each bit.
X
0 Î TMR1 is off (default value).
1 Î TMR1 is on.
0 Î TMR2 is off (default value).
1 Î TMR2 is on.
0 Î PWM1 is off (default value), and its related pin carries out the PC1 function;
1 Î PWM1 is on, and its related pin will be set to output automatically.
0 Î PWM2 is off (default value), and its related pin carries out the PC2 function.
1 Î PWM2 is on, and its related pin will be set to output automatically.
7
7
A specified value keeps the output of PWM1 to stay at high until the value matches with TMR1.
-
T2P1
0
0
1
1
R/W-0
X
6
6
-
T2P0
0
1
0
1
R/W-0
R/W
P65
5
5
1:2(Default)
R/W-0
Prescale
R/W
P64
4
4
1:32
1:64
1:8
R/W-0
R/W
P63
3
3
10
R/W-0
R/W
P62
2
2
R/W-0
R/W
P61
1
1
R/W-0
R/W
P60
0
0
EM785840/5841/5842
8-bit Micro-controller
2004/11/10 V1.2

Related parts for em78p5842