Upload
others
View
3
Download
0
Embed Size (px)
Citation preview
39×9 DOTS MATRIX LED DRIVER
Integrated Silicon Solution, Inc. – ams.issi.com 1 Rev. B, 12/19/2018
DESCRIPTION
The IS31FL3741 is a general purpose 39×9 LED Matrix programmed via an I2C compatible interface. Each LED can be dimmed individually with 8-bit PWM data and 8-bit scaling data which allowing 256 steps of linear PWM dimming and 256 steps of DC current adjustable level.
Additionally each LED open and short state can be detected, IS31FL3741 store the open or short information in Open-Short Registers. The Open-Short Registers allowing MCU to read out via I2C compatible interface. Inform MCU whether there are LEDs open or short and the locations of open or short LEDs.
FEATURES
Supply voltage range from 2.7V to 5.5V 39 Current Sink × 9 SW matrix size: drive up to
351 LEDs or 117 RGBs Individual 256 PWM control steps Individual 256 DC current steps Global 255 current setting SDB rising edge reset I2C module Interrupt and state lookup registers Individual open and short error detect function De-ghost QFN-60 (7mm×7mm) package QUICK START
Figure 1: Photo of IS31FL3741 Evaluation Board
RECOMMENDED EQUIPMENT
5.0V, 2A power supply
ABSOLUTE MAXIMUM RATINGS
≤ 5.5V power supply
Caution: Do not exceed the conditions listed above, otherwise the board will be damaged.
PROCEDURE
The IS31FL3741 evaluation board is fully assembled and tested. Follow the steps listed below to verify board operation.
Caution: Do not turn on the power supply until all connections are completed.
1) Connect 3V and P2. 2) Connect SDA and P1. 3) Connect SCL and P3. 4) Connect SDB and P4 5) Connect PVCC and SDB. 6) Turn on the power supply/Plug in the Micro USB
Pay attention to the supply current. If the current exceeds 1A, please check for circuit fault.
EVALUATION BOARD OPERATION
The IS31FL3741 evaluation board has three animation display modes. Press K1 to switch configurations.
1) Rainbow wave#1 2) Rainbow wave#2 3) Rain 4) Visor
Note: IS31FL3741 solely controls the FxLED function on the evaluation board.
ORDERING INFORMATION
Part No. Temperature Range Package
IS31FL3741-QFLS4-EB -40°C to +125°C (Industrial) QFN-60, Lead-free
Table 1: Ordering Information
For pricing, delivery, and ordering information, please contacts ISSI’s analog marketing team at [email protected] or (408) 969-6600.
39×9 DOTS MATRIX LED DRIVER
Integrated Silicon Solution, Inc. – ams.issi.com 2 Rev. B, 12/19/2018
SOFTWARE SUPPORT
P2 and 3V default setting is closed (jumper on). If it is open (no jumper), the on-board MCU will configure its own I2C/SDB/ADDR pins to High Impedance status so an external source can driver the I2C/SDB signals to control the IS31FL3741 LED driver.
The ADDR pin is pulled high via R6 setting the device address of IS31FL3741 to 0x60.
GND
SDASCL
SDB
VCC
Figure 2: Photo of Arduino UNO connected to Evaluation Board
The steps listed below are an example using the Arduino for external control.
The Arduino hardware consists of an Atmel
microcontroller with a bootloader allowing quick firmware updates. First download the latest Arduino Integrated Development Environment IDE (1.6.12 or greater) from www.arduino.cc/en/Main/Software. Also download the Wire.h library from www.arduino.cc/en/reference/wire and verify that pgmspace.h is in the directory …program Files(x86)/Arduino/hardware/tools/avr/avr/include/avr/. Then download the latest IS31FL3741 test firmware (sketch) from the ISSI website http://www.issi.com/US/product-analog-fxled-drivershtml.
1) Open P2 and 3V. 2) Open PVCC and SDB. 3) Connect the 5 pins from Arduino board to
IS31FL3741 EVB: a) Arduino 5V pin to IS31FL3741 EVB PVCC. b) Arduino GND to IS31FL3741 EVB GND. c) Arduino SDA (A4) to IS31FL3741 EVB P1. d) Arduino SCL (A5) to IS31FL3741 EVB P3. e) If Arduino use 3.3V MCU VCC, connect
3.3V to IS31FL3741 EVB SDB, if Arduino use 5.0V MCU VCC, connect 5.0V to EVB SDB. (Arduino UNO MCU VCC is 5V, so SDB can be 5V or 3.3V)
4) Use the test code in appendix I or download the test firmware (sketch) from the ISSI website, a .txt file and copy the code to Arduino IDE, compile and upload to Arduino.
5) Run the Arduino code as appendix I. 6) In EVB code, the ADDR pin is pulled low via
100k, so the device address is 0x60. When P1~P4 are disconnect, the ADDR pin can be changed by connecting the ADDR as follows: a) ADDR=VCC, device address=0x66. b) ADDR=SCL, device address=0x62. c) ADDR=SDA, device address=0x64.
Please refer to the datasheet to get more information about IS31FL3741.
39×9 DOTS MATRIX LED DRIVER
Integrated Silicon Solution, Inc. – ams.issi.com 3 Rev. B, 12/19/2018
GND
3V
SDA_MSCL_M
INTB
USB_DM2USB_DP2DIOGND3V
GND
10nF
C7
VIN1
GND2
EN3
BP4
VOUT5
U2
LDO
1uFC9
3V
CLK
1uFC4
3V
0.1uF
C2
0.1uF
C1
MCU
3V Power
100KR6
1KR1
K1
1uFC6
0.1uF
C3
10KR46
1234567891011121314151617181920
CON4GNDGND
CLKDIO3VINTB
SDASCL
ADDRGNDSCLSDA
PVCC
SDB
3V
SDB_M
Micro USB
VCC1
USB_DM2
USB_DP3
NC4
GND5
Con5
10uF
C10
PVCC
22RR4822RR49
USB_DM2USB_DP2
1.5K
R473V
USB_DMUSB_DP
10uF
C11
D1
DFL240D2
DFL240
IO
PVCC
SDASCLINTBSDB
ADDR
3V
10KR5
PVCC
PVCC
1KR2100KR3100KR4
SW01SW02SW03SW04SW05SW06
CS01CS02CS03CS04CS05CS06CS07CS08CS09CS10CS11CS12CS13CS14CS15CS16CS17CS18CS19CS20CS21CS22CS23CS24CS25CS26CS27CS28CS29CS30
GND
PVCCPVCCPVCC
GND
SDB
OSCO 2
OSCI4
GND1
GND3Y1
8M
33PC8
33P
C5
OSCO
OSCI
OSCIOSCO
PVCC
VBAT1
PC13-ANTI_TAMP2
PC14-OSC32_IN3
PC15-OSC32_OUT4
OSC_IN5
OSC_OUT6
NRST7
VSSA8
VDDA9
PA0-WKUP/ADC_IN0/TIM2_CH1_ETR10
PA1/ADC_IN1/TIM2_CH211
PA2/USART2_TX/ADC_IN2/TIM2_CH312
PA3/USART2_RX/ADC_IN3/TIM2_CH413
PA4/SPI1_NSS/ADC_IN414
PA5/SPI1_SCK/ADC_IN515
PA6/SPI1_MISO/ADC_IN6/TIM3_CH116
PA7/SPI1_MOSI/ADC_IN7/TIM3_CH217
PB0/ADC_IN8/TIM3_CH318
PB1/ADC_IN9/TIM3_CH419
PB2/BOOT120
PB10/I2C2_SCL/USART3_TX21
PB11/I2C2_SDA/USART3_RX22
VSS_123
VDD_124 PB12/SPI2_NSS/TIM1_BKIN 25PB13/SPI2_SCK/TIM1_CH1N26PB14/SPI2_MISO/TIM1_CH2N27PB15/SPI2_MOSI/TIM1_CH3N 28
PA8/TIM1_CH1/MCO 29PA9/USART1_TX/TIM1_CH230PA10/USART1_RX/TIM1_CH3 31
PA11/CANRX/USBDM/TIM1_CH4 32PA12/CANTX/USBDP/TIM1_ETR33PA13/JTMS/SWDIO 34
VSS_2 35VDD_2 36PA14/JTCK/SWCLK
37PA15/JTDI 38PB3/JTDO 39PB4/JNTRST
40PB5 41PB6/I2C1_SCL/TIM4_CH1 42PB7/I2C1_SDA/TIM4_CH2
43BOOT044PB8/TIM4_CH3 45
PB9/TIM4_CH4 46VSS_347VDD_3 48
U3
STM32F103C8T6
20RCS3020RCS2920RCS2820RCS2720RCS2620RCS2520RCS2420RCS2320RCS2220RCS2120RCS2020RCS1920RCS1820RCS1720RCS1620RCS1520RCS1420RCS1320RCS0220RCS1120RCS1020RCS0920RCS0820RCS0720RCS0620RCS0520RCS0420RCS0320RCS0220RCS01 SINK01
SINK02SINK03SINK04SINK05SINK06SINK07SINK08SINK09SINK10SINK11SINK12SINK13SINK14SINK15SINK16SINK17SINK18SINK19SINK20SINK21SINK22SINK23SINK24SINK25SINK26SINK27SINK28SINK29SINK30
RSET
3V
SW01SW02 SW03SW04 SW05SW06
SINK01SINK02SINK03SINK04SINK05SINK06SINK07
SINK08SINK09SINK10SINK11SINK12SINK13SINK14SINK15SINK16SINK17SINK18SINK19SINK20SINK21SINK22SINK23
SINK24SINK25SINK26SINK27SINK28SINK29SINK30
CS34 1CS352CS36 3
CS37 4CS385CS39 6
INTB7
ADDR8
SDA9
SCL10
SDB11
GND12
RSET13
AVCC14
PVCC115
SW116SW217SW3 18
SW4 19SW520SW6 21
SW7 22SW823SW924
PVCC225
CS126CS2 27
CS3 28CS429CS5 30
CS6 31CS7 32CS8
33CS9 34CS10 35
GND36
CS1137CS12 38
CS13 39CS1440CS1541CS16 42
CS17 43CS1844CS19 45
CS20 46CS2147CS22 48
CS23 49CS24 50CS25
51CS26 52CS27 53CS28
54
GND55
CS29 56CS30 57CS31
58CS3259CS33 60
GND61
U1
IS31FL3741_QFN60
SW07SW08SW09
20RCS3120RCS3220RCS3320RCS3420RCS3520RCS3620RCS3720RCS3820RCS39
CS31CS32CS33CS34CS35CS36CS37CS38CS39
SINK31SINK32SINK33SINK34SINK35SINK36SINK37SINK38SINK39
SINK31SINK32SINK33SINK34SINK35SINK36SINK37SINK38SINK39
IS31FL3741_QFN60
1 23 45 67 89 1011 1213 1415 16
CON1
Header 8X2
1 23 45 67 89 1011 1213 1415 16
CON2
Header 8X2
1 23 45 67 89 1011 1213 1415 16
CON3
Header 8X2
SW07SW08 SW09
12
P1
Header 2
12
P3
Header 2
12
P4
Header 2
SDA_MSDA
SCL_MSCL
SDB_MSDB1
2
P2
Header 2
PA0
PA03V
10KR50
Figure 3: IS31FL3741 Application Schematic
*Note1
39×9 DOTS MATRIX LED DRIVER
Integrated Silicon Solution, Inc. – ams.issi.com 4 Rev. B, 12/19/2018
D82RGB4P
D83RGB4P
D84RGB4P
D85RGB4P
D86RGB4P
D87RGB4P
D73RGB4P
D74RGB4P
SW1 SW2 SW3 SW4 SW5 SW6
D75RGB4P
D76RGB4P
D77RGB4P
D78RGB4P
D64RGB4P
D65RGB4P
D66RGB4P
D67RGB4P
D68RGB4P
D69RGB4P
D55RGB4P
D56RGB4P
D57RGB4P
D58RGB4P
D59RGB4P
D60RGB4P
D46RGB4P
D47RGB4P
D48RGB4P
D49RGB4P
D50RGB4P
D51RGB4P
D37RGB4P
D38RGB4P
D39RGB4P
D40RGB4P
D41RGB4P
D42RGB4P
D28RGB4P
D29RGB4P
D30RGB4P
D31RGB4P
D32RGB4P
D33RGB4P
D19RGB4P
D20RGB4P
D21RGB4P
D22RGB4P
D23RGB4P
D24RGB4P
D10RGB4P
D11RGB4P
D12RGB4P
D13RGB4P
D14RGB4P
D15RGB4P
D1RGB4P
D2RGB4P
D3RGB4P
D4RGB4P
D5RGB4P
D6RGB4P
SW1SW2SW3SW4SW5SW6
1 23 45 67 89 1011 1213 1415 16
P1
Header 8X2
1 23 45 67 89 1011 1213 1415 16
P3
Header 8X2
1 23 45 67 89 1011 1213 1415 16
P2
Header 8X2
D7RGB4P
D8RGB4P
D9RGB4P
D16RGB4P
D17RGB4P
D18RGB4P
D25RGB4P
D26RGB4P
D27RGB4P
D34RGB4P
D35RGB4P
D36RGB4P
D43RGB4P
D44RGB4P
D45RGB4P
D52RGB4P
D53RGB4P
D54RGB4P
D61RGB4P
D62RGB4P
D63RGB4P
D70RGB4P
D71RGB4P
D72RGB4P
D79RGB4P
D80RGB4P
D81RGB4P
D88RGB4P
D89RGB4P
D90RGB4P
D91RGB4P
D92RGB4P
D93RGB4P
D94RGB4P
D95RGB4P
D96RGB4P
D97RGB4P
D98RGB4P
D99RGB4P
D100RGB4P
D101RGB4P
D102RGB4P
D103RGB4P
D104RGB4P
D105RGB4P
D106RGB4P
D107RGB4P
D108RGB4P
D109RGB4P
D110RGB4P
D111RGB4P
D112RGB4P
D113RGB4P
D114RGB4P
D115RGB4P
D116RGB4P
D117RGB4P
SW7 SW8 SW9
SW7SW8SW9
CS_R1
CS_R2
CS_R3
CS_R4
CS_R5
CS_R6
CS_R7
CS_R8
CS_R9
CS_R10
CS_R11
CS_R12
CS_R13
CS_G1
CS_G2
CS_G3
CS_G4
CS_G5
CS_G6
CS_G7
CS_G8
CS_G9
CS_G10
CS_G11
CS_G12
CS_G13
CS_B1
CS_B2
CS_B3
CS_B4
CS_B5
CS_B6
CS_B7
CS_B8
CS_B9
CS_B10
CS_B11
CS_B12
CS_B13
CS_R1
CS_R2
CS_R3
CS_R4CS_R5
CS_R6CS_R7
CS_R8CS_R9
CS_R10CS_R11
CS_R12CS_R13
CS_G1CS_G2
CS_G3CS_G4
CS_G5CS_G6
CS_G7CS_G8
CS_G9CS_G10
CS_G11CS_G12
CS_G13
CS_B1
CS_B2CS_B3
CS_B4CS_B5
CS_B6CS_B7
CS_B8
CS_B9
CS_B10CS_B11
CS_B12CS_B13
Figure 4: FxLED_9x13_ARRAY Application Schematic
39×9 DOTS MATRIX LED DRIVER
Integrated Silicon Solution, Inc. – ams.issi.com 5 Rev. B, 12/19/2018
BILL OF MATERIALS
IS31FL3741
Name Symbol Description Qty Supplier Part No.
LED Driver U1 Matrix LED Driver 1 ISSI IS31FL3741
LDO U2 Reduced voltage 1 SGMICRO SGM2019-3.3V
MCU U3 Microcontroller 1 STM STM32F103C8T6
Diode D1,D2 Diode, SMD 2 DIODES DFLS240
Crystal Y1 Crystal, 8MHz 1 JB HC-49S
Resistor R1,R2 RES,4.7k,1/16W,±5%,SMD 2 Yageo RC0603JR-074K7L
Resistor R3,R4,R6 RES,100K,1/16W,±5%,SMD 3 Yageo RC0603JR-07100KL
Resistor R5,R50,R46 RES,10k,1/16W,±5%,SMD 3 Yageo RC0603JR-0710KL
Resistor R47 RES,1.5k,1/16W,±5%,SMD 1 Yageo RC0603JR-071K5L
Resistor R48,R49 RES,22R,1/16W,±5%,SMD 2 Yageo RC0603JR-0722RL
Resistor
CS01,CS02,CS04,CS05,
~ CS34,CS35,CS37,CS38
RES,20R,1/10W,±5%,SMD 26 Yageo RC0603JR-0720RL
Resistor
CS03,CS06,CS09,CS12,
~ CS36,CS39
RES,20R,1/10W,±5%,SMD (Note 1)
13 Yageo RC0603JR-0720RL
Capacitor C1,C2,C3 CAP,0.1µF,16V,±20%,SMD 3 Yageo CC0603MRX7R7BB104
Capacitor C4,C6,C9 CAP,1µF,16V,±20%,SMD 3 Yageo CC0603KRX7R7BB105
Capacitor C5,C8 CAP,33pF,16V,±20%,SMD 2 Yageo CQ0603JRNPO9BN330
Capacitor C7 CAP,10nF,16V,±20%,SMD 1 Yageo CC0603KRX7R7BB103
Capacitor C10,C11 CAP,10uF,16V, ±20%,SMD 2 Yageo CC0805MKX5R7BB106
Button K1 Button SMD 1
Bill of Materials, refer to Figure 3 above.
FxLED 9x13 ARRAY
Name Symbol Description Qty Supplier Part No.
Diode D1~D117 RGB LED, SMD 117 Everlight 9-237/R6GHBHC-A01/2T Bill of Materials, refer to Figure 4 above.
Note 1: The value of these resistors on the evaluation board is 20Ω. For PVCC=5V and red LED application, prefer 51Ω for these resistors as shown in datasheet Figure 1.
39×9 DOTS MATRIX LED DRIVER
Integrated Silicon Solution, Inc. – ams.issi.com 6 Rev. B, 12/19/2018
0 0
00
2
1
2
1
2
1
2
1
1
1
0
0
0
0
2
4
6
8
10
12
1
3
5
7
9
11
1314
1516
1234567891011121314151617181920
24681012
135791113
14
15
16
2
4
6
8
10
12
1
3
5
7
9
11
1314
1516
1
2
4
3
Figure 5: Board Component Placement Guide - Top Layer
0 0
00
2
1
2
1
2
1
2
1
2
1
1
1
0
0
0
0
2
4
6
8
10
12
1
3
5
7
9
11
1314
1516
1234567891011121314151617181920
24681012
135791113
14
15
16
2
4
6
8
10
12
1
3
5
7
9
11
1314
1516
1
2
4
3
Figure 6: Board PCB Layout - Top Layer
39×9 DOTS MATRIX LED DRIVER
Integrated Silicon Solution, Inc. – ams.issi.com 7 Rev. B, 12/19/2018
0 0
00
2
1
2
1
2
1
2
1
1
1
0
0
0
0
2
4
6
8
10
12
1
3
5
7
9
11
1314
1516
1234567891011121314151617181920
24681012
135791113
14
15
16
2
4
6
8
10
12
1
3
5
7
9
11
1314
1516
1
2
4
3
Figure 7: Board Component Placement Guide - Bottom Layer
0 0
00
12
2
1
2
1
2
1
2
1
21
2 1
2 1
2
1
2 1
21
2
1
2
12
1 2
1
1
1
0
0
0
0
2
4
6
8
10
12
1
3
5
7
9
11
1314
1516
1234567891011121314151617181920
24681012
135791113
14
15
16
2
4
6
8
10
12
1
3
5
7
9
11
1314
1516
2 1
2 1
1
2
4
3
21 21
21
21
21
21
21
21
21
21
21
21
21
21
2 1 21
2
1
212 1
2
1
2 1
21
2 1
21
2 12 1
2 12 1
2 12 1
2 12 1
2 1
2 12 1
2 12 1
2
1
2
1
2
1
2
1
2 1
2 1
2
1
2
1
2
1
2 1
2 121
61
1
2
4
3
Figure 8: Board PCB Layout - Bottom Layer
39×9 DOTS MATRIX LED DRIVER
Integrated Silicon Solution, Inc. – ams.issi.com 8 Rev. B, 12/19/2018
Figure 9: LED Board Component Placement Guide - Top Layer
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
2 3
1 4
Figure 10: LED Board PCB Layout - Top Layer
39×9 DOTS MATRIX LED DRIVER
Integrated Silicon Solution, Inc. – ams.issi.com 9 Rev. B, 12/19/2018
Figure 11: LED Board Component Placement Guide - Bottom Layer
15
13
11
9
7
5
3
2
4
6
8
10
12
14
16
1
1
16 14 12 10 8 6 4 2
3579111315
15
13
11
9
7
5
3
2
4
6
8
10
12
14
16
1
Figure 12: LED Board PCB Layout - Bottom Layer
Copyright © 2018 Integrated Silicon Solution, Inc. All rights reserved. ISSI reserves the right to make changes to this specification and its products at any time without notice. ISSI assumes no liability arising out of the application or use of any information, products or services described herein. Customers are advised to obtain the latest version of this device specification before relying on any published information and before placing orders for products. Integrated Silicon Solution, Inc. does not recommend the use of any of its products in life support applications where the failure or malfunction of the product can reasonably be expected to cause failure of the life support system or to significantly affect its safety or effectiveness. Products are not authorized for use in such applications unless Integrated Silicon Solution, Inc. receives written assurance to its satisfaction, that: a.) the risk of injury or damage has been minimized; b.) the user assume all such risks; and c.) potential liability of Integrated Silicon Solution, Inc is adequately protected under the circumstances
39×9 DOTS MATRIX LED DRIVER
Integrated Silicon Solution, Inc. – ams.issi.com 10 Rev. B, 12/19/2018
REVISION HISTORY
Revision Detail Information Date
A Initial release 2017.09.07
B Update schematic and bill of materials. 2018.12.19
39×9 DOTS MATRIX LED DRIVER
Integrated Silicon Solution, Inc. – ams.issi.com 11 Rev. B, 12/19/2018
APPENDIX Ⅰ: IS31FL3741 Arduino Test Code V01A
#include<Wire.h>
#include<avr/pgmspace.h>
#define Addr_GND 0x60
#define R 0xFF
#define G 0x00
#define B 0xFF
uint8_t i,j;
const PROGMEM byte PWM_Gama64[64]=
0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,
0x08,0x09,0x0b,0x0d,0x0f,0x11,0x13,0x16,
0x1a,0x1c,0x1d,0x1f,0x22,0x25,0x28,0x2e,
0x34,0x38,0x3c,0x40,0x44,0x48,0x4b,0x4f,
0x55,0x5a,0x5f,0x64,0x69,0x6d,0x72,0x77,
0x7d,0x80,0x88,0x8d,0x94,0x9a,0xa0,0xa7,
0xac,0xb0,0xb9,0xbf,0xc6,0xcb,0xcf,0xd6,
0xe1,0xe9,0xed,0xf1,0xf6,0xfa,0xfe,0xff
;
void setup()
Wire.begin();
Wire.setClock(1000000);//I2C 1MHz
Init_3741(R, G, B);
void loop()
IS31FL3741_Test_mode1();//breath mode
void IS_IIC_WriteByte(uint8_t Dev_Add,uint8_t Reg_Add,uint8_t Reg_Dat)
Wire.beginTransmission(Dev_Add/2); // transmit to device IS31FL373x
Wire.write(Reg_Add); // sends regaddress
Wire.write(Reg_Dat); // sends regaddress
Wire.endTransmission(); // stop transmitting
void Init_3741(uint8_t Rdata, uint8_t Gdata, uint8_t Bdata)
IS_IIC_WriteByte(Addr_GND,0xfe,0xc5);//unlock
IS_IIC_WriteByte(Addr_GND,0xfD,0x02);//write page 2
for(i=2;i<0xB4;i+=3)
39×9 DOTS MATRIX LED DRIVER
Integrated Silicon Solution, Inc. – ams.issi.com 12 Rev. B, 12/19/2018
IS_IIC_WriteByte(Addr_GND,i,Rdata);//R LED Scaling
for(i=1;i<0xB4;i+=3)
IS_IIC_WriteByte(Addr_GND,i,Gdata);//G LED Scaling
for(i=0;i<0xB4;i+=3)
IS_IIC_WriteByte(Addr_GND,i,Bdata);//B LED Scaling
IS_IIC_WriteByte(Addr_GND,0xfe,0xc5);//unlock
IS_IIC_WriteByte(Addr_GND,0xfD,0x03);//write page 3
for(i=2;i<0xAB;i+=3)
IS_IIC_WriteByte(Addr_GND,i,Rdata);//R LED Scaling
for(i=1;i<0xAB;i+=3)
IS_IIC_WriteByte(Addr_GND,i,Gdata);//G LED Scaling
for(i=0;i<0xAB;i+=3)
IS_IIC_WriteByte(Addr_GND,i,Bdata);//B LED Scaling
IS_IIC_WriteByte(Addr_GND,0xfe,0xc5);//unlock
IS_IIC_WriteByte(Addr_GND,0xfD,0x00);//write page 0
for(i=0;i<0xB4;i++)
IS_IIC_WriteByte(Addr_GND,i,0x00);//write all PWM set 0x00
IS_IIC_WriteByte(Addr_GND,0xfe,0xc5);//unlock
IS_IIC_WriteByte(Addr_GND,0xfD,0x01);//write page 1
for(i=0;i<0xAB;i++)
IS_IIC_WriteByte(Addr_GND,i,0x00);//write all PWM set 0x00
//init all the PWM data to 0
IS_IIC_WriteByte(Addr_GND,0xfe,0xc5);//unlock
IS_IIC_WriteByte(Addr_GND,0xfD,0x04);//write page 4
IS_IIC_WriteByte(Addr_GND,0x01,0x7F);//global current
IS_IIC_WriteByte(Addr_GND,0x00,0x01);//normal operation
void IS31FL3741_Test_mode1(void)//
39×9 DOTS MATRIX LED DRIVER
Integrated Silicon Solution, Inc. – ams.issi.com 13 Rev. B, 12/19/2018
IS_IIC_WriteByte(Addr_GND,0xFD,0x00);//write frist frame
for (j=0;j<64;j++)//all LED ramping up
IS_IIC_WriteByte(Addr_GND,0xfe,0xc5);//unlock
IS_IIC_WriteByte(Addr_GND,0xfD,0x00);//write page 0
for(i=0;i<0xB4;i++)
IS_IIC_WriteByte(Addr_GND,i,pgm_read_byte_near(&PWM_Gama64[j]));//set all PWM
IS_IIC_WriteByte(Addr_GND,0xfe,0xc5);//unlock
IS_IIC_WriteByte(Addr_GND,0xfD,0x01);//write page 1
for(i=0;i<0xAB;i++)
IS_IIC_WriteByte(Addr_GND,i,pgm_read_byte_near(&PWM_Gama64[j]));//set all PWM
delay(10);//10ms
delay(1000); //keep on 1s
for (j=63;j>0;j--)//all LED ramping down
IS_IIC_WriteByte(Addr_GND,0xfe,0xc5);//unlock
IS_IIC_WriteByte(Addr_GND,0xfD,0x00);//write page 0
for(i=0;i<0xB4;i++)
IS_IIC_WriteByte(Addr_GND,i,pgm_read_byte_near(&PWM_Gama64[j-1]));//set all PWM
IS_IIC_WriteByte(Addr_GND,0xfe,0xc5);//unlock
IS_IIC_WriteByte(Addr_GND,0xfD,0x01);//write page 1
for(i=0;i<0xAB;i++)
IS_IIC_WriteByte(Addr_GND,i,pgm_read_byte_near(&PWM_Gama64[j-1]));//set all PWM
delay(10);//10ms
delay(500); //keep off 0.5s