|
M16C6K9 Datasheet, PDF (215/292 Pages) Renesas Technology Corp – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER | |||
|
◁ |
M16C/6K9 Group
PS2 Interface
q PS2i Control register
⢠Reception enable bit (REN)
The data reception is allowed when this bit is set to â1â. The PS2 clock (CLK) will become to âHâ (reception
enable status) automatically.
This bit will be cleared to â0â automatically after the completion of data reception and PS2 clock (CLK) will
become âLâ (reception disable status) .
If this bit is needed wants to be cleared after setting it to â1â but before the transfer completion flag is
set, set reception enable bit = â0â, transfer abort request bit = â0â and proccess the transfer abort simultaneously.
⢠Transmission enable bit (TEN)
After writing transmission data to the PS2i shift register, setting the bit to â1â makes data transmission
enabled and PS2 clock (CLK) will become âHâ automatically (transmission enable status).
This bit will be cleared to â0â automatically after the completion of data transmission and PS2 clock (CLK)
will become âLâ (transmission disable status).
If this bit is needed to be cleared after setting it to â1â but before the transfer completion flag is set, set
reception enable bit = â0â, transfer abort request bit = â0â and proccess the transfer abort simultaneously.
⢠Transfer abort request bit (RSTOP)
This bit is used to abort the data transfer procession.
At the completion of transfer abort procession, the transfer completion flag and transfer abort flag of
PS2i status register are set to â1â, the bit is cleared to â0â automatically and PS2 clock (CLK) will become
âLâ ( reception disable status).
After âLâ is output to the PS2 clock (CLK), do not execute the following transmission/reception before the
device recognizes the transfer abort request.
PS2i control register
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
PS20CON
PS21CON
PS22CON
Address
02A216
02A616
02AA16
Reset Value
0016
0016
0016
Bit Symbol
Bit name
REN
Reception enable bit
TEN
RSTOP
Transmission enable bit
Transfer abort request bit
Nothing is assigned.
Meaningless in writing, "0" in reading.
Function
0 : Disable
1 : Enable
0 : Disable
1 : Enable
0 : No transfer abort
1 : Transfer abort
Fig.GK-6 PS2i control register
RW
Rev.1.00 Jun 06, 2003 page 215 of 290
|
▷ |