Datasheet

UNISONIC TECHNOLOGIES CO.,LTD.
UL316
LINEAR INTEGRATED CIRCUIT
SERIAL-INTERFACED
6-DIGIT LED CONTROLLER
IC WITH KEYSCAN

DESCRIPTION
The UL316 is a compact LED controller and driver that
interface microprocessors to LED displays through a serial
3-wire interface. It drives LED connected in common anode
configuration. The UL316 drives up to 48 discrete LEDs in
8 segment/6 digit configuration while functioning from a
supply voltage of 5.0V.

FEATURES
* LED driver with 14 outputs (8 segments/6 digits)×40 mA
load current capability for each segment
* Output pins connected directly to the LEDs or can be
open-drain
* Key-scanning (8 x 2 matrix)
* 3-wire serial bus interface (CLK, STB, DIN/DOUT)
* 8-step dimming circuit to control the overall display
brightness

* Single external resistor for output current setting
* Inputs with Schmitt trigger give superior noise
immunity
* A single LED digit output (DIG1_LED) can be used to
drive up to 8 discrete LEDs
* 8-step dimming circuit to control brightness of
individual LEDs for LED digit
* 5.0 V (± 10%) for VCC
* Drives common-anode LED digits
* Built-in power on reset and soft-start circuits
ORDERING INFORMATION
Ordering Number
UL316G-S24-R
UL316G-S24-R

SOP-24
Package
SOP-24
(1)Packing Type
(1) R: Tape Reel
(2)Package Type
(2) S24: SOP-24
(3)Green Package
(3) G: Halogen Free and Lead Free
Packing
Tape Reel
MARKING
www.unisonic.com.tw
Copyright © 2015 Unisonic Technologies Co.,Ltd
1 of 11
QW-R125-032.D
UL316
LINEAR INTEGRATED CIRCUIT

PIN CONFIGURATIONS

PIN CONFIGURATIONS
PIN
NUMBER
SYMBOL
1
DIN/DOUT
2
CLK
3
STB
4
IRQ_N
5
DIG1_LED
6
7
8
DIG2
DIG3
DIG4
9
VCC
10
11
12
13
14
15
16
17
18
19
20
21
22
23
DIG5
DIG6
DIG7
SEG8/KS8
SEG7/KS7
SEG6/KS6
SEG5/KS5
GND
SEG4/KS4
SEG3/KS3
SEG2/KS2
SEG1/KS1
KEY2
KEY1
24
ISET
TYPE
NAME AND FUNCTION
Output serial data at falling edge of the shift clock, starting from lower bit.
IN/OUT Input serial data is clocked in at rising edge of the shift clock, starting from
lower bit.
IN
Reads serial data at rising edge, and outputs data at falling edge.
Initializes serial interface at rising or falling edge for reception of command.
Data input after the falling edge of STB are processed as a command. While
IN
command data are processed, current processing is stopped, and the serial
interface is initialized. While STB is high, instructions are ignored.
OUT Interrupt output (active low) to interrupt the MCU when there is a key press
Single output LED used together with the 8 segments to drive up to 8
OUT
discrete LEDs
OUT Digit output pin
OUT Digit output pin
OUT Digit output pin
5.0 V ± 10% Core main supply voltage. Bypass to GND through a 0.1 μF
PWR
capacitor as close to the pin as possible
OUT Digit output pin
OUT Digit output pin
OUT Digit output pin
OUT Segment output pin (dual function as key source)
OUT Segment output pin (dual function as key source)
OUT Segment output pin (dual function as key source)
OUT Segment output pin (dual function as key source)
PWR Connect this pin to system GND
OUT Segment output pin (dual function as key source)
OUT Segment output pin (dual function as key source)
OUT Segment output pin (dual function as key source)
OUT Segment output pin (dual function as key source)
IN
Key 2 input
IN
Key 1 input
Segment current setting. Connect to GND through a resistor to set the peak
IN
segment current.
UNISONIC TECHNOLOGIES CO., LTD
www.unisonic.com.tw
2 of 11
QW-R125-032.D
UL316

