English
Language : 

W83627DHG Datasheet, PDF (152/268 Pages) Winbond – WINBOND LPC I/O
W83627DHG
11.2.3 Handshake Control Register (HCR) (Read/Write)
This register controls pins used with handshaking peripherals such as modems and also controls the
diagnostic mode of the UART.
7 6 5 4 32 10
00 0
Data terminal ready (DTR)
Request to send (RTS)
Loopback RI input
IRQ enable
Internal loopback enable
Bit 4: When this bit is set to logical 1, the UART enters diagnostic mode, as follows:
(1) SOUT is forced to logical 1, and SIN is isolated from the communication link.
(2) The modem output pins are set to their inactive state.
(3) The modem input pins are isolated from the communication link and connect internally as
DTR (bit 0 of HCR)→DSR#, RTS (bit 1 of HCR) →CTS#, Loopback RI input (bit 2 of HCR) → RI# and
IRQ enable (bit 3 of HCR) →DCD#.
Aside from the above connections, the UART operates normally. This method allows the CPU to
test the UART in a convenient way.
Bit 3: The UART interrupt output is enabled by setting this bit to logical 1. In diagnostic mode, this bit is
internally connected to the modem control input DCD#.
Bit 2: This bit is only used in the diagnostic mode. In diagnostic mode, this bit is internally connected to
the modem control input RI#.
Bit 1: This bit controls the RTS# output. The value of this bit is inverted and output to RTS#.
Bit 0: This bit controls the DTR# output. The value of this bit is inverted and output to DTR#.
11.2.4 Handshake Status Register (HSR) (Read/Write)
This register reflects the current state of the four input pins used with handshake peripherals such as
modems and records changes on these pins.
76 54 321 0
CTS# toggling (TCTS)
DSR# toggling (TDSR)
RI falling edge (FERI)
DCD# toggling (TDCD)
Clear to send (CTS)
Data set ready (DSR)
Ring indicator (RI)
Data carrier detect (DCD)
Bit 7: This bit is the opposite of the DCD# input. This bit is equivalent to bit 3 of HCR in loopback mode.
Bit 6: This bit is the opposite of the RI # input. This bit is equivalent to bit 2 of HCR in loopback mode.
Bit 5: This bit is the opposite of the DSR# input. This bit is equivalent to bit 0 of HCR in loopback mode.
Bit 4: This bit is the opposite of the CTS# input. This bit is equivalent to bit 1 of HCR in loopback mode.
-140-
Publication Release Date: Aug, 22, 2007
Version 1.4