NJRC NJU6060 Full color led controller driver with pwm control Datasheet

NJU6060
Full Color LED Controller Driver with PWM Control
! GENERAL DESCRIPTION
The NJU6060 is an RGB LED driver with PWM control. It
contains PWM (pulse width modulation) controller, LED
drivers, 8-bit serial interface, etc. Each of the R (red), G (green)
and B (blue) outputs produces 32 levels individually so that the
RGB LED emits 32,768 colors (32 x 32 x 32).
It requires only four external components such as three
resistors for LED current adjustment and the one for oscillation,
which enables the NJU6060 to save PCB space. The NJU6060
is suited for a large number of applications such as cellular
phones, car stereo sets, household appliances, illumination
equipment, etc.
! PACKAGE OUTLINE
NJU6060V
! FEATURES
#
#
#
#
#
#
#
Controls the 3-color LED Separately (ILED=10mA x 3 outputs)
Built-in PWM Luminance Control (32 steps x 3)
Built-in 8bit serial Interface Circuit
Built-in Oscillation Circuit
Operating Voltage for Step-up Circuits
: 2.4V to 5.5V
Package
: SSOP-10
CMOS Technology
Ver.2004-04-16
-1-
NJU6060
LED3
LED2
LED1
VSS
OSC
VDD
RSTb
CSb
CLK
DATA
! PIN CONNECTIONS (TOP VIEW)
! PIN DESCRIPTIONS
No.
PIN NAME
VDD
TYPE
Power
DESCRIPTIONS
VDD Power Supply terminal
1
2
RSTb
Input
3
CSb
Input
4
CLK
Input
Reset terminal - Active “L”.
Chip Select terminal
The serial data is fixed on the rising edge of CSb clock.
Shift Clock terminal
5
DATA
Input
6
OSC
Input
7
VSS
Power
LED1
Output
9
LED2
Output
10
LED3
Output
8
-2-
Serial Data terminal
Oscillating terminal
External resistor connecting
Ground terminal
LED Connect terminals (Open drain output)
Output level are 32 steps PWM by instruction control.
Connecting cathode of LED.
Ver.2004-04-16
NJU6060
! BLOCK DIAGRAM
VDD
VLED
OSC
OSC
32step
PWM
Driver
32step
PWM
Driver
32step
PWM
Driver
LED1
VDD
C
P
U
RSTb
CSb
CLK
DATA
VSS
I
/
F
Instruction
Decoder
LED2
LED3
! FUNCTIONAL DESCRIPTIONS
(1) Description for each blocks
(1-1) PWM Luminance Control
The NJU6060 incorporates three channel of 32 steps PWM Luminance Control circuits. 32 steps of Luminance
Control by setting up DUTY. The relation between a register and DUTY is shown below:
REGISTER
0,0,0,0,0
0,0,0,0,1
0,0,0,1,0
0,0,0,1,1
0,0,1,0,0
0,0,1,0,1
0,0,1,1,0
0,0,1,1,1
DUTY
1/32
2/32
3/32
4/32
5/32
6/32
7/32
8/32
REGISTER
0,1,0,0,0
0,1,0,0,1
0,1,0,1,0
0,1,0,1,1
0,1,1,0,0
0,1,1,0,1
0,1,1,1,0
0,1,1,1,1
DUTY
9/32
10/32
11/32
12/32
13/32
14/32
15/32
16/32
REGISTER
1,0,0,0,0
1,0,0,0,1
1,0,0,1,0
1,0,0,1,1
1,0,1,0,0
1,0,1,0,1
1,0,1,1,0
1,0,1,1,1
DUTY
17/32
18/32
19/32
20/32
21/32
22/32
23/32
24/32
REGISTER
1,1,0,0,0
1,1,0,0,1
1,1,0,1,0
1,1,0,1,1
1,1,1,0,0
1,1,1,0,1
1,1,1,1,0
1,1,1,1,1
DUTY
25/32
26/32
27/32
28/32
29/32
30/32
31/32
32/32
(1-2) Oscillator
The NJU6060 Oscillation circuit is generated clock which generates PWM by connecting external resistor.
The oscillation circuit with the external register generate the clock for PWM. The PWM frequency (fPWM) is finely
adjusted by value of the external register. In addition, the ON/OFF of oscillation circuit is controlled by the instruction,
and the current consumption is decreased when it was OFF of the oscillation circuit.
If PWM was high when the oscillation circuit became OFF, the situation of PWM was kept. Input OFF command of
the output port.
Ver.2004-04-16
-3-
NJU6060
(2) Instructions
3 line type serial interface using a setup of PWM data, ON/OFF of Light Emitting Diode, etc. are made.
The input data and latched at rising edge of chip shift clock (CLK) and the 8-bit data are fetched into the NJU6060 at
the rising edge of chip select (CS). The data to input is MSB first.
Table.1 shows the instruction codes of the NJU6060.
Instruction
LED1
PWM Data Set
LED2
PWM Data Set
LED3
PWM Data Set
Table 1. Instruction Code
Code
D4
D3
D2
D1
Discription
D7
D6
D5
D0
0
0
0
D
D
D
D
D
5-bit PWM data is set.
0
0
1
D
D
D
D
D
5-bit PWM data is set.
0
1
0
D
D
D
D
D
5-bit PWM data is set.
fPWM
PWM Frequency set
/ OSC ON/OFF
/Output port ON/OFF
LED1
PWM Phase set
LED2
PWM Phase set
LED3
PWM Phase set
Test
0
1
1
fPWM
OSC
LED1
1
0
0
*
*
*
Phase value
1
0
1
*
*
*
Phase value
1
1
0
*
*
*
Phase value
1
1
1
Test Data
LED2
LED3
0:(fosc/2)/32
1:(fosc/2)/64
OSC 0:OFF
1:ON
LED1 to 3 0:OFF
1:ON
0,0: Same phase
0,1: 4-step shift
1,0: 8-step shift
1,1: 16-step shift
Inhibited command
* : Don’t Care
Note) The “PWM data set”, the “PWM Frequency set” and the “PWM phase set” commands are executed, asynchronously
to the PWM counter, thus the user’s command setting is executed after execution time, which is about 128/fosc if
{“fPWM=(fosc/2)/2”} is set up. During that execution time, the IC may execute an unexpected setting. For this
reason, it is recommended to make sure actual performance is the user’s practical application.
(2-1) Explanation of instruction code
(a) LED1 to 3 PWM Data Set
This instruction set the PWM luminance control Duty data. It sets up for every LED port.
LED1 PWM Data Set
D7
D6
D5
0
0
0
D4
D
D3
D
D2
D
D1
D
D0
D
LED2 PWM Data Set
D7
D6
D5
0
0
1
D4
D
D3
D
D2
D
D1
D
D0
D
LED3 PWM Data Set
D7
D6
D5
0
1
0
D4
D
D3
D
D2
D
D1
D
D0
D
D
-4-
:DUTY
0,0,0,0,0 to 1,1,1,1,1
Ver.2004-04-16
NJU6060
(b) PWM Frequency set / OSC ON/OFF / Output port ON/OFF
This instruction set the PWM Frequency, Oscillator ON/OFF and Output port ON/OFF.
PWM Frequency set / OSC ON/OFF / Output port ON/OFF
D6
D5
D4
D3
D2
D1
D0
D7
0
1
1
PWM Frequency set
fPWM
fPWM
OSC
LED
1
LED
2
LED
3
0 : fsys / 32 frequency(Default)
1 : fsys / 64 frequency
(fsys : System clock = fosc / 2)
OSC ON/OFF
OSC
0 : Oscillator OFF(Default)
1 : Oscillator ON
Output port ON/OFF
LED1 to 3
0 : Output port OFF(Default)
1 : Output port ON
It sets up for every LED port.
(c) LED1 to 3 PWM Phase set
This instruction set the PWM waveform Phase of output LED ports.
LED1 PWM Phase set
D7
D6
D5
1
0
0
D4
*
D3
*
D2
D1
D0
*
Phase
*: Don’t Care
LED2 PWM Phase set
D7
D6
D5
1
0
1
D4
*
D3
*
D2
D1
D0
*
Phase
*: Don’t Care
LED3 PWM Phase set
D7
D6
D5
1
1
0
D4
*
D3
*
D2
D1
D0
*
Phase
*: Don’t Care
Ver.2004-04-16
D1
D0
0
0
1
1
0
1
0
1
Shift Phase Value
Same Phase
4-step shift
8-step shift
16-step shift
-5-
NJU6060
Example ) Set Output PWM waveform of LED1 to LED3 terminal, shown below:
- LED1 PWM Phase set D1=0, D0=0
- LED2 PWM Phase set D1=1, D0=0
- LED3 PWM Phase set D1=1, D0=1
- PWM Frequency set / OSC ON/OFF / Output port ON/OFF D4=0, D3=1, D2=1, D1=1, D0=1
- LED1 to 3 PWM Data Set
(PWM 4, PWM 3, PWM 2, PWM 1, PWM 0) = (1,0,0,0,0)
Internal
PWM counter
31
0
1
15 16 17 18
2
30 31
0
1
PWM Frequency (fPWM) = 195Hz(typ.)
LED1 terminal
1
17 18
LED2 terminal
1
32
17 18
LED3 terminal
1
8-steps
32
17 18
32
8-steps
(d) Maker Testing
This instruction is using for device testing mode (only for maker).
If it's absolute necessary in the user's command sequence, the only one command data (1,1,1,0,0,0,0,0) to release the
test mode can be accepted.
D7
1
-6-
D6
1
D5
1
D4
D3
D2
D1
Test Data
D0
Ver.2004-04-16
NJU6060
(3)
Serial Interface
The NJU6060 interface with MPU by Serial Interface, control for LED.
CSb
CLK
SIO
*
D7
D6
D5
D4
D3
D2
D1
D0
*
Note1) Data is not concerned with the signal of CSb but is read into the internal shift register by the rising edge of CLK.
Note2) The contents of a shift register are read into the internal instruction decoder by the rising edge of CSb.
note3) An instruction and data should surely input 8 bits. In case of entering over than 8 bits data, valid data is last 8 bits
data.
(4)
Reset Circuit
Reset Circuit initializes the LSI to the following status by using of the more 1µs reset signal into the RES terminal
Reset status using the RES terminal
1, fPWM
0: (fosc/2)/32
2, OSC
0: Oscillation OFF
3, LED1 to 3
0: OFF
4, Phase
0,0: Same Phase
5, PWM data
0,0,0,0,0: 1/32
Ver.2004-04-16
-7-
NJU6060
! ABSOLUTE MAXIMUMN RATINGS
Ta=25°C
PARAMETERS
VDD Power Supply
Driver Off Break Down Voltage
Driver On Break Down Voltage
SYMBOL
VDD
Voffmax
Vonmax
Input Voltage
VIN1
Power Dissipation
Operating Temperature
Storage Temperature
Pdmax
Topr
Tstg
Note1)
Note2)
-8-
CONDITIONS
VDD terminal
LED1, LED2, LED3 terminals
LED1, LED2, LED3 terminals
CSb, DATA, CLK, RSTb, OSC
Terminals
Ta=25°C
RATINGS
-0.3 to +6.0
7.0
5.5
UNIT
V
V
V
-0.3 to VDD+0.3
V
250
-40 to +85
-55 to +125
mW
°C
°C
VSS = 0V to all conditions
If the LSI was used out of the absolute maximum ratings, LSI is damaged completely and the riliability become
poor. The LSI is used on the electrical characteristics is recommended strongly for normal operation.
Ver.2004-04-16
NJU6060
! DC ELECTRICAL CHARACTERISTICS
VDD=2.4 to 5.5V, Ta=-40 to 85°C
PARAMETERS
VDD Power Supply
Input “H” Level Voltage
Input “L” Level Voltage
SYMBOL
Input “H” Level Current
IIH
Input “L” Level Current
IIL
Output Off Leak Current
IOFFH
Output “L” Level Voltage
VOL
VDD
VIH
VIL
Oscillation Frequency
fOSC
Reset “L” Level
Pulse Width
tRW
Operating Current
IDD
Note1):
CONDITIONS
RSTb, CSb, CLK, DATA
RSTb, CSb, CLK, DATA
RSTb, CSb, CLK, DATA,
VIN= VDD
RSTb, CSb, CLK, DATA,
VIN=0V
LED1, LED2, LED3: VO=5.5V,
Output OFF
LED1, LED2. LED3, IO=10mA
VDD=3V, ROSC=910kΩ,
Ta=25°C
RSTb
VDD=3V, PWM DUTY: 17/32,
Output terminal open,
ROSC=910kΩ, Ta=25°C
MIN.
MAX.
Unit
5.5
VDD
0.2VDD
V
V
V
5.0
µA
TYP.
2.4
0.8VDD
0
µA
-5.0
10.23
12.48
6.0
µA
0.5
V
14.72
kHz
µs
1.0
6.0
12.0
µA
Input Terminal Structure
VDD
RSTb, CSb, CLK, DATA terminals
Ver.2004-04-16
LED1, LED2, LED3 terminals
-9-
NJU6060
Relation between oscillation frequency and LCD frame frequency
Set Output PWM waveform of LED1 to LED3 terminal, shown below:
- LED1 PWM Phase set D1=0, D0=0
- LED2 PWM Phase set D1=1, D0=0
- LED3 PWM Phase set D1=1, D0=1
- PWM Frequency set / OSC ON/OFF / Output port ON/OFF
D4=0, D3=1, D2=1, D1=1, D0=1
- LED1 to 3 PWM Data Set
(PWM 4, PWM 3, PWM 2, PWM 1, PWM 0) = (1,0,0,0,0)
Tsys
32
1
2
16 17 18 19
3
31 32
1
fosc = 12.48kHz
fsys = fosc/2 = 6.24kHz
fPWM=: fsys / 32 = 195Hz
2
PWM Frequency (fPWM) = 195Hz(typ.)
LED1 terminal
1
17 18
LED2 terminal
1
32
17 18
LED3 terminal
32
1
8-steps
17 18
32
Tsys=1/fsys=2/fosc
(fsys: Internal System Clock Freqency)
8-steps
Set Output PWM waveform of LED1 to LED3 terminal, shown below:
- LED1 PWM Phase set D1=0, D0=0
- LED2 PWM Phase set D1=1, D0=0
- LED3 PWM Phase set D1=1, D0=1
- PWM Frequency set / OSC ON/OFF / Output port ON/OFF
D4=1, D3=1, D2=1, D1=1, D0=1
- LED1 to 3 PWM Data Set
(PWM 4, PWM 3, PWM 2, PWM 1, PWM 0) = (1,0,0,0,0)
Tsys
32
1
2
16 17 18 19
3
31 32
1
fosc = 12.48kHz
fsys = fosc/2 = 6.24kHz
fPWM=: fsys / 64 = 97.5Hz
2
PWM Frequency (fPWM) = 97.5Hz(typ.)
LED1 terminal
1
17 18
LED2 terminal
1
17 18
LED3 terminal
1
8-steps
- 10 -
32
8-steps
32
17 18
32
Tsys=2/fsys=4/fosc
(fsys: Internal System Clock Freqency)
Ver.2004-04-16
NJU6060
! AC ELECTRICAL CHARACTERISTICS
VDD=2.4 to 5.5V, Ta=-40 to 85°C
PARAMETERS
“L” Level CLK Clock Width
“H” Level CLK Clock Width
Data Set-Up Time
Data Hold Time
CSb Set-Up Time
CSb Hold Time
CLK Wait Time
Rising Time
Falling Time
SYMBOL
tWCLL
tWCLH
tDS
tDH
tCS
tCH
tWCH
tr
tf
Terminal
CLK
CLK
CLK, DATA
CLK, DATA
CSb, CLK
CSb, CLK
CSb
MIN.
TYP.
MAX.
UNIT
15
15
ns
ns
ns
ns
ns
ns
ns
ns
ns
160
160
150
150
160
640
640
Serial Input Timing
CSb
tWCLL
tWCLH
tCH
CLK
tCS
DATA
tf
tWCH
D0
D7
tDS
tr
tDH
Note) All timing based on 20% and 80% of VDD voltage level.
Ver.2004-04-16
- 11 -
NJU6060
! APPLICATION CIRCUIT
VLED
VSS
+
VDD
LED3
VDD
LED2
LED1
RLED
RLED
RLED
NJU6060
RSTb
CSb
CPU
VSS
CLK
OSC
DATA
ROSC
Resistor Selection
RLED =
VLED - VF - VOL
RLED:
VLED:
VF:
VOL:
ILED:
ILED
LED Current Control Resistor
LED Voltage
LED Forward Voltage (@ILED)
Output “L” Level Voltage (@ILED)
LED Forward Current
Example) ILED = 10mA, VLED = 5.0V, VF = 2.0V(@ILED = 10mA), VOL=0.5V
RLED =
5.0V – 2.0V – 0.5V
10mA
= 250Ω
Note)
VF and VOL are depended on the situation. And decide the optimum values by the actual test when RLED is
selected.
[CAUTION]
The specifications on this databook are only
given for information , without any guarantee
as regards either mistakes or omissions. The
application circuits in this databook are
described only to show representative usages
of the product and not intended for the
guarantee or permission of any right including
the industrial rights.
The products on this databook may not be
appropriate for use in certain equipment where
reliability is critical or where the products may
be subjected to extreme conditions. Thus, you
should consult our sales office before using the
products in vehicle control equipment.
- 12 -
Ver.2004-04-16
Similar pages