HT49CV5 Holtek Semiconductor, HT49CV5 Datasheet - Page 24

no-image

HT49CV5

Manufacturer Part Number
HT49CV5
Description
A/D
Manufacturer
Holtek Semiconductor
Datasheet
The I/O function of PA0/PA1 are shown below.
Note:
The PB0~PB3 can also be used as A/D converter in-
puts. The A/D function will be described later. There is a
function shared with PD0/PD1. If the PWM function is
enabled, the PWM0/PWM1 signal will appear on
PD0/PD1 (if PD0/PD1 is operating in the output mode).
Writing a 1 to PD0~PD1 data register will enable the
PWM output function and writing a 0 will force the
PD0~PD1 to remain at 0 . The I/O functions of
PD0/PD1 are as shown.
Rev. 1.20
Mode
PA0 I/O
PA1 I/O
PA0 Mode
PA1 Mode
PA0 Data
PA1 Data
PA0 Pad Status
PA1 Pad Status
PD0
PD1
I/O
(Normal)
I input; O output
D, D0, D1 Data
B buzzer option, BZ or BZ
X don t care
C CMOS output
Logical
Input
I/P
X X C B B C B B B B
X C X X X C C C B B
X X D 0
X D X X X D1 D D X X
I
I
I
I
(Normal)
Logical
Output
O
D
I
I
O/P
O O O O O O O O
D 0 B D
I
I
I
I
(PWM)
Logical
1 D
I
I D
Input
I/P
O O O O O
0
0
1
D D 0 B
0
0 B 0 B
1
(PWM)
PWM0
PWM1
O/P
Input/Output Ports
0
1
24
It is recommended that unused or not bonded out I/O
lines should be set as output pins by software instruc-
tions to avoid consuming power under input floating
state.
PWM
The microcontroller provides a 2 channel and
(6+2)/(7+1) (dependent on options) bits PWM output
shared with PD0/PD1. The PWM channels have their
data registers denoted as PWM0 (1AH), PWM1 (1BH).
The frequency source of the PWM counter comes from
f
waveforms of PWM outputs are as shown. Once the
PD0/PD1 are selected as the PWM outputs and the out-
put function of PD0/PD1 are enabled (PDC.0/PDC.1
= 0 ), writing 1 to PD0/PD1 data register will enable
the PWM output function and writing 0 will force the
PD0/PD1 to remain at 0 .
A (6+2) bits mode PWM cycle is divided into four modu-
lation cycles (modulation cycle 0~modulation cycle 3).
Each modulation cycle has 64 PWM input clock period.
In a (6+2) bit PWM function, the contents of the PWM
register is divided into two groups. Group 1 of the PWM
register is denoted by DC which is the value of
PWM.7~PWM.2.
The group 2 is denoted by AC which is the value of
PWM.1~PWM.0.
SYS
. The PWM registers are two 8-bit registers. The
HT49RV5/HT49CV5
April 14, 2006

Related parts for HT49CV5