Operation; Receive Operation - Renesas H8S/2100 Series Hardware Manual

6-bit single-chip microcomputer
Hide thumbs Also See for H8S/2100 Series:
Table of Contents

Advertisement

19.4

Operation

19.4.1

Receive Operation

In a receive operation, both KCLK (clock) and KD (data) are outputs on the keyboard side and
inputs on this LSI chip (system) side. KD receives a start bit, 8 data bits (LSB-first), an odd parity
bit, and a stop bit, in that order. The KD value is valid when KCLK is low. Value of KD is valid
when the KCLK is low. A sample receive processing flowchart is shown in figure 19.3, and the
receive timing in figure 19.4.
Start
Set KBIOE bit
Read KBCRH
KCLKI
and KDI bits both
1?
Yes
Set KBE bit
Receive enabled state
KBF = 1?
Yes
PER = 0?
Yes
KBS = 1?
Yes
Read KBBR
Receive data processing
Clear KBF flag
(receive enabled state)
[1]
[2]
No
Keyboard side in data
transmission state.
[3]
Execute receive abort
processing.
No
[4]
No
No
Error handling
[6]
Figure 19.3 Sample Receive Processing Flowchart
Section 19 Keyboard Buffer Control Unit (PS2)
[1] Set the KBIOE bit to 1 in KBCRL.
[2] Read KBCRH, and if the KCLKI and KDI bits
are both 1, set the KBE bit (receive enabled
state).
[3] Detect the start bit output on the keyboard
side and receive data in synchronization with
the fall of KCLK.
[4] When a stop bit is received, the keyboard
buffer controller drives KCLK low to disable
keyboard transmission (automatic I/O inhibit).
If the KBIE bit is set to 1 in KBCRH, an
interrupt request is sent to the CPU at the
same time.
[5] Perform receive data processing.
[6] Clear the KBF flag to 0 in KBCRL.
At the same time, the system automatically
drives KCLK high, setting the receive enabled
state.
The receive operation can be continued by
[5]
Rev. 1.00 May 09, 2008 Page 565 of 954
REJ09B0462-0100

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8s/2112r

Table of Contents