LINEAR INTEGRATED CIRCUIT
BLOCK DIAGRAM
IRQ_N
VCC
IR
Generation
POR
ISET
Current
Source
Output
Segments
Internal
Reset
SEG1/KS1
Command
Decoder
8-b
output
reg
SEG8/KS8
DIN/DOUT
CLK
STB
Display
memory
Serial
I/F
Timing
Generation
DIG1_LED
DIG2
7-b
shift
reg
Clock
Generation
DIG7
Key data
memory
KEY1
KEY2
UNISONIC TECHNOLOGIES CO., LTD
www.unisonic.com.tw
3 of 11
QW-R125-032.D
UL316

LINEAR INTEGRATED CIRCUIT
ABSOLUTE MAXIMUM RATINGS (all voltages are referenced to GND)
PARAMETER
SYMBOL
Supply Voltage to Ground
VCC
Logic Input Voltage
VIN
Power Dissipation
PD
Operating Ambient Temperature
TA
Junction Temperature
TJ
Storage Temperature
TSTG
Note: De-rate at -9.6 mW/°C at TA = 25°C or higher.

UNIT
V
V
mW
°C
°C
°C
VALUES
75
UNIT
°С/W
THERMAL DATA
PARAMETER
SYMBOL
θJC
Junction to Case

VALUES
-0.5 to +7
-0.5 to VCC+0.5 V
1200
-40 ~ 85
150
-65 to +150
DC ELECTRICAL CHARACTERISTICS
DC electrical characteristics (TA = -40 to +85 °C, VCC = 5.0 V ± 10%, GND = 0 V)
PARAMETER
SYMBOL
TEST CONDITIONS
MIN
Logic Supply Voltage
VCC
4.5
High Level Guaranteed
0.57×VCC
High Level Input Voltage
VIH
Digital Pins
Low Level Guaranteed
0
Low Level Input Voltage
VIL
Digital Pins
Input Current
IIH, IIL
VIN = VCC or GND
-2
Hysteresis Voltage (DIN, CLK, STB pins)
VHYS
Low Level Output Voltage
VOL(DOUT) DOUT, IOL2=4mA
-30
Segment Drive LED Sink Current
ISEG
VLED=2.5V, VDIGIT=VCC–1.0
240
Digit Drive LED Source Current
IDIG
VDIGIT=VCC–1.0
VCC=5.0V, TA =25°C,
Segment Drive Current Matching
ITOLSEG
VLED=2.5 V
External Current Setting Reference
RSET
ISEG=40mA
Resistor (Precision = ±1% Tolerance)

MAX
5.5
UNIT
V
VCC
V
0.3×VCC
V
2
μA
V
V
mA
mA
1.05
0.4
-50
400
-40
320
3
%
360
Ω
POWER SUPPLY CHARACTERISTICS (TA = -40 to +85 °C, unless otherwise specified)
PARAMETER
Quiescent Power Supply Current
SYMBOL
ISTBY
Operating Power Supply Current
(display ON)
ICC

TYP
5.0
TEST CONDITIONS
VCC=5.5V, All Inputs=VCC or GND
All Segments ON, All Digits
Scanned, Intensity Set to Full,
Internal Oscillator, No Display
Load Connected
MIN TYP MAX UNIT
50
μA
10
mA
TIMING CHARACTERISTICS
(TA= -40 ~ +85°C, VCC=5.0V±10%, Typical values are at 25 °C, unless otherwise specified)
PARAMETER
SYMBOL
TEST CONDITIONS
Clock Pulse Width
PWCLK
Strobe Pulse Width
PWSTB
Data Setup Time
tSETUP
CLK Rising Edge to STB Rising
Data Hold Time
tHOLD
Edge
Clock-Strobe Time
tCLK-STB
UNISONIC TECHNOLOGIES CO., LTD
www.unisonic.com.tw
MIN TYP MAX UNIT
400
ns
1
μs
100
ns
100
ns
1
μs
4 of 11
QW-R125-032.D
UL316

