em78p5842 ELAN Microelectronics Corp, em78p5842 Datasheet - Page 13

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.
R7 (PORT7 I/O data, ADC, Duty cycle of PWM )
PAGE0 (PORT7 I/O data register)
Bit0 (P70): PORT70 is a multi-function pin. In Crystal mode, by setting P70S in code option, PORT70 will be
Bit1 (P71): PORT71 is shared with /RESET pin. By setting P71S in code option, PORT71 will defined to INPUT
Bit3 ~ Bit6 (P73 ~ P76): 4 - bit PORT7 I/O data register
PAGE2 : (undefined) not allowed to use
PAGE3 (DT1H: the Most Significant Byte ( Bit 1 ~ Bit 0 ) of Duty Cycle of PWM)
R8 (Data RAM address, PWM1 period)
PAGE0: (undefined) not allowed to use
PAGE1: (undefined) not allowed to use
PAGE2: (undefined) not allowed to use
PAGE3 (PRD1: Period of PWM)
PRD1[7] PRD1[6] PRD1[5] PRD1[4] PRD1[3] PRD1[2] PRD1[1] PRD1[0]
PAGE1 (ADC resolution selection bit and ADC MSB output data)
R/W-0
general purpose IO or PLLC. Please do not enable PLL function if PORT70 defined to IO. In IRC or ERIC
mode, this pin will defined to PORT70 and P70S will be ignored. P70 is PORT70 I/O data register and user
can use IOC register to define input or output each bit.
pin or /RESET pin. This register is a read only bit. P71 dose not support internal pull high function. If user
want to use P71 interrupt, external pull high is necessary.
Bit 6 ~ Bit 7 : (undefined) not allowed to use
Bit 0~Bit 1: Undefined register. These two bits are not allowed to use. These bits must clear to 0.
Bit 2(ADRES) : Resolution selection for ADC
Bit 3 : (undefined) not allowed to use
Bit 4 ~ Bit 5(AD8 ~ AD9) : The most significant 2 bit of 10-bit ADC conversion output data
Bit 0 ~ Bit 1 (PWM1[8] ~ PWM1[9]): The Most Significant two bits of PWM1 Duty Cycle
Bit 2 ~ Bit 7 : Unused.
The content of this register is a period (time base) of PWM1. The frequency of PWM1 is the reverse of the
period.
X
X
7
User can use IOC register to define input or output each bit.
X
0 Î ADC is 8-bit resolution
1 Î ADC is 10-bit resolution
Combine there two bits and RB PAGE1 as complete 10-bit ADC conversion output data.
7
7
7
-
-
-
When 8-bit resolution is selected, the most significant(MSB) 8-bit data output of the internal 10-bit ADC
will be mapping to RB PAGE1 so R7 PAGE1 bit 4 ~5 will be of no use.
When 10-bit resolution is selected, 10-bit data output of the internal 10-bit ADC will be exactly mapping
to RB PAGE1 and R7 PAGE1 bit 4 ~5.
R/W-0
R/W
P76
X
X
6
6
6
6
-
-
R/W-0
R/W
AD9
P75
R
X
5
5
5
5
-
R/W-0
R/W
AD8
P74
X
R
4
4
4
4
-
R/W-0
R/W
P73
X
X
3
3
3
3
-
-
11
R/W-0
ADRES
R/W-0
X
X
2
2
2
-
-
2
PWM1[9] PWM1[8]
R/W-0
R/W-0
P71
R
1
1
1
R
X
1
R/W-0
R/W-0
R/W
P70
0
0
0
EM785840/5841/5842
8-bit Micro-controller
R
X
0
2004/11/10 V1.2

Related parts for em78p5842