em78p5842 ELAN Microelectronics Corp, em78p5842 Datasheet - Page 16

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.
RB (ADC input data buffer)
PAGE0 : (undefined) not allowed to use
PAGE1 (ADC output data register)
Bit 0 ~ Bit 7 (AD0 ~ AD7) : The last significant 8 bit of 10-bit or whole of 8 bit resolution ADC conversion
output data. Combine there 8 bits and R7 PAGE1 bit4~5 as complete 10-bit ADC conversion output data in 10
bit resolution mode.
PAGE 2 (undefined) not allowed to use
PAGE3 (PRD2: Period of PWM2)
RC (PORTC I/O data, Counter1 data)
PAGE0 (PORT9 I/O data register)
PAGE1 (Counter1 data register)
Bit 0 ~ Bit 7 (CN10 ~ CN17) : Counter1's buffer that user can read and write.
PAGE2,3 (undefined) not allowed to use.
RD (Undefined register)
PAGE0 (undefined) not allowed to use
PAGE1 (Counter2 data register)
Bit 0 ~ Bit 7 (CN20 ~ CN27) : Counter2's buffer that user can read and write.
PRD2[7] PRD2[6] PRD2[5] PRD2[4] PRD2[3] PRD2[2] PRD2[1] PRD2[0]
R/W-0
R/W-0
R/W-0
CN17
CN27
Bit 0; Bit 3~Bit 7: (undefined) not allowed to use.(These bits are not sure to 0 or 1 )
AD7
Bit7
Bit7
The content of this register is a period (time base) of PWM2. The frequency of PWM2 is the reverse of the
period.
Bit 1 ~ Bit 2 (PC1 ~ PC2) : PORTC1,PORTC2 I/O data register
R
7
-
X
7
7
User can use IOC register to define input or output each bit.
Counter1 is a 8-bit up-counter with 8-bit prescaler that user can use RC PAGE1 to preset and read the
counter.(write Î preset) After a interruption , it will reload the preset value.
Example for writing :
MOV 0x0C, A ; write the data at accumulator to counter1 (preset)
Example for reading :
MOV A, 0x0C
Counter1 is a 8-bit up-counter with 8-bit prescaler that user can use RD PAGE0 to preset and read the
counter.(write Î preset) After a interruption , it will reload the preset value.
R/W-0
R/W-0
R/W-0
CN16
CN26
AD6
Bit6
Bit6
R
6
X
-
6
6
R/W-0
R/W-0
R/W-0
CN15
CN25
; read the data at counter1 to accumulator
AD5
Bit5
Bit5
R
5
X
-
5
5
R/W-0
R/W-0
R/W-0
CN14
CN24
AD4
Bit4
Bit4
4
X
R
4
4
-
R/W-0
R/W-0
R/W-0
CN13
CN23
AD3
Bit3
Bit3
R
3
X
-
3
3
14
R/W-0
R/W-0
R/W-0
CN12
CN22
R/W
AD2
PC2
Bit2
Bit2
R
2
2
2
R/W-0
R/W-0
R/W-0
R/W
CN11
CN21
AD1
PC1
Bit1
Bit1
R
1
1
1
R/W-0
R/W-0
R/W-0
CN10
CN20
AD0
Bit0
Bit0
0
R
X
0
0
-
EM785840/5841/5842
8-bit Micro-controller
2004/11/10 V1.2

Related parts for em78p5842