h8s-2111b Renesas Electronics Corporation., h8s-2111b Datasheet - Page 391

no-image

h8s-2111b

Manufacturer Part Number
h8s-2111b
Description
Renesas 16-bit Single-chip Microcomputer H8s Family / H8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
(KBBR reception prohibited)
Set I/O inhibit (KCLKO = 0)
Set I/O inhibit (KCLKO = 1)
Set start bit (KDO = 0)
Set transmit data
and KDI bits both
Set KBIOE bit
Read KBCRH
Read KBCRH
Read KBCRH
Read KBCRH
(KDO = D(i))
KCLKI = 0?
KCLKI = 1?
KCLKI = 1?
KBE = 0
i = i + 1
KCLKI
i
Start
Wait
i = 0
1?
1
9?
Yes
Yes
Yes
Yes
Yes
(Continued on next page)
Figure 14.5 Sample Transmit Processing Flowchart (1)
No
No
No
No
No
KDO remains at 1
KCLKO remains at 0
KDO remains at 0
[1]
[2]
[3]
[4]
[5]
[6]
(Continued on
next page)
2
[1] Set the KBE bit to 1 in KBCRH.
[2] Read KBCRH, and if the KCLKI and KDI
[3] Write 0 in the KBE bit (prohibit KBBR
[4] Write 0 in the KDO bit (set start bit).
[5] Write 1 in the KCLKO bit (clear I/O inhibit).
[6] Read KBCRH, and when KCLKI = 0, set
[7] After transmitting the stop bit, read KBCRL
[8] Read KBCRH. Confirm that the KCLKI
The transmit operation can be continued by
repeating steps [2] to [8].
i = 0 to 7: Transmit data
i = 8: Parity bit
i = 9: Stop bit
bits are both 1, write 0 in the KCLKO bit
(set I/O inhibit).
receive operation).
the transmit data in the KDO bit (LSB-
first). Next, set the parity bit and stop bit in
the KDO bit.
and confirm that KDI = 0 (receive
completed notification from the keyboard).
and KDI bits are both 1.
Rev. 1.00, 05/04, page 357 of 544

Related parts for h8s-2111b