LINEAR INTEGRATED CIRCUIT
COMMANDS
Command sets the display mode and the status of the LED driver. The first byte input to the UL316 through the
DIN input after the STB goes low is regarded as a command. If STB is set high while commands/data are
transmitted, serial communication is initialized, and the commands/data being transmitted are invalid (however, the
commands/data already transmitted remain valid).
1.
Write command
MSB8
MSB7
MSB6
MSB5
MSB4
MSB3
MSB2
MSB1
Description: LSB 3 -1 → address of the memory
MSB5 and LSB4 → address of memory bank (page)
MSB 6 → ‘0’ auto increment address
‘1’ fixed address
MSB 7 → ‘0’ Write command
‘1’ Read command
MSB 8 → ‘X’ Unused
The following bytes are either configuration data or display data.
During the write command, the control flag display on and auto increment address are latched into the internal
control flag register. The default value is ‘0’ for display on control register implying that the display is off. The user
must turn on the display to view the display memory. Similarly the auto increment address mode is enabled by
default. If the user desires to read from a particular address location, the user can fix the address pointer.
Display ON:
MSB8
X
MSB7
0
MSB6
X
MSB5
0
MSB4
1
MSB3
1
MSB2
0
MSB1
1
MSB7
0
MSB6
X
MSB5
0
MSB4
1
MSB3
1
MSB2
1
MSB1
0
MSB8
MSB7
MSB6
MSB5
MSB4
Description: LSB 3 -1 –> address of the memory
MSB5 and LSB4 → address of the memory bank (page)
MSB 6 → ‘0’ auto increment address
‘1’ fixed address
MSB 7 → ‘0’ Write command
‘1’ Read command
MSB 8 → ‘X’ Unused
Use the page 0x01 to read the LED data and key data.
MSB3
MSB2
MSB1
Display OFF:
MSB8
X
Use these two commands to turn the display ‘ON’ and ‘OFF’.
2.
Read command
Table 1. Read command
ADDRESS
00
01
02
FUNCTION
LED data (optional)
Key data byte1
Key data byte2
Set flag for key1 and key2 to ensure that the user reads from the particular key. When reading the key data from
the memory, the IRQ_N will be automatically cleared signifying that the end of the 8 bit was transmitted correctly. If
the IRQ_N is asserted by the last eight keys, then the user reads the key data (one byte only by reading the first
byte). In this case, the IRQ_N will remain active until the second byte is read. When the user uses the read key to
read the LED and key data, first the user must choose the address (default address location is 0x00) after which
the address will increment only by 3 addresses (maximum).
UNISONIC TECHNOLOGIES CO., LTD
www.unisonic.com.tw
5 of 11
QW-R125-032.D
UL316

