HT45R38
Pin Assignment
5
2
5
1
5
0
4
9
4
8
4
7
4
6
4
5
4
4
4
3
4
2
4
1
4
0
3
3
3
3
3
3
9
8
7
6
5
4
1
2
3
4
5
6
7
8
9
1
1
1
1
P
A
5
/
T
M
M
R
0
P
E
E
E
E
1
2
3
4
/
/
/
/
A
A
A
A
N
N
N
N
1
2
3
4
P
A
6
/
T
R
1
P
P
A
7
P
P
B
0
P
P
B
1
R
C
1
2
P
P
B
B
2
3
R
C
1
1
0
H
T
4
5
R
3
8
3
3
3
3
2
2
2
3
2
1
0
9
8
7
R
C
1
5
2
Q
F
P
-
A
V
D
D
B
R
C
9
P
B
4
R
C
8
0
1
2
3
P
B
5
R
C
7
P
P
B
B
6
R
C
6
7
0
R
R
C
C
5
4
P
C
1
4
1
5
1
6
1
7
1
8
1
9
2
0
2
1
2
2
2
3
2
4
2
5
2
6
Pin Description
Pin Name
I/O
Options
Description
Bidirectional 8-bit I/O port. Each pin can be configured as a wake-up input
by configuration code options. Software instructions determine if the pin is a
CMOS output or Schmitt trigger input. Pull-high resistors can be connected
to each pin via configuration options.
PA0/PWM0
PA1/PWM1
PA2
Pull-high
Wake-up
PA3/INT0
PA4/INT1
PA5/TMR0
PA6/TMR1
PA7
Interrupt Enable
Interrupt Active
Edge Type
PWM
I/O
Pins PA3 and PA4 are pin-shared with external interrupt input pins INT0
and INT1, respectively. Configuration options determine the interrupt en-
able/disable and the interrupt low/high trigger type. Pins PA5 and PA6 are
pin-shared with the external timer input pins TMR0 and TMR1. The
PWM0/PWM1 output functions are pin-shared with PA0/PA1, respectively.
Bidirectional 8-bit input/output port. Software instructions determine if the
pin is a CMOS output or Schmitt trigger input. Pull-high resistors can be
added to the whole port via a configuration option.
PB0~PB7
PC0~PC7
I/O
Pull-high
Bidirectional 8-bit input/output port. Software instructions determine if the
pin is a CMOS output or Schmitt trigger input. Pull-high resistors can be
added to the whole port via a configuration option.
I/O
I
Pull-high
OPN
OPP
OPN is the OPA inverting input pin
¾
OPP is the OPA non-inverting input pin
Bidirectional 5-bit input/output port. Software instructions determine if the
pin is a CMOS output or Schmitt trigger input. Pull-high resistors can be
connected to each pin via configuration options.
PE0/AN0/OPO
PE1/AN1
PE2/AN2
I/O
Pull-high
PE0~PE4 are pin-shared with the A/D input pins. The A/D inputs are se-
lected via software instructions. Once selected as an A/D input, the I/O
function and pull-high resistor are disabled automatically.
PE3/AN3
PE4/AN4
The OPO is the OPA output pin and pin-shared with PE0/AN0.
RC1~RC12
RCOUT
IN
I
I
Capacitor or resistor connection pins
Capacitor or resistor connection pin to RC OSC
Oscillation input pin
¾
¾
¾
¾
¾
¾
I
RREF
CREF
RES
O
O
I
Reference resistor connection pin
Reference capacitor connection pin
Schmitt trigger reset input. Active low
Rev. 1.00
3
December 13, 2006