Hitachi H8S/2199 Hardware Manual page 706

Single-chip microcomputer
Table of Contents

Advertisement

Bit Pattern Register (BTPR)
Bit :
7
LSP7
Initial value :
1
R/W :
R/W*
Note: * Write is prohibited when bit pattern detection is selected.
BTPR is an 8-bit shift register which detects and records the bit pattern of the CTL pulses. If a
CTL pulse is detected in PB or ASM mode, the register is shifted leftward at the rising edge of
PB-CTL, and reflects the determined result of long/short on the bit 0 (long pulse = 1, short pulse =
0).
If BPON bit is set to 1 in PB mode, the register starts detection of bit pattern immediately after the
CTL pulse. To exit the bit pattern detection, set the BPON bit at 0.
If 1 was written in the BPS bit when the bit pattern is being detected, the BPF bit is set at 1 when
an 8-bit bit pattern was detected. If continuous detection of 8-bits is required, write 0 in the BPF
bit, and then write 1 in BPS bit.
At the time of VISS detection, the bit pattern detection is disabled. Set the BPON bit to 0 at the
time of VISS detection.
In REC mode, the register record the long/shorts in the bit pattern set in BTPR. The pulse in
record mode is determined always by bit 7 (LSP7) of BTPR. BTPR records one pulse, shifts
leftward, and stores the data of bit 7 to bit 0.
BTPR is initialized to H'FF by a reset, in stand-by, module stop, or CTL stop mode.
Rev. 1.0, 02/00, page 700 of 1141
6
5
LSP6
LSP5
1
1
R/W*
R/W*
4
3
LSP4
LSP3
1
1
R/W*
R/W*
2
1
LSP2
LSP1
1
1
R/W*
R/W*
0
LSP0
1
R/W*

Advertisement

Table of Contents
loading

Table of Contents