MITSUBISHI 〈DIGITAL ASSP〉 MITSUBISHI 〈DIGITAL ASSP〉 M66004SP/FP M66004SP/FP 16-DIGIT 5X7-SEGMENT VFD CONTROLLER 16-DIGIT 5×7-SEGMENT VFD CONTROLLER DESCRIPTION The M66004 is a 16-digit 5×7-segment vacuum fluorescent display (VFD) controller using the silicon gate CMOS technology. It contains 160 ROM characters and 16 user-defined RAM characters and receives display character codes and various commands from MCU to control VFD. APPLICATION AV equipments, vacuum fluorescent display controller for POS system, etc. FUNCTION The M66004 is a 16-digit 5×7-segment VFD (Vacuum Fluorescent Display) controller and contains 160 ROM characters based on JIS-C-6220 which can be customized and 16 RAM characters that user can define freely. Character display codes and various commands are received as 8-bit serial data from MCU. Main functions of this IC are display digit length setting, onedigit display cycle setting and dimmer adjustment. It has 36 segment output pins from SEG00 to SEG35 and uses 35 pins from SEG00 to SEG34 for character display. SEG35 output, which is independent of other segment, is used for cursor display by inputting either cursor ON or OFF command. Once display data is fixed, display continues automatically until new data is input. Therefore, MCU can execute other jobs and is lightened of its load. Additionally, the IC can control other I/O elements because it contains two static operation output ports. Serial data input SDATA → P1 ← Output ports P0 ← VCC1 Clock output XOUT ← Clock input 4 64 → DIG12 63 → DIG13 Digit output 62 → DIG14 61 → DIG15 5 60 1 2 3 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 XIN → 21 VSS SEG35 ← SEG34 ← SEG33 ← SEG32 ← Segment outputs SEG31 ← SEG30 ← SEG29 ← SEG28 ← SEG27 ← VP 22 23 24 25 26 27 28 29 30 31 32 M66004SP/FP FEATURES • Built in 5×7-dot segment character ROM (160 characters based on JIS-C-6220. Customization is possible.) • Built in character RAM for user definition (16 characters) • Display digit length can be changed. (from 9 to 16 digits) • One-digit display cycle setting can be changed. (2 cycles) • Dimmer is adjustable. (8 grades) • Cursor display ON or OFF is selectable. (SEG35 output) • Built in automatic display digit increment function • Auto increment of display digit • Built in simultaneous all-digit display ON/OFF command • Connection to MCU by three signal lines, CS, SCK and SDATA • Instruction execution with one byte* • 2 general purpose output ports • Positive supply voltage VCC=5V ± 10% • Pull-down voltage VP=VCC-40V typ. max. (peak) VCC-45V *: Except for character RAM setting DIG11 ← DIG10 ← DIG09 ← DIG08 ← DIG07 ← DIG06 ← Digit outputs DIG05 ← DIG04 ← DIG03 ← DIG02 ← DIG01 ← DIG00 ← Reset input RESET → Chip select input CS → Shift clock input CSK → VCC2 59 → SEG00 58 → SEG01 → 57 SEG02 56 → SEG03 55 → SEG04 54 → SEG05 53 → SEG06 52 → SEG07 51 → SEG08 50 → SEG09 49 → SEG10 48 → SEG11 47 → SEG12 Segment outputs 46 → SEG13 45 → SEG14 44 → SEG15 43 → SEG16 42 → SEG17 41 → SEG18 40 → SEG19 39 → SEG20 38 → SEG21 37 → SEG22 36 → SEG23 35 → SEG24 34 → SEG25 33 → SEG26 Outline 64P4B 64P2G-A 1 MITSUBISHI 〈DIGITAL ASSP〉 M66004SP/FP 16-DIGIT 5×7-SEGMENT VFD CONTROLLER Decoder BLOCK DIAGRAM Display code register (8-bit × 16) CGROM (35-bit × 160) code write Segment output circuit Chip select input CS 14 Serial receive circuit Serial data input SDATA 16 Decoder Shift clock input SCK 15 Code / command control circuit 59 SEG00 Segment outputs 31 SEG27 23 SEG35 CGRAM (35-bit × 16) RAM write Output port (2 bits) Reset input 33 SEG26 18 P0 17 P1 Output ports Display control register RESET 13 code select 12 DIG00 Clock input Clock output XIN 21 Clock generator Display controller Digit output circuit 1 DIG11 64 DIG12 XOUT 20 61 DIG15 OPERATION FLOW The serial receive circuit receives 8-bit serial data, latches the data by an internal latch signal, and then masks inputs from the MCU. When the code/command circuit receives a command, it sets the display control register to the fixed state, and when it receives a character code, it writes the code to one of 16 display code registers which corresponds to the digit to display. The display controller outputs digit ON/OFF timing pulse to the digit output circuit and selects one character code to display among display code registers. The selected character code is input to either CGROM decoder or CGRAM decoder and then converted into a 35-bit character pattern to input the segment output circuit. 2 Digit outputs MITSUBISHI 〈DIGITAL ASSP〉 M66004SP/FP 16-DIGIT 5X7-SEGMENT VFD CONTROLLER PIN DESCRIPTIONS Symbol Pin name Function RESET Reset input This pin is used to initialize the internal state of the M66004. CS Chip select input In “L” state, communication with the MCU is possible. In “H” state, any instruction from the MCU is neglected. SCK Shift clock input At the rising edge from “L” to “H”, input data is shifted. SDATA Serial data input Character code or command data to display is input from MSB. XIN, XOUT Clock input Clock output This pin is used to connect a resistor and a capacitor externally to set oscillation frequency. (maximum oscillation frequency fosc(max)=1MHz) An external clock can be also connected. In this case, an external clock is connected to pin XIN, and pin XOUT is set to be in open state. DIG00~ DIG15 Digit output These pins are used to connect to digit pins of VFD. Pins from DIG00 to DIG15 correspond to digits of VFD from the first digit to the 16th digit. SEG00~ SEG35 Segment output These pins are used to connect to segment pins of VFD. Pins from SEG00 to SEG35 correspond to segment pins of VFD as shown in the table below. P0, P1 Output port (static operation) VCC1 Positive power supply for internal logic VCC2 Positive power supply for high-pressure-resistant output port VSS GND VP Negative power supply for VFD drive (Connection of segment output pins) Each in the table shows one-dot segment and each figure in shows the output segment pin number (from 00 to 35) to connect. 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 3 MITSUBISHI 〈DIGITAL ASSP〉 M66004SP/FP 16-DIGIT 5×7-SEGMENT VFD CONTROLLER DATA TRANSMISSION FORMAT The MCU transmits 8-bit serial data (MSB-first) to the M66004. In either case of command data or character code data, the M66004 operates by transmitting only one-byte data. However, in case of character RAM data setting, it is necessary to send 7-byte data continuously. (Transmission timing) Standard timing CS SCK SDATA D7 D6 D5 D4 D1 (MSB) D0 (LSB) Continuous data transmission timing (In the following example, command data is transmitted and then character codes are transmitted continuously.) CS SCK tBUSY SDATA Command data tBUSY: Internal processing time 4 tBUSY Character code Character code MITSUBISHI 〈DIGITAL ASSP〉 M66004SP/FP 16-DIGIT 5X7-SEGMENT VFD CONTROLLER COMMAND LIST Command code Function Contents D7 D6 D5 D4 D3 D2 D1 D0 Display digit length setting 0 0 0 0 0 * * * The number of digits to display is fixed. Eight types of setting (from 9 digits to 16 digits) are possible. Dimmer value setting 0 0 0 0 1 * * * Eight types of setting (from 1/16 to 14/16) are possible for dimmer value. One-digit display frequency setting 1 1 1 1 0 1 1 * Either 128/fOSC or 256/fOSC is selected as onedigit display frequency. Display digit setting 1 1 1 0 * * * * The first character code received after executing this command is displayed as designated by this command. Auto increment setting 1 1 1 1 0 1 0 * This command is executed to set or cancel the automatic display digit increment function. Cursor ON 0 0 0 1 * * * * This command is executed to make SEG35 ON. Cursor OFF 1 0 0 0 * * * * This command is executed to make SEG35 OFF. All digit display ON/OFF 1 1 1 1 0 0 * * This command is executed to make all-digit display OFF or all-digit/segment display ON. Write to user RAM 1 1 1 1 1 1 × × Character data is written into RAM for user definition. Output port state setting 1 1 1 1 1 0 * * Output ports P0 and P1 are set or reset. ×: Optional * : Refer to the description of command. DESCRIPTION OF COMMAND 1. Display digit length setting D7 0 D6 0 D5 0 D4 0 D3 D2 0 Display digit length (See table 1.) D1 D0 Table 1 Display digit length D2 D1 D0 Display digit length 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 9 10 11 12 13 14 15 16 5 MITSUBISHI 〈DIGITAL ASSP〉 M66004SP/FP 16-DIGIT 5×7-SEGMENT VFD CONTROLLER 2. Setting of dimmer value and one-digit display frequency(Tdsp) 1) Dimmer value setting D7 D6 D5 D4 D3 0 0 0 0 1 D2 D1 D0 Table 2 Dimmer value D2 D1 D0 Dimmer value (Tdig/Tdsp) 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 1/16 2/16 4/16 6/16 8/16 10/16 12/16 14/16 Dimmer value (See table 2.) Tdig : One-digit-ON pulse width Tdsp: One-digit display frequency 2) One-digit display frequency (Tdsp) setting D7 D6 D5 D4 D3 D2 D1 1 1 1 1 0 1 1 4. All-digit display ON/OFF D0 One-digit display frequency (Tdsp) 0: Tdsp=128/fOSC 1: Tdsp=256/fOSC D5 D4 D3 D2 D5 D4 D3 D2 D1 D0 1 1 1 1 0 0 D2 D1 D0 D2 D1 D0 Table 3 ON/OFF control 1) Display digit setting D6 D6 See table 3. 3. Display digit setting, setting and cancel of auto increment D7 D7 D1 D1 D0 × 0 1 0 1 1 Operation All-digit display OFF (All-OFF) Normal operation mode setting All-digit/segment display ON (All-ON) D0 ×: Don’t care 1 1 1 0 5. Cursor OFF (SEG35 output OFF) D7 D6 D5 D4 1 0 0 0 D3 Display digit (Note 1) 2) Setting and cancel of auto increment D7 D6 D5 D4 D3 D2 D1 1 1 1 1 0 1 0 Digit setting (Note 2) D0 Setting and cancel of auto increment 1: Setting of auto increment 0: Cancel of auto increment Note 1: When the display digit is defined as N, N equals [decimal values to which D3, D2, D1 and D0 are converted + 1]. In case of (D3, D2, D1, D0)=(1, 0, 0, 0), N is 9. The first character code received after executing this command is despoiled to the 9th digit. 6. Cursor ON (SEG35 output ON) D7 D6 D5 D4 0 0 0 1 D3 Digit setting (Note 2) Note 2: The digit to which the cursor to make display ON or OFF belongs is designated. When digit is defined as N, N equals [decimal values to which D3, D2, D1 and D0 are converted + 1]. In case of (D3, D2, D1, D0)=(1, 0, 0, 0), N is 9. ON/OFF control of the cursor which belongs to the 9th digit is possible. 6 MITSUBISHI 〈DIGITAL ASSP〉 M66004SP/FP 16-DIGIT 5X7-SEGMENT VFD CONTROLLER 7. Write to character RAM for user definition Segment ON/OFF data is written into the character RAM for user definition (35 bits). After write to RAM is declared at the first byte, RAM is selected at the second byte and ON/OFF data is transmitted at the 3rd to 7th byte. Therefore, write to RAM is executed by a 7-byte command. Character codes from RAM1 to RAM 16 are assigned to data from 9016 to 9F16 respectively. 1st byte (Declaration of write to RAM) D7 D6 D5 D4 D3 D2 D1 D0 1 1 1 1 1 1 × × 1st column 3rd column 5th column × : Don’t care 2nd byte (Selection of RAM) D7 D6 D5 D4 × × × × D3 D2 D1 D0 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 2nd column 4th column (Segment number) RAM selection RAM 1 : (D3, D2, D1, D0) = (0, 0, 0, 0) ~ ~ ~ RAM 16: (D3, D2, D1, D0) = (1, 1, 1, 1) × : Don’t care D7 D6 D5 D4 D3 D2 D1 D0 3rd byte (Data in 1st column) 00 05 10 15 20 25 30 × 4th byte (Data in 2nd column) 01 06 11 16 21 26 31 × 5th byte (Data in 3rd column) 02 07 12 17 22 27 32 × 6th byte (Data in 4th column) 03 08 13 18 23 28 33 × 7th byte (Data in 5th column) 04 09 14 19 24 29 34 × 0: corresponding segment OFF 1: corresponding segment ON Ex. In order to define “F” (see the figure) as character RAM 1, 7-byte data as shown in the following table should be transmitted in serial order. Transmission data FC16 0016 FE16 9016 9016 9016 8016 1 2 3 4 5 6 7 Remarks Declaration of write to RAM 1 Selection of RAM 1 Setting of 1st-column segment data Setting of 2nd-column segment data Setting of 3rd-column segment data Setting of 4th-column segment data Setting of 5th-column segment data All optional bits are set to “0”. 8. Output port setting D7 D6 D5 D4 D3 D2 D1 D0 1 1 1 1 1 0 P0 set/reset P1 set/reset Set (“H”): 1 Reset (“L”): 0 7 MITSUBISHI 〈DIGITAL ASSP〉 M66004SP/FP 16-DIGIT 5×7-SEGMENT VFD CONTROLLER DESCRIPTION OF FUNCTION 1. Display digit length setting The display digit length can be set within the range from 9digit to 16-digit according to the number of digits of VFD. In case that the display digit length is set to 12 when a 16digit VFD is used, digits from 13 to 16 are displayed as blank. digit display scan time (Tdsp) can be set to either Tdsp=128/ fOSC or Tdsp=256/fOSC. Scan cycle time T is set to T=Tdsp × N (N: display digit length). Ex. fOSC=455kHz, N=16 Tdsp=281µs, T=4.5ms (222Hz) or Tdsp=562µs, T=9.0ms (111Hz) 2. Dimmer value and one-digit display frequency (Tdsp) setting Regarding dimmer value, 8-stage setting is possible. One- DISPLAY TIMING T Tdsp Tblk Digit N (Most significant digit) Digit N-1 Tdig Digit N-2 • • • • • Digit 1 (Least significant digit) T: Scan cycle time Tdig: One-digit-ON pulse width 8 Tdsp: One-digit scan time Tblk : Blanking time MITSUBISHI 〈DIGITAL ASSP〉 M66004SP/FP 16-DIGIT 5X7-SEGMENT VFD CONTROLLER 3. Character display A character (refer to the character code table) which corresponds to the character code transmitted from the MCU is displayed as the designated digit. The display digit is designated by the display digit setting command. In case that the display digit designated by this command is set to increase automatically, the display digit is automatically increased by 1. After a character is displayed to the most significant digit, it is displayed to the least significant digit. When the auto increment setting is canceled, the display digit is fixed. OPERATION AT RESET When a reset signal is input, the internal state is initialized as shown in Table 4. Table 4 Initial state Contents Display (characters and cursor) Display digit length, dimmer value, display digit, one-digit display frequency, user character RAM state, auto increment setting Serial receive circuit Output port setting Setting after reset All digits: OFF Values immediately before reset are held. Reset Set Ex. In order to display a character A to digits 14, 15, 16, 1 and 2 in this order and characters A, B and C to digit 8 successively, 12-byte data must be transmitted in the following order. (Display digit length = 16) A (code 4116) B (code 4216) C (code 4316) 1 Transmission data F516 Display digit Remarks – Setting of auto increment Display digit is set to the – 14th digit. 14 2 ED16 3 4 5 6 7 4116 4116 4116 4116 4116 15 16 1 2 8 F416 – Cancel of auto increment setting 9 E716 – Display digit is set to the 8th digit. 10 11 12 4116 8 4216 4316 8 8 Transmission of character code Transmission of character code 4. All-digit display ON/OFF All digits are simultaneously lighted or put off by inputting alldigit display ON command or all-digit display OFF command. When all-digit display ON command is transmitted, all digits including a cursor and all segments are lighted. Therefore, this command can be used for the lamp test. When all-digit display ON setting is canceled (normal operation mode is selected), all digits are displayed according to the setting before all-digit display ON operation. It is also possible to set the next character to the designated digit during the all-digit display ON operation. When all-digit display OFF command is transmitted, all digits including a cursor are put off. When all-digit display OFF setting is canceled (normal operation mode is selected), all digits are displayed according to the setting before all-digit display OFF operation. It is also possible to set the next character to the designated digit in the all-digit display OFF state. 9 MITSUBISHI 〈DIGITAL ASSP〉 M66004SP/FP 16-DIGIT 5×7-SEGMENT VFD CONTROLLER ABSOLUTE MAXIMUM RATINGS Symbol VCC VP VI VO Parameter Supply voltage Pull-down voltage Input voltage Output voltage Pd Conditions VCC1, VCC2 (Note 3) XOUT, P0, P1 SP Any external circuits are not connected to the IC. Ta=25°C (Note 4) 1.6 FP The IC is mounted on a board. Ta=25°C (Note 5) 1.4 Maximum power dissipation Tstg Ratings –0.3 ~ + 7 VCC–45 ~ VCC + 0.3 –0.3 ~ VCC + 0.3 –0.3 ~ VCC + 0.3 Unit V V V V W Storage temperature °C –65 ~ 150 Notes 3: Frequency of pulse waveform exceeding VCC-40V:450µs or above, pulse width: 30µs or below, output load: CL≤ 200pF 4: When Ta is 25°C or above, derating (12.8mW/°C) should be conducted. 5: When Ta is 25°C or above, derating (11.2mW/°C) should be conducted. RECOMMENDED OPERATIONAL CONDITIONS (Ta=–10 ~ 70°C unless otherwise noted) Symbol VCC VP VSS VI Topr Parameter Supply voltage Pull-down voltage Supply voltage Input voltage Operating temperature Conditions VCC1, VCC2 Limits Min. 4.5 Typ. 5 VCC–40 Max. 5.5 VCC 0 0 –10 VCC 70 Unit V V V V °C DC CHARACTERISTICS (Ta = –10 ~ 70°C, VCC = 5V ± 10%, VSS = 0V) Symbol VIH VIL Parameter “H” input voltage “L” input voltage Positive direction threshold voltage Negative direction threshold voltage “H” input current “L” input current VT+ VT– IIH IIL Conditions VOH “H” output voltage RESET CS SCK, XIN VOL IO “L” output voltage Output pull-down current Positive supply current ICC SEG output P0, P1 P0, P1 DIG, SEG VCC1, VCC2 (Note 6) IP Negative supply current VP Note 6: Total of current at pin VCC1 and current at pin VCC2. 10 Limits Typ. Max. VI=VCC VI=0V IOH=–20mA IOH=–5mA IOH=–2mA IOL=2mA VP=VCC–40V, VO=VCC VI=0V, Output pin: open VP=VCC–40V Output pin: open Output “H”, clock stop VP=VCC–40V Output pin: open Output “H”, clock stop VP=VCC–40V Unit 0.3VCC V V 0.7VCC SDATA DIG output Min. 0.35VCC 2.8 0.7VCC V 0.2VCC 2 0.55VCC V 1 µA –1 µA VCC–2 VCC–2 VCC–0.8 250 V 500 0.55 850 V µA 100 µA 40 mA –40 mA MITSUBISHI 〈DIGITAL ASSP〉 M66004SP/FP 16-DIGIT 5X7-SEGMENT VFD CONTROLLER TIMING CONDITIONS (Ta = –10 ~ 70°C, VCC = 5V ± 10%, VSS = 0V) Symbol Parameter tC Clock cycle time tWH Clock cycle pulse width tWL Clock low pulse width tsu(D) SDATA setup time th(D) tsu(CS) th(CS) tBUSY (Note 7) SDATA hold time CS setup time CS hold time Internal processing time Conditions Min. 500 1000 SCK XIN SCK XIN SCK XIN Limits Typ. Max. Unit ns 230 460 230 460 130 100 0 ns ns ns 130 6 ns ns ns 1/fOSC Note 7: This shows the internal operation time after receiving the serial data. Next data is prohibited in this period. Next data is available after 6T of the operation clock. OSCILLATION CHARACTERISTICS (Ta = –10 ~ 70°C, VCC = 5V ± 10%, VSS = 0V) Symbol fOSC Conditions Parameter Min. C=100pF, R=27kΩ Oscillation frequency Limits Typ. 500 Max. Unit kHz TIMING WAVEFORM (Reference voltage: 0.3VCC, 0.7VCC) CS tC tsu(CS) tWL th(CS) tWH SCK tsu(D) th(D) SDATA tBUSY SCK nth byte (n+1)th byte 11 MITSUBISHI 〈DIGITAL ASSP〉 M66004SP/FP 16-DIGIT 5×7-SEGMENT VFD CONTROLLER OPERATION FLOWCHART (Initial setting operation) START PUT OFF ALLDIGIT DISPLAY SET DISPLAY DIGIT LENGTH SET DIMMER VALUE AND ONE-DIGIT DISPLAY FREQUENCY TRANSMIT RAM WRITE COMMAND TRANSMIT RAM BIT DATA NO BIT DATA TRANSMISSION COMPLETED YES NO WRITE TO RAM COMPLETED YES SET AUTO INCREMENT, SET DISPLAY DIGIT TRANSMIT DISPLAY CHARACTER CODE NO TRANSMISSION OF ALL DIGITS COMPLETED YES SET TO NORMAL OPERATION MODE END 12 MITSUBISHI 〈DIGITAL ASSP〉 M66004SP/FP 16-DIGIT 5X7-SEGMENT VFD CONTROLLER CHARACTER CODE LIST (conforming to JIS-C-6220) Lower codes Upper codes 0000 (016) 0000 (016) 0001 (116) 0010 (216) SPASE 0011 (316) 0100 (416) 0101 (516) 0110 (616) 0111 (716) 1000 (816) 1001 (916) 1010 (A16) RAM1 SPASE 0001 (116) RAM2 0010 (216) RAM3 0011 (316) RAM4 0100 (416) RAM5 0101 (516) RAM6 0110 (616) RAM7 0111 (716) RAM8 1000 (816) RAM9 1001 (916) RAM10 1010 (A16) RAM11 1011 (B16) RAM12 1100 (C16) RAM13 1101 (D16) RAM14 1110 (E16) RAM15 1111 (F16) RAM16 1011 (B16) 1100 (C16) 1101 (D16) 1110 (E16) 1111 (F16) Note: Character codes which can be defined by users are 160 codes from 2016 to 7F16 and from A016 to DF16. Codes except those from 2016 to 7F16 and from 9016 to DF16 are command codes. 13 MITSUBISHI 〈DIGITAL ASSP〉 M66004SP/FP 16-DIGIT 5×7-SEGMENT VFD CONTROLLER APPLICATION EXAMPLE VFD Heater ANODE (SEGMENT) Heater transformer GRID (DIGIT) +5V Power on reset VCC RESET MCU CS SCK SDATA VSS Serial bus VCC SEG00 ~ SEG35 DIG00 ~ DIG15 M66004SP/FP VSS XIN XOUT VP CR oscillator 35V Cutoff bias voltage 14