3.
LINEAR INTEGRATED CIRCUIT
COMMANDS (Cont.)
Device configuration
This section describes how to program and read the configuration of the device.
Configuration data comprises of the display setting, dimming setting, display on/off and fixed. address/auto
increment. The address pointer will indicate the configuration location and write signal writes the configuration data
into the respective location.
The memory block is split into two page locations. One is for the 7-segment brightness configuration memory and
the other is for the LED (discrete) configuration memory. The configuration memory address starts from 0x00 to
0x07. The configuration page address is “10” and “11”.
Initial Value:
Table 2. Memory page mapping
MEMORY PAGE
10
10
10
10
11
11
11
11
ADDRESS
00
01
02
03
00
01
02
03
VALUE
0 × FB
0 × 00
0 × 00
0 × 00
0 × 00
0 × 00
0 × 00
0 × 00
Description:
Address 0×00; page 0×10
LSB 0 – 2 → indicates the number of digits in the display
LSB3 MSB 4 → '11' is for constant brightness control for the display
→ '00' is for variable brightness control for the display
→'01' is reserved
→'10' is reserved
MSB 5 – 7 → indicates constant brightness control value for all including the LED (discrete)
Default is constant brightness control with 14/16 pulse width (for maximum brightness).
Page 0×10 - address 0×01 to 0×03 is for the variable brightness control value for 7 segments:
Table 3. Memory page mapping
ADDRESS
MSB
LSB
0 × 01
Digit 2
Digit 1
0 × 02
Digit 4
Digit 3
0 × 03
Digit 6
Digit 5
Default is constant brightness control with 14/16 pulse width.
Page0x11 - address 0x00 to 0x03 is for the variable brightness control value for LED (discrete).
Table 4. LED address mapping
ADDRESS
MSB
0 × 00
LED / Seg 2
0 × 01
LED / Seg 4
0 × 02
LED / Seg 6
0 × 03
LED / Seg 8
Default is constant brightness control with 14/16 pulse width.
During normal operation, the user defined value will be stored in the respective location.
UNISONIC TECHNOLOGIES CO., LTD
www.unisonic.com.tw
LSB
LED / Seg 1
LED / Seg 3
LED / Seg 5
LED / Seg 7
6 of 11
QW-R125-032.D
UL316

LINEAR INTEGRATED CIRCUIT
COMMANDS (Cont.)
甲、 Display setting (maximum number of digits):
The 3-bit values corresponding to selection of number of digits of display are shown below:
000: 1 digit 8 segments
001: 2 digits 8 segments
010: 3 digits 8 segments
011: 4 digits 8 segments
100: 5 digits 8 segments
101: 6 digits 8 segments
Select the number of digits by writing the value in page 0x10 and the address 0x00 in LSB2 to LSB0.
乙、 Dimming setting (brightness levels):
The 4-bit values corresponding to different brightness levels are shown below:
0000: pulse width is 1/16
0001: pulse width is 2/16
0010: pulse width is 4/16
0011: pulse width is 10/16
0100: pulse width is 11/16
0101: pulse width is 12/16
0110: pulse width is 13/16
0111: pulse width is 14/16
Set the dimming timing (write into respective address location from 0x00 to 0x03; page 0x10 & 0x11).
4.
Display memory
The address pointer, memory page and write signal indicates to this block the location to write the data.
This block will manage the address pointer. When the user writes a first byte, the address increments by one if in
auto-increment mode, else the address pointer remains in the same location. The initial address is latched during the
write/read command into the address pointer. The display memory (7-segment/LED) is directly mapped into the
display segments. The user can access only one bank at a time in both the read and write modes.
The memory block is split into 4 pages.
Table 5. Memory page address
Page 1
7 segment memory
Page 2
LED Display
Addr 0x00 to 0x05 (40 bit)
Addr 0x00 (8 bit)
Page 3
7 segment brightness
setting
Addr 0x00 to 0x03 (32bit)
Page 4
LED brightness setting
Addr 0x00 to 0x03 (32bit)
7-segment display memory page 0x00:
Table 6. 7-segment display address
ADDRESS
0 × 00
0 × 01
0 × 02
0 × 03
0 × 04
0 × 05
VALUE
0 × 00
0 × 00
0 × 00
0 × 00
0 × 00
0 × 00
LED display memory page 0x01:
UNISONIC TECHNOLOGIES CO., LTD
www.unisonic.com.tw
7 of 11
QW-R125-032.D
UL316

