EM78P5840N/41N/42N
8-Bit Microcontrollers
7.3.9
IOCD (Tone 1 Control, Clock Source, CN1 Prescaler)
Page 1 (Clock Source and Counter 1 Prescaler)
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
CNT1S C1_PSC2 C1_PSC1 C1_PSC0
R/W-0 R/W-0 R/W-0 R/W-0
Bit 2
Bit 1
Bit 0
CNTI/ES
R/W-0
-
-
-
-
-
-
Bit 0 ~ Bit 2 (C1_PSC0 ~ C1_PSC2): Counter 1 prescaler ratio
C1_PSC2
C1_PSC1
C1_PSC0
Counter 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
1:2
1:4
1:8
1:16
1:32
1:64
1:128
1:256
Bit 3 (CNT1S): Counter 1 clock source. This bit will be unchanged under RC mode
(RC mode CLK is always equal to the oscillator’s frequency).
"0" : 16.384kHz
"1" : System clock
TRL
P94
reload
8-bit
Timer Interrupt
Timer wake up
IRC
Prescaler
Counter
ERIC
Overflow
Fosc
Fpll
CNTI/ES
Timer
EN
PSR2..PSR0
OSCM1,0
CNT1S
Figure 6-5 Timer CLK Source Diagram
Bit 4 ~ Bit 6 (undefined): These bits are not used
Bit 7 (CNTI/ES): Counter source select
"0" : Timer counter CLK is sourced from the system CLK or Crystal output,
and P94 is set as a general purpose I/O
"1" : P94 is defined as input, and the Timer counter CLK is sourced from
P94’s falling edge
26 •
Product Specification (V1.0) 04.25.2006
(This specification is subject to change without further notice)