EM78P5840N/41N/42N
8-Bit Microcontrollers
7.2.12 RB (ADC Input Data Buffer)
Page 1 (ADC Output Data Register)
Bit 7
AD7
R
Bit 6
AD6
R
Bit 5
AD5
R
Bit 4
AD4
R
Bit 3
AD3
R
Bit 2
AD2
R
Bit 1
AD1
R
Bit 0
AD0
R
Bit 0 ~ Bit 7 (AD0 ~ AD7): The last significant 8 bits of the 10-bit or the 8-bit resolution
ADC conversion output data. Combine these 8 bits with the R7 PAGE1
Bit 4 ~ Bit 5 (see Section 7.2.8) to have a complete 10-bit ADC
conversion output data in 10-bit resolution mode.
Page 3 (PRD2: PWM2 Period)
Bit 7
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 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Bit 0 ~ Bit 7 (PRD2[0] ~ PRD2[7]): All the contents of this register are PWM2 time-
base period. The PWM2 frequency is the inverse of the period.
7.2.13 RC (Port C I/O Data, Counter 1 Data)
Page 0 (Port 9 I/O Data Register)
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
-
-
-
-
-
-
-
-
-
-
PC2
R/W
PC1
R/W
-
-
Bit 0 (undefined): This bit is not used.
Bit 1 ~ Bit 2 (PC1 ~ PC2): Port C1, Port C2 I/O data register
The IOC register can be used to define each bit either as input or output.
Bit 3 ~ Bit 7 (undefined): These bits are not used.
Page 1 (Counter 1 Data Register)
Bit 7
CN17
R/W-0
Bit 6
CN16
R/W-0
Bit 5
CN15
R/W-0
Bit 4
CN14
R/W-0
Bit 3
CN13
R/W-0
Bit 2
CN12
R/W-0
Bit 1
CN11
R/W-0
Bit 0
CN10
R/W-0
Bit 0 ~ Bit 7 (CN10 ~ CN17): Counter 1 buffer that’s readable and writable. Counter 1
is an 8-bit up-counter with 8-bit prescaler that allows the device to preset
(write → preset) and read the counter by using RC PAGE1. After an
interrupt, the preset value will be reloaded.
Examples of Write & Read Instructions:
MOV 0x0C, A ; writethedataataccumulatortoCounter1(preset)
MOV A, 0x0C ; read & move the data at Counter 1 to accumulator
16 •
Product Specification (V1.0) 04.25.2006
(This specification is subject to change without further notice)