SC802B
VER2.1
SPECIFICATION OF SC802B
AKIHABARA INC.
Page 1 of 1
SC802B
CONTENT
VER2.1
1. General description --------------------------------------------------------------------------3 2. Maximum absolute limit---------------------------------------------------------------------3 3. Mechanical characteristics------------------------------------------------------------------3 a) Physical data b) External dimensions 4. Electrical characteristics---------------------------------------------------------------------4 a) DC characteristics b) AC characteristics c) EL backlight d) LED backlight 5. Operating Principles--------------------------------------------------------------------------6 a) Pin description b) Block diagram c) Instruction description 6. Operating Methods---------------------------------------------------------------------------13 a) Interface with MPU b) Power supply c) Operating example
AKIHABARA INC.
Page 2 of 2
SC802B
1. General description
VER2.1
SC802B, a dot-matrix character LCD module, design for displaying 2 line 8 row characters. Character font is 5X7 dots with cursor. The SC802B provides two types of interfaces to MPU: 4-bit SC802B can includes EL or LED backlight for custom design. The custom can design for color of EL or LED backlight, viewing angle and LCD type.
2. Maximum absolute limit
Characteristics Operating Voltage Driver Supply Voltage Input Voltage Range Operating Temperature Symbol VDD VLCD VIN TA1 Ta2 Ratings -0.3V to +7.0V VDD - 12V to VDD + 0.3V -0.3V to VDD + 0.3V -10°C to+60°C -20°C to+60°C Normal temperature LCM Wide temperature LCM Remark
Storage Temperature TSTO -25°C to+70°C Note: Stresses beyond those given in the Absolute Maximum Rating table may cause operational errors or damage to the device.
3. Mechanical characteristics
a) Physical data ITEM Number of characters Module size Viewing area Active area Character size Character pith Approx. weight Drive method b) External dimensions 1/5bias 1/16 duty Standard value 8×2 58.0×32.0×13.6 38.00×16.00 26.93×6.41 5.62×2.99 6.05×3.43 mm mm mm mm mm g Unit Remark
58.00±0.5 53.00±0.3 44.20±0.3 38.00±0.3 26.93 12-R0.50
0.43 0.43
13.60 1.50 10.00
PITCH 2.54*5=12.70
12
5.00 12.00 16.00±0.3 27.00±0.3 32.00±0.5 1.60
0.65 0.06
1
2
0.06 0.55
1.70 2.54
4-R1.25
UNIT: mm
AKIHABARA INC.
Page 3 of 3
SC802B
4. Electrical characteristics
a) DC characteristics a.1) DC CHARACTERISTICS (TA =25 °C, VDD = 2.7 to 4.5V) Limit Characteristics Symbol Min. Input High Voltage Input Low Voltage Input High Current Input Low Current Output High Voltage Output Low Voltage LCD Voltage Operating Current VIm VlL IIh IlL Voh VOL Vlcd Idd 0.7VDD -0.3 -1.0 -5.0 -15 Typ. Max. VDD 0.55 1.0 -30 13 V V uA uA V V mA
IOH =
VER2.1
Unit
Test Condition
VDD = 3.0V
0.75VDD 3 4.5v 1.0
- 0.1mA Pins: DB7-0
0.2VDD v
|OL= 0.1mA Pins: DB7-0
Note: VDD = 3V a.2) DC CHARACTERISTICS (TA = 25°C, VDD = 4.5 to 5.5V) Characteristics Symbol Limit Min. Input High Voltage Input Low Voltage Input High Current Input Low Current Output High Voltage Output Low Voltage LCD Voltage Operating Current VIm VlL IIh IlL Voh VOL Vlcd Idd 2.2 -0.3 -2.0 -20 2.4 3 -50 4.5 1.0 Typ. Max. VDD 0.6 2.0 -100 VDD 0.4 13
Unit V V uA uA V V V mA
Test Condition
VDD = 5.0V IOH = - 0.1mA Pins: DB7-0 IOL= 0.1mA Pins: DB7-0
Note: VDD = 5V b) AC characteristics b.1) AC CHARACTERISTICS (TA = 25°C, VDD = 2.7 to 4.5V) Write Mode (Writing data from MPU to LCD module) Characteristics Symbol Limit Min. E Cycle Time E Pulse Width E Rise/Fall Time Address Setup Time Address Hold Time Data Setup Time Data Hold Time tc tpw tR,tF tsp-i tHD1 tsP2 tHD2 1000 450 60 20 195 10 25 Typ. Max.
Unit ns ns ns ns ns ns ns
Test Condition PinE PinE PinE Pins: RS, R/W, E Pins: RS, R/W, E Pins: DB7-0 Pins: DB7-0
AKIHABARA INC.
Page 4 of 4
SC802B
Read Mode (Reading data from LCD module to MPU) Limit Characteristics Symbol Max. Min. Typ. E Cycle Time tc 1000 E Pulse Width tw 450 E Rise/Fall Time tR,tF 25 Address Setup Time tsp-i 60 Address Hold Time tHD1 20 Data Output Delay Time tD 360 Data hold time tHD2 5.0 b.2) AC CHARACTERISTICS (ta = 25°C, VDD = 4.5 to 5.5V) Write Mode (Writing Data from MPU to LCD module) Limit Characteristics Symbol Min. Typ. Max. E Cycle Time tc 400 150 E Pulse Width tpw 25 E Rise/Fall Time tR,tF 30 Address Setup Time tsp-i tHD1 10 Address Hold Time tsP2 40 Data Setup Time 10 Data Hold Time tHD2 Read Mode (Reading Data from LCD module to MPU) Limit Characteristics Symbol Typ. Min. E Cycle Time tc 400 E Pulse Width tw 150 E Rise/Fall Time tR,tF tsp-i 30 Address Setup Time Address Hold Time tHD1 10 Data Output Delay Time tD Data hold time tHD2 20 Unit ns ns ns ns ns ns ns
VER2.1
Test Condition PinE PinE PinE Pins: RS, R/W,E Pins: RS, R/W,E Pins: DB7-0 Pin DB7- 0
Unit ns ns ns ns ns ns ns Unit
Test Condition PinE PinE PinE Pins: RS, R/W, E Pins: RS, R/W, E Pins: DB7-0 Pins: DB7-0 Test Condition Pin E Pin E Pin E Pins: RS, R/W,E Pins: RS, R/W,E Pins: DB7-0 Pin DB7-0
Max. ns ns ns ns ns ns ns
25
100 -
AKIHABARA INC.
Page 5 of 5
SC802B
TIMING CHARACTERISICS
RS th 1 ts u 1 R /W tw tf th 1
VER2.1
E
tr ts u 2 th 2
D B 0~D B 7
V a lid D a ta tc
Write Timing
RS ts u th
R /W tw tf E tr td D B 0~D B 7 V a lid D a ta tc td h th
Read Timing
5. Operating Principles
a) Pin description Pin NO. Symbol 1 DB6 2 DB7 3 DB4 4 DB5 5 R/W 6 E V0 7 RS 8 VSS 9 VDD 10 A 11 K 12 Level H/L H/L H/L H/L H/L H→L H/L H/L 0V 2.7V~5.5V 4.2V 0V Function Data bits H: Read signal L: Write signal enable signal Variable voltage for LCD H: Instruction code L: Data Ground Supply voltage for logic Supply voltage for LED-Backlight Supply voltage for LED-Backlight
AKIHABARA INC.
Page 6 of 6
SC802B
b) Block Diagram
AC IR RS R/W E D0-D3 D4-D7 I/O B U F F E R
D E C O D E R
VER2.1
Timing Control Circuit
DD RAM
Cursor and blink CKT. COM Driving Circuit
LCD
DR
CG RAM
CG RAM Driving Circuit
VDD VO VSS BUSY FLAG
P TO S registor
a. Data Register (DR): Dris a register used for temporary Storage of the data read/write form/into DD RAM and CG RAM. b. Instruction Register (IR): is a register available for storing the instruction codes and address information of display data (DD) RAM and character generator (CG) RAM. c. BUSY FLAG (BF): When the Busy Flag is “1”,it shows that LCM is in internal operation and it can not accept the next instruction. d. Character Generator (CG) ROM: This ROM Generates character pattern from 8-bit character code and provides 192 character patterns. e. Character Generator (CG)RAM: This RAM allows the user to rewrite the character patterns freely according to the program. f. Address Counter (AC): This address counter is used to give the address information of DD RAM and CG RAM. g. Display Data (DD) RAM: This display data RAM is used to store the display data expressed by 8-bit character code . The capacity is 80x 8bits and data for 80 characters can be storage. h. Cursor and Blink Control Circuit: This circuit generates the cursor and blink.
AKIHABARA INC.
Page 7 of 7
SC802B
RAM's address and the LCD's position shown bellows. Display Character address code: Display position 1 2 3 4 5 6 DDRAM Address 00 40 01 41 02 42 03 43 04 44 05 45 7 06 46 8 07 47 9 08 48 10 09 49 11 0A 4A 12 0B 4B
VER2.1
13 0C 4C
14 0D 4D
15 0E 4E
16 0F 4F
Relationship between Character Code (DDRAM) and character Pattern (CGRAM)
Character code DD RAM Data B7 B6 B5 B4 B3 B2 B1 B0 B5 CG RAM Address B4 B3 B2 B1 B0 B7 Character Pattern CG RAM Data B6 B5 B4 B3 B2 B1 B0
0 0 0 0 0 0 0 0 x 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 x 0 0 1 0 0 1 1 1 1 1
0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1
0 1 0 1 x 0 1 0 1 0 1 0 1 x 0 1 0 1 x x x x
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0
1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0
1 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1. ▆ It means that the bit0~2 of the character code correspond to the bit3~5 of the CG RAM address.
2. ▆ these areas are not used for display, but can be used for the general data RAM. 3. When all of the bit4-7 of the character code is 0, CG RAM character patterns are selected. 4. " 1 ": Selected," 0 ": No selected," X": Do not care (0 or 1). 5. for example (1), to set character code (b2 = b1 = b0 = 0, b3 = 0 or 1, b7-b4 = 0) is to display" T". That means character code (00)16, and (08)16 can display" T” character. 6. The bits 0-2 of the character code RAM is character pattern line position. The 8th line is the cursor position and display is formed by logical OR with the cursor
AKIHABARA INC.
Page 8 of 8
SC802B
CGROM Character Code Table:
Upper 4bit Lower 4bit
VER2.1
LLLL LLLH LLHL LLHH LHLL LHLH LHHL LHHH HLLL HLLH HLHL HLHH HHLL HHLH HHHL HHHH CG RAM (1) (2)
L LLL
LLLH
LLHL
(3)
LLHH
(4)
LHLL
(5)
LHLH
(6)
LHHL
(7)
LHHH
(8)
HLLL
(1)
HLLH
(2)
HLHL
(3)
HLHH
(4)
HHLL
(5)
HHLH
(6)
HHHL
(7)
HHHH
(8)
AKIHABARA INC.
Page 9 of 9
SC802B
c) Instruction description
VER2.1
Control and display instructions will show in details as following: c.1) Clear Display RS R/W D7 D6 D5 D4 D3 D2 D1 D0 0 0 0 0 0 0 0 0 0 1 It clears the whole display and sets display data RAM's address 0 in address counter. c.2) Return Home RS R/W D7 D6 D5 D4 D3 D2 D1 D0 0 0 0 0 0 0 0 0 1 X X: Do not care (0 or 1) It sets display data RAM's address 0 in address counter and display returns to its original position. The cursor or blink goes to the left edge of the display (to the 1st line if 2 lines are displayed). The contents of the Display Data RAM do not change. c.3) Entry Mode Set During writing and reading data, it sets cursor move direction and shifts the display. RS R/W D7 D6 D5 D4 D3 D2 D1 D0 0 0 0 0 0 0 0 1 I/D S I/ D = 1: Increment, I / D = 0: Decrement. S = 1: The display shift, S = 0: The display does not shift S= 1 I/D= 1 It shifts the display to the left S= 1 I/D=0 It shifts the display to the right R/W 0 D7 D6 D5 0 0 0 D4 D3 D2 0 1 D D1 D0 C B c.4) Display On/Off Control RS 0
D = 1: Display on, D = 0: Display off C = 1: Cursor on , C = 0: Cursor off B = 1: Blinks on, B= 0: Blinks off c.5) Cursor or Display Shift Without changing DD RAM's daters, it can move cursor and shift display RS R/W D7 D6 D5 D4 D3 D2 D1 D0 0 0 0 0 0 1 S/C R/L X X S/C R/L Description Address Counter 0 0 Shift cursor to the left AC = AC - 1 0 1 Shift cursor to the right AC = AC + 1 1 0 Shift display to the left. Cursor follows the display shift AC=AC 1 1 Shift display to the right. Cursor follows the display shift AC=AC c.6) Function Set RS R/W D7 D6 D5 D4 D3 D2 D1 D0 0 0 0 0 1 DL N F X X X: Do not care (0 or 1) DL: It sets interface data length. DL = 1: Datas are transferred with 8-bit lengths (DB7 - 0).DL = 0: Datas are transferred with 4-bit lengths (DB7 - 4). (It needs two times to transfer datas) N: It sets the number of the display line. N = 0: One-line display. N = 1: Two-line display. F: It sets the character font. F = 0: 5 x 7 dots character font. F = 1: 5 x 10 dots character font. N F No. of Display Lines Character Font Duty Factor 0 0 1 0 1 X 1 1 2 5X7 dots 5x 10 dots 5x7 dots 1 /8 1 /11 1 /16
AKIHABARA INC.
Page 10 of 10
SC802B
VER2.1
c.7) Set Character Generator RAM Address RS R/W D7 D6 D5 D4 D3 D2 D1 D0 0 0 0 1 a a a a a a It sets character generator RAM address (aaaaaa)2 to the address counter. Character generator RAM data can read or write after this setting. c.8) Set Display Data RAM Address RS R/W D7 D6 D5 D4 D3 D2 D1 D0 0 0 1 a a a a a a a It sets display data RAM address (aaaaaaa)2 to the address counter. Display data RAM can read or write after this setting. In one-line display (N = 0), (aaaaaaa)2; (OO)16 - (4F)16 In two-line display (N = 1), (aaaaaaa)2: (00)16 - (27)16,gfor the first line, (aaaaaaa)2: (40)16 - (67)16,gfor the second line. c.9) Read Busy Flag and Address RS R/W D7 D6 D5 D4 D3 D2 D1 D0 0 1 BF a a a a a a a When (BF = 1) indicates that the system is busy now, it will not accept any instruction until no busy (BF = 0). At the same time, the address counter content’s (aaaaaaa)2; is read out. c.10) Write Data to Character Generator RAM or Display Data RAM RS R/W D7 D6 D5 D4 D3 D2 D1 D0 1 0 d d d d d d d d It writes data (dddddddd)2 to character generator RAM or display data RAM. c.11) Read Data from Character Generator RAM or Display Data RAM RS R/W D7 D6 D5 D4 D3 D2 D1 D0 1 1 d d d d d d d d It reads data (dddddddd)2 from character generator RAM or display data RAM. To get the correct data readout is shown below: (ⅰ)Set the address of the character generator RAM or display data RAM or shift the cursor instruction. (ii) Send the “Read “instruction.
AKIHABARA INC.
Page 11 of 11
SC802B
Instruction table Instruction Code Instruction RS RW D7 D6 D5 Clear Display Return Home 0 0 0 0 0 D4 0 D3 0 D2 0 D1 0 D0 1 Description Write "20H" to DDRAM and 1.52ms set DDRAM address to "OOH" from AC Set DDRAM address to 1.52ms "OOH" from AC and return cursor to its original position if shifted. The contents of DDRAM are not changed. Assign cursor moving direction and enable the shift of entire display Set display(D), cursor(C), and blinking of cursor(B) on/off control bit. Set cursor moving and display shift control bit, and the direction, without changing of DDRAM data. Set interface data length (DL: 8-bit/4-bit), numbers of display line (N: 2-line/1line) and, display font type (F:5x10dots/5x8dots) 38us
VER2.1
Execution time (fosc=270KHz)
0
0
0
0
0
0
0
0
1
-
Entry 0 Mode Set Display 0 ON/ OFF Cursor or 0 Display Shift Function Set 0
0
0
0
0
0
0
1
I/D
S
0
0
0
0
0
1
D
C
B
38us
0
0
0
0
1
S/C R/L -
-
38us
0
0
0
1
DL
N
F
-
-
38us
Set CGRAM Address Set DDRAM Address Read Busy Flag and Address Counter
0
0
0
1
AC5 AC4 AC3 AC2 AC1 ACO Set CGRAM address in address counter.
38us
0
0
1
AC6 AC5 AC4 AC3 AC2 AC1 ACO Set DDRAM address in counter
38us
0
1
BF AC6 AC5 AC4 AC3 AC2 AC1 ACO W hether during internal operation or not can be known by reading BF. The contents of address counter can also be read. D7 D6 D5 D4 D3 D2 D1 DO Write data into internal RAM (DDRAM/CGRAM). Read data from internal RAM (DDRAM/CGRAM).
38us
Write Data 1 to RAM Read Data 1 from RAM
0
38us
1
D7 D6
D5
D4
D3
D2
D1
DO
38us
AKIHABARA INC.
Page 12 of 12
SC802B
6. Operating Methods
a) Interface with MPU
VER2.1
A0 A 1 -A 7 7
RS
MUX
C D Q R E
Z80
In te rfa c e to Z 8 0 C P U
/W R /R D /IR Q
LCM
RW D 0 -D 7
D 0 -D 7
8
E
E
I n te r f a c e to M C 6 8 0 0 C P U
A0
RS
M C 6800
/R D
LCM
RW 8 D 0 -D 7
D 0 -D 7
A 14
RS
A 15
I n te r f a c e to M C S 5 1 C P U
/R D /W R
E
LCM
RW 8 D 0 -D 7
M C S51
D 0 -D 7
AKIHABARA INC.
Page 13 of 13
SC802B
b) Power supply
VER2.1
Single Supply Voltage Types
5V VDD
Dual Supply Voltage Types
+3V VDD VDD
VDD-VO VDD VO 10k~20k
VDD-V0
LCM
LCM
VO
10k~20k VEE
VSS
GND
VSS
VDD-VO:LCD driving voltage
VDD-VO:LCD driving voltage
c) Operating example 4-Bit operation and 8-digit 1-line display (using internal reset) No Instruction Display 1 Power on . ( SPLC780A1 starts initializing ) Function set RS R/W D7 D6 D5 D4 2 0 0 0 0 1 0 Function set 3 0 0 4 0 0 0 0 0 1 0 0 0 1 0 0 0 1 1 X 0 0 0 X _ 0 0 _ 0 0 0 0 0 W_ 1
Operation Power on reset. No display. Set to 4-bit operation
Set to 4-bit operation and select 1-line display line and character font.
Display on / off control
Display on. Cursor appears.
Entry mode set 5 0 0 6 1 0 0 0 0 1 0 0 1 1
Increase address by one. It will shift the cursor to the right when writing to the DD RAM / CG RAM. Now the display has no shift. Write “W “. The cursor is incremented by one and shifted to the right.
Write data to CG RAM / DD RAM
1 0 0 1 1 1 Reset function At power on, it starts the internal auto-reset circuit and executes the initial instructions . There are the initial procedures shown as bellows:
AKIHABARA INC.
Page 14 of 14
SC802B
Power on
VER2.1
4bits interface
Waite time > 15ms after VDD>4.5V
RS 0
R/W D7 D6 D5 D4 0 0 0 11
BF cannot be checked before this instruction Function set (interface is 8 bits length).
Wait time > 4.1ms
RS 0
R/W D7 D6 D5 D4 0 0 0 11
BF cannot be checked before this instruction Function set (interface is 8 bits length).
Wait time > 100us
RS 0
R/W D7 D6 D5 D4 0 0 0 11
BF cannot be checked before this instruction Function set (interface is 8 bits length).
RS 0 0 0 0 0 0 0 0 0
R/W 0 0 0 0 0 0 0 0 0
D7 0 0 N 0 1 0 0 0 0
D6 0 0 F 0 0 0 0 0 1
D5 1 1 X 0 0 0 0 0 I/D
D4 0 0 X 0 0 0 1 0 S
BF cannot be checked after the following Instructions Function set (set interface to be 4 bits length) Interface 8 bits length Function set (interface is 8 bits length. specify The number of display lines and character Font.) The number of display lines and character cannot be changed afterwards. Display off Display clear Entry mode set
Initialization end
AKIHABARA INC.
Page 15 of 15