HT46C65 Holtek Semiconductor, HT46C65 Datasheet - Page 20

no-image

HT46C65

Manufacturer Part Number
HT46C65
Description
A/D with LCD Type 8-Bit MCU
Manufacturer
Holtek Semiconductor
Datasheet
The PA0 and PA1 are pin-shared with BZ and BZ signal,
respectively. If the BZ/BZ option is selected, the output
signal in output mode of PA0/PA1 will be the buzzer sig-
nal generated by multi-function timer. The input mode
always remain in its original function. Once the BZ/BZ
option is selected, the buzzer output signal are con-
trolled by the PA0/PA1 data register only.
The I/O function of PA0/PA1 are shown below.
Note:
The PB can also be used as A/D converter inputs. The
A/D function will be described later. There is a PWM
function shared with PD0/PD1/PD2/PD3. If the PWM
function is enabled, the PWM0/PWM1/PWM2/PWM3
signal will appear on PD0/PD1/PD2/PD3 (if PD0/PD1/
PD2/PD3 is operating in output mode). Writing 1 to
Rev. 1.80
PA0 I/O
PA1 I/O
PA0 Mode
PA1 Mode
PA0 Data
PA1 Data
PA0 Pad Status
PA1 Pad Status
I input; O output
D, D0, D1 Data
B buzzer option, BZ or BZ
X don t care
C CMOS output
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
O
D
I
I
O O O O O O O O
D 0 B D
I
I
I
I
1 D
I
I D
O O O O O
0
0
1
D D 0 B
0
0 B 0 B
1
Input/Output Ports
0
1
20
PD0~PD3 data register will enable the PWM output
function and writing 0 will force the PD0~PD3 to re-
main at 0 . The I/O functions of PD0/PD1/PD2/PD3 are
as shown.
It is recommended that unused or not bonded out I/O
lines should be set as output pins by software instruction
to avoid consuming power under input floating state.
The definitions of PFD control signal and PFD output
frequency are listed in the following table.
Note:
Timer
OFF
OFF
Mode
PD0~
PD3
ON
ON
I/O
Preload
counter
X stands for unused
U stands for unknown
M is 65536 for PFD0 or PFD1
N is preload value for timer/event counter
f
Timer
Value
TMR
(Normal)
Logical
X
X
N
N
Input
I/P
is input clock frequency for timer/event
PA3 Data
Register
(Normal)
0
1
0
1
Logical
Output
O/P
HT46R65/HT46C65
PA3 Pad
State
PFD
U
0
0
Logical
(PWM)
Input
I/P
f
TMR
Frequency
July 14, 2005
/[2 (M-N)]
PFD
PWM0~
PWM3
(PWM)
X
X
X
O/P

Related parts for HT46C65