
HT48RA5/HT48CA5
Rev. 1.40
17
May 22, 2009
After a chip reset, these input/output lines stay at high
levels (pull-high options) or floating state (non-pull-high
options). Each bit of these input/output latches can be
set or cleared by
²
SET [m].i
²
(m=12H, 14H, 16H or 1CH)
instructions. Some instructions first input data and then
follow the output operations. For example,
²
SET [m].i
²
,
²
CLR [m].i
²
,
²
CPLA [m]
²
read the entire port states into
the CPU, execute the defined operations (bit-operation),
and then write the results back to the latches or the ac-
cumulator.
Each line of port A has the capability of waking-up the
device. The highest 2 bits of port C and 7 bits of port F
are not physically implemented; on reading them a
²
0
²
is
returned whereas writing then results in a no-operation.
Pull-high resistors of each port are decided by a option
bit.
The PB0 is pin-shared with PFD signal, respectively. If
the PFD option is selected, the output signal in output
mode of PB0 will be the PFD signal. The input mode al-
ways remain its original functions. The PF0 and PC0 are
pin-shared with INT and TMR0. The INT signal is di-
rectly connected to PF0. The PFD output signal (in out-
put mode) are controlled by the PB0 data register only.
The truth table of PB0/PFD is listed below.
The truth table of PB0/PFD is as shown.
PBC (15H) Bit0
I
O
O
O
PB0/PFD Option
x
PB0
PFD
PFD
PB0 (14H) Bit0
x
D
0
1
PB0 Pad Status
I
D
0
PFD
Note:
I: Input; O: Output; D: Data
Bank Pointer
There is a bank pointer used to control the program flow
to go to any banks. A bank contains 8K
´
16 address
space. The contents of bank pointer are load into pro-
gram counter when the JMP or CALL instruction is exe-
cuted. The program counter is a 16-bit register whose
contents are used to specify the executed instruction
addresses.
When calling a subroutine or an interrupt event occur-
ring, the contents of the program counter are save into
stack registers. If a returning from subroutine occurs,
the contents of the program counter will restore from
stack registers.
BP.7
BP.6
BP.5
ROM
Address
0
0
0
Bank0
0000H~1FFFH
0
0
1
Bank1
2000H~3FFFH
0
1
0
Bank2
4000H~5FFFH
0
1
1
Bank3
6000H~7FFFH
1
0
1
Bank4
8000H~9FFFH
Bank Pointer
Low Voltage Reset
-
LVR
The microcontroller provides low voltage reset circuit in
order to monitor the supply voltage of the device. If the
supply voltage of the device is within the range
0.9V~V
LVR
, such as changing a battery, the LVR will au-
tomatically reset the device internally.
The LVR includes the following specifications:
·
The low voltage (0.9V~V
LVR
) has to remain in their
original state to exceed 1ms. If the low voltage state
does not exceed 1ms, the LVR will ignore it and do not
perform a reset function.
·
The LVR uses the
²
OR
²
function with the external
RES signal to perform chip reset.
The relationship between V
DD
and V
LVR
is shown below.
5 . 5 V
1 . 8 V
0 . 9 V
V
D D
V
L V R