EM78815
8-Bit Microcontroller
Bit 4~Bit 6 (C2P0~C2P2) : Counter 2 scaling. Prescaler is different for Bit 0~Bit 2.
C2P2
C2P1
C2P0
Counter 2
1:2
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
1:4
1:8
1:16
1:32
1:64
1:128
1:256
Bit 7 (CNT2S) : Counter 2 clock source
0/1 → 16.384kHz / instruction clock
7.2.11.3 Page 2 Counter 1 Low 8-bit Data Buffer
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 data buffer
Counter 1 is a 16 bits up-counter with 8-bit prescaler and user can read or write into
the counter through R5 Page 2 and R6 Page 2. After an interrupt, it will reload the
preset value.
Example: write: MOV 0x05,A ; write the accumulator data to Counter 1 (preset)
Example: read: MOV A,0x05 ; read R5 data and write into the accumulator
Example: write: MOV 0x06,A ; write the accumulator data (high 8 bits) to Counter 1
Example: read: MOV A,0x06 ; read R6 data (high 8 bits) and write into the
accumulator
7.2.11.4 Page 3 DA Control
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
CDAS
R/W-0
Bit 2
CDAL2
R/W-0
Bit 1
CDAL1
R/W-0
Bit 0
CDAL0
R/W-0
−
−
−
−
−
−
−
−
Bit 0 ~ Bit 2 (CDAL0 ~ CDAL2) : Change output level of the current DA
CDAL2
CDAL1
CDAL0
Output Level
L0 (ratio = 1/8)
L1 (ratio = 2/8)
L2 (ratio = 3/8)
L3 (ratio = 4/8)
L4 (ratio = 5/8)
L5 (ratio = 6/8)
L6 (ratio = 7/8)
L7 (ratio =1)
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
Product Specification (V2.4) 08.01.2004
(This specification is subject to change without further notice)
21