Wuxi I-CORE Electronics Co., Ltd. AIP31621 RAM Mapping 32×4 LCD Controller for I/OμC General Description The AIP31621 is a 128 pattern (32×4), memory mapping, and multi-function LCD driver. The S/W configuration feature of the AIP31621 makes it suitable for multiple LCD applications including LCD modules and display subsystems. Only three or four lines are required for the interface between the host controller and the AIP31621. The AIP31621 contains a power down command to reduce power consumption. Features Operating voltage: 2.4V~5.2V Built-in 256kHz RC oscillator External 32.768kHz crystal or 256kHz frequency source input Selection of 1/2 or 1/3 bias, and selection of 1/2 or 1/3 or 1/4 duty LCD applications Internal time base frequency sources Two selectable buzzer frequencies (2kHz/4kHz) Power down command reduces power consumption Built-in time base generator and WDT Time base or WDT overflow output 8 kinds of time base/WDT clock sources 32×4 LCD driver Built-in 32×4 bit display RAM 3-wire serial interface Internal LCD driving frequency source Software configuration feature Data mode and command mode instructions R/W address auto increment Three data accessing modes VLCD pin for adjusting LCD operating voltage Block Diagram Note: CS: Chip selection BZ, BZ: Tone outputs WR, RD, DATA: Serial interface COM0~COM3, SEG0~SEG31: LCD outputs IRQ: Time base or WDT overflow output Address: 2F Building 9, 100Di cui Road, LiYuan Development Zone, Wuxi, jiangsu, China http://www.i-core.cn PC: 214072 Wuxi I-CORE Electronics Co., Ltd. AIP31621 Pin Assignment Pad Coordinates chip size: (2.095mm*1.980mm) The IC substrate should be connected to VDD in the PCB layout artwork. Address: 2F Building 9, 100Di cui Road, LiYuan Development Zone, Wuxi, jiangsu, China http://www.i-core.cn PC: 214072 AIP31621 Wuxi I-CORE Electronics Co., Ltd. Pad Coordinates NO. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 Name SEG<7> SEG<6> SEG<5> SEG<4> SEG<3> SEG<2> SEG<1> SEG<0> NCS NRD NWR DATA GND OSCO OSCI VLCD VDD NIRQ BZ BZN COM<0> COM<1> COM<2> COM<3> Coordinate (1126.10,64.00) (1246.10,64.00) (1366.10,64.00) (1486.10,64.00) (1606.10,64.00) (1726.10,64.00) (1916.20,166.35) (1916.20,286.40) (1916.20,406.40) (1916.20,526.40) (1916.20,780.55) (1916.20,952.10) (1916.20,1113.65) (1916.20,1233.65) (1916.20,1487.75) (1916.20,1608.30) (1916.20,1800.10) (1446.55,1803.10) (1271.65,1803.10) (1151.65,1803.10) (617.35,1803.10) (737.35,1803.10) (857.35,1803.10) (977.35,1803.10) NO. 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 Name SEG<31> SEG<30> SEG<29> SEG<28> SEG<27> SEG<26> SEG<25> SEG<24> SEG<23> SEG<22> SEG<21> SEG<20> SEG<19> SEG<18> SEG<17> SEG<16> SEG<15> SEG<14> SEG<13> SEG<12> SEG<11> SEG<10> SEG<9> SEG<8> Coordinate (497.35,1803.10) (377.35,1803.10) (257.35,1803.10) (137.35,1803.10) (64.00,1580.00) (64.00,1460.00) (64.00,1340.00) (64.00,1220.00) (64.00,1100.00) (64.00,980.00) (64.00,860.00) (64.00,740.00) (64.00,620.00) (64.00,500.00) (64.00,380.00) (64.00,260.00) (166.10,64.00) (286.10,64.00) (406.10,64.00) (526.10,64.00) (646.10,64.00) (766.10,64.00) (886.10,64.00) (1006.10,64.00) Address: 2F Building 9, 100Di cui Road, LiYuan Development Zone, Wuxi, jiangsu, China http://www.i-core.cn PC: 214072 Wuxi I-CORE Electronics Co., Ltd. AIP31621 Pad Description Pad No. 1 2 Pad Name CS RD I/O I I 3 WR I 4 5 6 DATA VSS OSCO I/O O 7 OSCI I 8 9 VLCD VDD I - 10 IRQ O 11,12 13~16 48~17 BZ, BZ COM0~COM3 SEG0~SEG31 O O O Function Chip selection input with pull-high resistor When the CS is logic high, the data and command read from or written to the AIP31621 are disabled. The serial interface circuit is also reset. But if CS is at logic low level and is input to the CS pad, the data and command transmission between the host controller and the AIP31621 are all enabled. READ clock input with pull-high resistor Data in the RAM of the AIP31621 are clocked out on the falling edge of the RD signal. The clocked out data will appear on the DATA line. The host controller can use the next rising edge to latch the clocked out data. WRITE clock input with pull-high resistor Data on the DATA line are latched into the AIP31621 on the rising edge of the WR signal. Serial data input/output with pull-high resistor Negative power supply, ground The OSCI and OSCO pads are connected to a 32.768kHz crystal in order to generate a system clock. If the system clock comes from an external clock source, the external clock source should be connected to the OSCI pad. But if an on-chip RC oscillator is selected instead, the OSCI and OSCO pads can be left open. LCD power input Positive power supply Time base or WDT overflow flag, NMOS open drain output 2kHz or 4kHz tone frequency output pair LCD common outputs LCD segment outputs Absolute Maximum Ratings Supply Voltage .........................………..VSS-0.3V to VSS+5.5V Storage Temperature..........................…-50℃ to 125℃ Input Voltage............................…………VSS-0.3V to VDD+0.3V Operating Temperature...........................-25℃ to 75℃ Note: These are stress ratings only. Stresses exceeding the range specified under Absolute Maximum Ratings may cause substantial damage to the device. Functional operation of this device at other conditions beyond those listed in the specification is not implied and prolonged exposure to extreme conditions may affect device reliability. Address: 2F Building 9, 100Di cui Road, LiYuan Development Zone, Wuxi, jiangsu, China http://www.i-core.cn PC: 214072 Wuxi I-CORE Electronics Co., Ltd. Address: 2F Building 9, 100Di cui Road, LiYuan Development Zone, Wuxi, jiangsu, China http://www.i-core.cn AIP31621 PC: 214072 Wuxi I-CORE Electronics Co., Ltd. Address: 2F Building 9, 100Di cui Road, LiYuan Development Zone, Wuxi, jiangsu, China http://www.i-core.cn AIP31621 PC: 214072 Wuxi I-CORE Electronics Co., Ltd. AIP31621 Functional Description Display Memory -RAM The static display memory (RAM) is organized into 32×4 bits and stores the displayed data. The contents of the RAM are directly mapped to the contents of the LCD driver. Data in the RAM can be accessed by the READ, WRITE, and READ-MODIFY-WRITE commands. The following is a mapping from the RAM to the LCD pattern: Address: 2F Building 9, 100Di cui Road, LiYuan Development Zone, Wuxi, jiangsu, China http://www.i-core.cn PC: 214072 Wuxi I-CORE Electronics Co., Ltd. AIP31621 System Oscillator The AIP31621 system clock is used to generate the time base/Watchdog Timer (WDT) clock frequency, LCD driving clock, and tone frequency. The source of the clock may be from an on-chip RC oscillator (256kHz), a crystal oscillator (32.768kHz), or an external 256kHz clock by the S/W setting. The configuration of the system oscillator is as shown. After the SYS DIS command is executed, the system clock will stop and the LCD bias generator will turn off. That command is, however, available only for the on-chip RC oscillator or for the crystal oscillator. Once the system clock stops, the LCD display will become blank, and the time base/WDT lose its function as well. The LCD OFF command is used to turn the LCD bias generator off. After the LCD bias generator switches off by issuing the LCD OFF command, using the SYS DIS command reduces power consumption, serving as a system power down command. But if the external clock source is chosen as the system clock, using the SYS DIS command can neither turn the oscillator off nor carry out the power down mode. The crystal oscillator option can be applied to connect an external frequency source of 32kHz to the OSCI pin. In this case, the system fails to enter the power down mode, similar to the case in the external 256kHz clock source operation. At the initial system power on, the AIP31621 is at the SYS DIS state. Time Base and Watchdog Timer (WDT) The time base generator is comprised by an 8-stage count-up ripple counter and is designed to generate an accurate time base. The watch dog timer (WDT), on the other hand, is composed of an 8-stage time base generator along with a 2-stage count-up counter, and is designed to break the host controller or other subsystems from abnormal states such as unknown or unwanted jump, execution errors, etc. The WDT time-out will result in the setting of an internal WDT time-out flag. The outputs of the time base generator and of the WDT time-out flag can be connected to the IRQ output by a command option. There are totally eight frequency sources available for the time base generator and the WDT clock. The frequency is calculated by the following equation. f WDT = 32KHz 2n where the value of n ranges from 0 to 7 by command options. The 32kHz in the above equation indicates that the source of the system frequency is derived from a crystal oscillator of 32.768kHz, an on-chip oscillator (256kHz), or an external frequency of 256kHz. If an on-chip oscillator (256kHz) or an external 256kHz frequency is chosen as the source of the system frequency, the frequency source is by default pre-scaled to 32kHz by a 3-stage prescaler. Employing both the time base generator and the WDT related commands, one should be careful since the time base generator and WDT share the same 8-stage counter. For example, invoking the WDT DIS command disables the time base generator whereas executing the WDT EN command not only enables the time base generator but activates the WDT time-out flag output (connect the WDT time-out flag to the IRQ pin). After the TIMER EN command is transferred, the WDT is disconnected from the IRQ pin, and the output of the time base generator is connected to the IRQ pin. The WDT can be cleared by executing the CLR WDT command, and the contents of the time base generator is cleared by executing the CLR WDT or the CLR TIMER command. The CLR WDT or the CLR TIMER command should be executed prior to the WDT EN or the TIMER EN command respectively. Before executing the IRQ EN command the CLR WDT or CLR TIMER command should be executed first. The CLR TIMER command has to be executed before switching from the WDT mode to the time base mode. Once the WDT time-out occurs, the IRQ pin will stay at a logic low level until the CLR WDT or the IRQ DIS command is issued. After the IRQ output is disabled the IRQ pin will remain at the floating state. The IRQ output can be enabled or disabled by executing the IRQ EN Address: 2F Building 9, 100Di cui Road, LiYuan Development Zone, Wuxi, jiangsu, China http://www.i-core.cn PC: 214072 Wuxi I-CORE Electronics Co., Ltd. AIP31621 or the IRQ DIS command, respectively. The IRQ EN makes the output of the time base generator or of the WDT time-out flag appear on the IRQ pin. The configuration of the time IRQ base generator along with the WDT are as shown. In the case of on-chip RC oscillator or crystal oscillator, the power down mode can reduce power consumption since the oscillator can be turned on or off by the corresponding system commands. At the power down mode the time base/WDT loses all its functions. On the other hand, if an external clock is selected as the source of system frequency the SYS DIS command turns out invalid and the power down mode fails to be carried out. That is, after the external clock source is selected, the AIP31621 will continue working until system power fails or the external clock source is removed. After the system power on, the IRQ will be disabled. Tone Output A simple tone generator is implemented in the AIP31621. The tone generator can output a pair of differential driving signals on the BZ and BZ , which are used to generate a single tone. By executing the TONE4K and TONE2K commands there are two tone frequency outputs selectable. The TONE4K and TONE2K commands set the tone frequency to 4kHz and 2kHz, respectively. The tone output can be turned on or off by invoking the TONE ON or the TONE OFF command. The tone outputs, namely BZ and BZ , are a pair of differential driving outputs used to drive a piezo buzzer. Once the system is disabled or the tone output is inhibited, the BZ and the BZ outputs will remain at low level. LCD Driver The AIP31621 is a 128 (32×4) pattern LCD driver. It can be configured as 1/2 or 1/3 bias and 2 or 3 or 4 commons of LCD driver by the S/W configuration. This feature makes the AIP31621 suitable for multiply LCD applications. The LCD driving clock is derived from the system clock. The value of the driving clock is always 256Hz even when it is at a 32.768kHz crystal oscillator frequency, an on-chip RC oscillator frequency, or an external frequency. The LCD corresponding commands are summarized in the table. The bold form of 1 0 0, namely 1 0 0, indicates the command mode ID. If successive commands have been issued, the command mode ID except for the first command, will be omitted. The LCD OFF command turns the LCD display off by disabling the LCD bias generator. The LCD ON command, on the other hand, turns the LCD display on by enabling the LCD bias generator. The BIAS and COM are the LCD panel related commands. Using the LCD related commands, the AIP31621 can be compatible with most types of LCD panels. Address: 2F Building 9, 100Di cui Road, LiYuan Development Zone, Wuxi, jiangsu, China http://www.i-core.cn PC: 214072 Wuxi I-CORE Electronics Co., Ltd. Name LCD OFF LCD ON Command Code 100 00000010X 100 00000011X BIAS & COM 100 0010abXcX AIP31621 Function Turn off LCD outputs Turn on LCD outputs c=0: 1/2 bias option c=1: 1/3 bias option ab=00: 2 commons option ab=01: 3 commons option ab=10: 4 commons option Command Format The AIP31621 can be configured by the S/W setting. There are two mode commands to configure the AIP31621 resources and to transfer the LCD display data. The configuration mode of the AIP31621 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: The mode command should be issued before the data or command is transferred. If successive commands have been issued, the command mode ID, namely 1 0 0, 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. Interfacing Only four lines are required to interface with the AIP31621. The CS line is used to initialize the serial interface circuit and to terminate the communication between the host controller and the AIP31621. If the CS pin is set to 1, the data and command issued between the host controller and the AIP31621 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 AIP31621. The DATA line is the serial data input/output line. Data to be read or written or commands to be written have to be passed through the DATA line. 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 AIP31621 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 AIP31621. 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 AIP31621. Address: 2F Building 9, 100Di cui Road, LiYuan Development Zone, Wuxi, jiangsu, China http://www.i-core.cn PC: 214072 Wuxi I-CORE Electronics Co., Ltd. Address: 2F Building 9, 100Di cui Road, LiYuan Development Zone, Wuxi, jiangsu, China http://www.i-core.cn AIP31621 PC: 214072 Wuxi I-CORE Electronics Co., Ltd. Address: 2F Building 9, 100Di cui Road, LiYuan Development Zone, Wuxi, jiangsu, China http://www.i-core.cn AIP31621 PC: 214072 Wuxi I-CORE Electronics Co., Ltd. Address: 2F Building 9, 100Di cui Road, LiYuan Development Zone, Wuxi, jiangsu, China http://www.i-core.cn AIP31621 PC: 214072 Wuxi I-CORE Electronics Co., Ltd. Address: 2F Building 9, 100Di cui Road, LiYuan Development Zone, Wuxi, jiangsu, China http://www.i-core.cn AIP31621 PC: 214072 Wuxi I-CORE Electronics Co., Ltd. AIP31621 Application Circuits Host Controller with an AIP31621 Display System Note: The connection of IRQ and RD RD pin can be selected depending on the requirement of the µC The voltage applied to VLCD pin must be lower than VDD. Adjust VR to fit LCD display, at VDD=5V, VLCD=4V, VR=15k_20%. Adjust R (external pull-high resistance) to fit user’s time base clock. Address: 2F Building 9, 100Di cui Road, LiYuan Development Zone, Wuxi, jiangsu, China http://www.i-core.cn PC: 214072 Wuxi I-CORE Electronics Co., Ltd. AIP31621 Package Information(SSOP48-300-0.6) Address: 2F Building 9, 100Di cui Road, LiYuan Development Zone, Wuxi, jiangsu, China http://www.i-core.cn PC: 214072