Silan
Semiconductors
SC16232
HANGZHOU SILAN MICROELECTRONICS JOINT-STOCK CO.,LTD
Rev: 2.0 2002.04.26.
10
6.COMMAND FORMAT
The SC16232 can be configured by the S/W setting. There are two mode commands to configure the SC16232
resources and to transfer the LCD display data. The configuration mode of the SC16232 is called command mode,
and its command mode ID is 100. The command mode consists of a system configuration command, a system
frequency selection command, a LCD configuration command, a tone frequency selection command, a timer/WDT
setting command, and an operating command. The data mode, on the other hand, includes READ, WRITE, and
READ-MODIFY-WRITE operations. The following are the data mode IDs and the command mode ID:
Operation Mode ID
READ Data 1 1 0
WRITE Data 101
READ-MODIFY-WRITE Data 1 0 1
COMMAND Command 1 0 0
The mode command should be issued before the data or command is transferred. If successive commands have
been issued, the command mode ID, namely 100, can be omitted. While the system is operating in the non-
successive command or the non-successive address data mode, the
CS
pin should be set to “1” and the previous
operation mode will be reset also. Once the
CS
pin returns to “0”, a new operation mode ID should be issued first.
7. INTERFACING
Only four lines are required to interface with the SC16232. The
CS
line is used to initialize the serial interface
circuit and to terminate the communication between the host controller and the SC16232. If the
CS
pin is set to 1,
the data and command issued between the host controller and the SC16232 are first disabled and then initialized.
Before issuing a mode command or mode switching, a high level pulse is required to initialize the serial interface of
the SC16232. The DATA line is the serial data input/output line. Data to be read or written or commands to be
writtenhavetobepassedthroughtheDATAline.The
RD
line is the READ clock input. Data in the RAM are
clocked out on the falling edge of the
RD
signal, and the clocked out data will then appear on the DATA line. It is
recommended that the host controller read in correct data during the interval between the rising edge and the next
falling edge of the
RD
signal. The
WR
line is the WRITE clock input. The data, address, and command on the
DATA line are all clocked into the SC16232 on the rising edge of the
WR
signal. There is an optional
IRQ
line to
be used as an interface between the host controller and the SC16232. The
IRQ
pin can be selected as a timer
output or a WDT overflow flag output by the S/W setting. The host controller can perform the time base or the WDT
function by being connected with the
IRQ
pin of the SC16232.