LINEAR INTEGRATED CIRCUIT
COMMANDS (Cont.)
Table 7. 7-segment display address
ADDRESS
0 × 00h
DATA
0 × 00h
Initial memory:
Default memory value is “00” in all locations.
During operation:
User defined value in these locations.
When the user wants to read the data from a particular location, the user sends the address page through read
command and chooses the mode of the address pointer (fixed or auto).
In this case, the user can access the whole memory area in that particular page (maximum 0 x 05).
The display RAM stores the data transmitted from an external device to the UL316 through the serial interface;
addresses are as follows, in 8-bits unit:
Seg 1
00 HL
01 HL
02 HL
03 HL
04 HL
05 HL
Seg 4
00 HU
01 HU
02 HU
03 HU
04 HU
05 HU
b0
b3
Seg 8
DIG 2
DIG 3
DIG 4
DIG 5
DIG 6
DIG 7
b4
XX HL
b7
XX HU
“0” in memory means GND on output; “1” in memory means VCC on output.
UNISONIC TECHNOLOGIES CO., LTD
www.unisonic.com.tw
8 of 11
QW-R125-032.D
UL316

LINEAR INTEGRATED CIRCUIT
KEY-SCANNING AND DISPLAY TIMING
During the first cycle, the 16 channels are used for the keyscan. The keyscan duration is made up of 64 µs. The
second cycle is used for the display of the LED (discrete). The maximum time is 512µs and the 3rd-8 rd cycles are
used for the 7-segment display. The number of cycles will increase or decrease depending upon the user
configuration.
By default, the configuration is made up of 4 cycles. If any data is written to the discrete LED, only then the 2nd
cycle is valid. Otherwise the 7-segment moves from 2 nd -7 nd cycle. This is a continuous operation. During the normal
operation, the user cannot control or stop the timing generation.
One cycle of key scanning consists of one frame, and data of 8 x 2 matrices are stored in the RAM.
1.
SERIAL COMMUNICATION FORMAT (RECEPTION)
The figure below shows the “reception” by UL316 for command/data write sequence.
The STB must be low for 1 µs before the first and last clock rise. The minimum time the STB must remain low is 9
µs.
The maximum clock frequency is 1 MHz with a duty cycle of 50%. Data set-up and hold time must be 100 ns.
Fig 1.Serial communication format (reception)
UNISONIC TECHNOLOGIES CO., LTD
www.unisonic.com.tw
9 of 11
QW-R125-032.D
UL316

2.
LINEAR INTEGRATED CIRCUIT
KEY-SCANNING AND DISPLAY TIMING (Cont.)
SERIAL COMMUNICATION FORMAT (TRANSMISSION)
The figure below shows the “ transmission” from UL316 for data read sequence.
Fig 2. Serial communication format (transmission)
Because the DIN/DOUT pin in a bi-directional pin, it is recommended to connect an external pull-up resistor to this
pin (1 KΩ to 10 KΩ).
Note: No minimum wait time is needed to read the data from the device. The UL316 will output the data about 250
ns after the 8th clock pulse’s falling edge. It is therefore suggested that the host must release the bus within 100ns
after clocking the last bit on the 8th clock pulse. The UL316 is able to clock out the valid data on the immediate falling
edge of the CLK without missing any clock cycle.
UNISONIC TECHNOLOGIES CO., LTD
www.unisonic.com.tw
10 of 11
QW-R125-032.D
UL316

LINEAR INTEGRATED CIRCUIT
TYPICAL APPLICATION CIRCUIT
UTC assumes no responsibility for equipment failures that result from using products at values that
exceed, even momentarily, rated values (such as maximum ratings, operating condition ranges, or
other parameters) listed in products specifications of any and all UTC products described or contained
herein. UTC products are not designed for use in life support appliances, devices or systems where
malfunction of these products can be reasonably expected to result in personal injury. Reproduction in
whole or in part is prohibited without the prior written consent of the copyright owner. The information
presented in this document does not form part of any quotation or contract, is believed to be accurate
and reliable and may be changed without notice.
UNISONIC TECHNOLOGIES CO., LTD
www.unisonic.com.tw
11 of 11
QW-R125-032.D
Similar pages