Home

2416 Monocolor LED 3mm/5mm Dot Matrix Display

image

Contents

1. E BB nd HB BH EID Pp ru ti 8 8 8 8 8 8 8 88 Program codes the chip of the driver board the board Note If you re not familiar with programming try using the sample codes first 1 2 2 Connection of Many Info Boards 4 Boards First auxiliary power cords are suggested to be used when four info boards are connected in series via the auxiliary power terminals J1 and J2 Connect 5V GND of J2 on one info board and the corresponding 5V GND of J1 on the next info board with power cords The auxiliary supply should be able to output DC5V 1 5A Connect BR1 of the driver board and BR1 of the info board with a 16 pin IDC cable 2004 2009 Sure Electronics Inc DE DP11111 amp DE DP11112 amp DE DP11211 amp DE DP11212 Ver2 0 Page 5 2416 Monocolor LED 3mm 5mm Dot Matrix Display Information Board Then as shown in figure 1 8 connect four 2416 info boards and the driver board with 16 pin IDC cables and power cords Set the CS1 of SW1 of the first info board CS2 of the second info board CS3 of the third info board and CS4 of the fourth info board ON FIGURE 1 8 CONNECTION OF FOUR 2416 3MM DOT MATRIX DISPLAY INFO BOARDS CONNECTED IN SERIES eA Power m f P wee e zc ET Es AS RA e CE 8888 888 AA 888 BERI FRR BRAG BER BARE AAA 9000644655550 9056945050000 ttt t bt en 9055445946000 Sl Sl Sl ri
2. RAB AA 22 227 Be yl f i TC 2 fe FIGURE 1 9 CONNECTION OF FOUR 2416 5MM DOT MATRIX DISPLAY INFO BOARDS CONNECTED IN SERIES Seo RN Qe La ES Program the chip on the driver board to control the LED display Note If you use the sample codes all the boards will display the same content DE DP11111 amp DE DP11112 amp DE DP11211 amp DE DP11212 Ver2 0 Page 6 2004 2009 Sure Electronics Inc 2416 MONOCOLOR LED 3MM 5MM SURE DOT MATRIX DISPLAY e electronics INFORMATION BOARD USER S GUIDE Chapter 2 Hardware Detail 2 1 Hardware 1 6 pieces of 8 8 LED dot matrix display Light emitting diameter of DE DP11111 and DE DP11112 is 3mm Light emitting diameter of DE DP11211 and DE DP11212 is 5mm 2 LED drive chip U1 HT1632C QFP packaging 16 male sockets BR1 and BR2 used for data clock control signal and 5V supply input 4 Auxiliary power supply terminals 5 J1and J2 for external power input when more info boards are connected in series 2 2 Port Definition TABLE 2 1 PIN DEFINITION OF BR1 AND BR2 WRITE clock input with pull high resistor Data on the DATA 5 WR lines are latched into the HT1632C on the rising edge of the WR signal READ clock input with pull high resistor The HT1632C RAM data is clocked out on the falling edge of the RD signal The clocked out data will appear on the DATA line The host controll
3. om oe fom 69 8 DE DP11111 amp DE DP11112 amp DE DP11211 amp DE DP11212 Ver2 0 Page 8 2004 2009 Sure Electronics Inc Hardware Detail FIGURE 2 1 THE CORRESPONDING ADDRESS OF HT1632C 2416 DOT MATRIX DISPLAY INFO BOARD FIGURE 2 2 THE CORRESPONDING ADDRESS OF HT1632C 2416 5 DOT MATRIX DISPLAY INFO BOARD OUTO OUT23 2 4 Command Format CS 51 CS2 CS3 CS4 of HT1632C must be set to low before data or command is sent to this HT 1632C When the transmission is complete CS must be reset to high The timing diagram is as follows 2004 2009 Sure Electronics Inc DE DP111118DE DP111128DE DP112118DE DP11212 Ver2 0 Page 9 2416 Monocolor LED 3mm 5mm Dot Matrix Display Information Board FIGURE 2 3 SEND DATA WRITE Mode Command Code 1 0 1 1 A6 AS A4 A2 1 A0 D0 D1 02 D3 Memory Address 2 MA2 Data MA2 Memory Address 1 MA1 Data _ WRITE Mode Successive Address Writing cs WR DATA 11011 A6 A5 4 A2 A1 AO DO D1 D2 D3 DO D1 02 03100 01 02 0310001 02 D3 DO Memory Address Data Data MA 1 Data 2 Data MA 3 FIGURE 2 4 SEND COMMAND Command Mode Command Code 1 00 DATA 1 X LANDA ANANIAS Command 1 Command or Data Mode Note You may referto 1632 data sheet for details 2 5 Command summary is shown as follows Command Command i DE D
4. SURE electronics 2416 Monocolor LED 3mm 5mm Dot Matrix Display Information Board User s Guide 2004 2009 Sure Electronics Inc DE DP11111 amp DE DP11112 amp DE DP11211 amp DE DP11212 Ver2 0 2416 MONOCOLOR LED 3MM 5MM co SURE DOT MATRIX DISPLAY electronics INFOMATION BOARD USER S GUIDE Table of Contents Chapler Marr I snara waqa 1 Td OVORVICW E lot 1 1 2 QUICK SIL u a ab gu a 3 1 2 1 Connection of One Info Board and The Driver Board 3 1 2 2 Connection of Many Info Boards 4 Boards 5 Chapter 2 Hardware Detail aa 7 M MR rl 7 2 2 DefiBiti l uec u u uu a o RU PARC OP aii redi der 7 2 3 DISDIAY Memo us cd 8 2 4 uuu u T u uu E ann 9 2 5 Command SUMMA curtir tad 10 Chapter Electrical Characteristics J 12 Chapter 4 Mechanical Drawing coria eo eae E ceto eoo oa ere Sau us 13 Chapter 5 ADDenOD6C 14 5 1 ScheMm lle ee 14 5 2 Sample Code 14 5 3 Meal DISSIDAa ON uu uuu um 20 Chapler6 GConlacl US seen 23 po 2004 2009 Sure Electronics Inc DE DP11111 amp DE DP11112 amp DE DP11211 amp DE DP11212 Ver2 0 Page i 2416 Monocolor LED 3mm 5mm Dot Matrix Display Information Board NO
5. 050 Hee LE apoye ZS dJ0O OZE9LLH 6MOH OLepouie AS LE AS AS AS AS ASt AS AS Y ZASN Zepouy ellos S apoye x amp MOD 8 Kg uv c yapouy Le EMOH 6 er epouy 92 ZMOY Ol gepoureo zepouy v wos LEE zapoureo Lapouy L k tepoyieo Qepouy 24 8 ASIN in ez ojepouie 2 Occ 964 gapoyyeg 0 S6Y gepoured 0 64 Lepoyieg Yoz 0 ced Lapoyleg HO0zc 169 gLepouie 022 06H oLapoyje y0zz 684 884 Spoyle 984 989 0 589 HOcc 28H LZapoyleo HOLE 08H 6 H Yoz 824 plapoyyeg 022 48 gepoured 0 924 zapoyleo slapoyleg Hozz bly MHocc 4H 022 LL epouy 0zz 02H LL 21 apouy Hozz 89H 8 6 y Lopouy 3052 19H 8 6 lzepodle9 EISPOUY 028 SOY S 9 Lepouy 082 voy E 9 ELSPOUY Ogepoureo 028 594 028 E H yepoureo 066 194 H LLepouy apoyo 0 65H vL L LLapouy 4066 89H vL L LLapouy 8 OLapoyje 022 954 LL 9L QLepouy 02
6. DOT MATRIX DISPLAY INFO BOARD BB BH 68 DH 5 SURE B 9 09 09 08 CU 9 08 09 08 e Sd EA e ui Pe RE 808782 60 87 87 67 kako Note All diagrams in this manual are for reference only 1 2 Quick Start 16 IDC cable and two power cords are provided for free DE DD210 by Sure Electronics is used in this manual as a driver board Program this driver board to control the display on the info board FIGURE 1 5 ACCESSORIES 16 pin IDC Cable Auxiliary Power Cord Note 1 Other driver board can be used You may refer to 2 2 Port Definition to do relative adjustments 2 Sample codes are provided in this manual for reference 1 2 1 Connection of One Info Board and The Driver Board Connect BR1 of the info board and BR1 of the driver board with a 16 pin IDC cable and push CS1 of DIP switch on the info board to ON 2004 2009 Sure Electronics Inc DE DP11111 amp DE DP11112 amp DE DP11211 amp DE DP11212 Ver2 0 Page 3 2004 2009 Sure Electronics Inc ge 4 FIGURE 1 6 CONNECTION OF THE DRIVER BOARD AND ONE 2416 3MM DOT 2416 Monocolor LED 3mm 5mm Dot Matrix Display Information Board MATRIX DISPLAY INFO BOARD a a ur gs a i e m ma po no Tm zi a DE DP11111 amp DE DP11112 amp DE DP11211 amp DE DP11212 Ver2 0 Pa Overview FIGURE 1 7 CONNECTION OF THE DRIVER BOARD AND ONE 2416 5MM DOT MATRIX DISPLAY INFO BOARD
7. DOT MATRIX DISPLAY INFORMATION BOARD 2416 MONOCOLOR LED 3MM 5MM 3 Chapter 5 Appendix 5 1 Schematic FIGURE 5 1 SCHEMATIC 26 EA SSA 041 SNOO LEMOH TE SSA 031 6NOD OEMOH 62 H 702895 SSA LENOO 82MOH T Yt 28 LL pouly emoo samos SE 31001 A9L 31001 A9L 65 SINOO EMOH 86 9 apouy 697 89 2 Egspoure AS Le 2zepoured Le 02MOH v d e 6 lt AGF AS Sv 6Lapoyye Limo LS a i 5 2 viva 42 Ltepome 9 um 8 _919 P LE vimoy 62 51 ue 4n23 A9L ueijnezc A9L OL vor 01 01 01 E 50 ELMOH 28 ERIS 10 F e 9 gt E 6H SAAS eS
8. Clear flag d liga S LL Function Name PrintString Function Feature up to 4 ASCII chars to be sent Input Argument string strings to be sent Output Argument void 2004 2009 Sure Electronics Inc DE DP11111 amp DE DP11112 amp DE DP11211 amp DE DP11212 Ver2 0 Page 19 Appendix void Print unsigned char i 0 unsigned char buff 0x00 AddressWrite 0x00 SPI ModelConfigure for i 0 i lt 48 i buff Oxaa SPI DataSend buff SSPCON 0x11 5 3 Heat Dissipation Following are pictures of heat dissipation gained by Fluke 1120 Thermal Imager in the condition of info board working at full load all LEDs on 100 PWM duty cycle FIGURE 5 2 HEAT DISTRIBUTION OF THE BACK PANEL OF 2416 3MM DOT MATRIX DISPLAY INFO BOARD 36 2 C 33 5 C 30 8 C 28 1 C 25 4 C 15 0 o 254 36 2 IES DE DP11111 amp DE DP11112 amp DE DP11211 amp DE DP11212 Ver2 0 Page 20 2004 2009 Sure Electronics Inc 2416 Monocolor LED 3mm 5mm Dot Matrix Display Information Board FIGURE 5 3 HEAT DISTRIBUTION OF THE BACK PANEL OF 2416 5MM DOT MATRIX DISPLAY INFO BOARD 19 C 29 1 C 26 6 C 24 1 C 21 6 C 19 1 C 15 0 360 0 19 1 29 1 FIGURE 5 4 HEAT DISTRIBUTION OF THE FRONT PANEL OF 2416 3MM DOT MATRIX DISPLAY INFO BOARD 34 5 32 0 C 29 5 C 27 0 C 24 5 245 345 2004 2009 Sure Electronics Inc DE
9. DP11111 amp DE DP11112 amp DE DP11211 amp DE DP11212 Ver2 0 Page 21 Appendix FIGURE 5 5 HEAT DISTRIBUTION OF THE FRONT PANEL OF 2416 5 DOT MATRIX DISPLAY INFO BOARD T 19 26 2 C 23 7 21 2 18 7 16 2 15 0 360 0 16 2 26 2 DE DP111118DE DP111128DE DP112118DE DP11212 Ver2 0 Page 22 2004 2009 Sure Electronics Inc MATRIX DISPLAY INFORMATION BOARD USER S GUIDE 2416 MONOCOLOR LED 3MM 5MM SURE electronics Chapter 6 Contact Us Sure Electronics Co Ltd 5F Zone A Qinhuai Technology Innovation Center 105 2 DaMing ZIP 210022 Nanjing P R China Tel 86 13601408832 For technical questions only 86 25 66606340 English service from GMT1 10AM Fax 86 25 66606341 866 Website www sure electronics com www sure electronics net ESS AAA AAA nY t n 2004 2009 Sure Electronics Inc DE DP11111 amp DE DP11112 amp DE DP11211 amp DE DP11212 Ver1 0 Page 23
10. i lt 12 i Write command words in HI1632C register CLK 0 CLK_DELAY command amp 0x0800 Return the MSB command command lt lt 1 Shift left once j j gt gt 11 Position the value at the LSB DAT Send the value to the data port CLK_DELAY CLK 1 Data transmission data valid on rising edge CLK_DELAY CS OFF Disable all HT1632Cs kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Function AddressWrite Function Feature write start address of data to HT 1632C Input Argument address address to be written Output Argument void 7 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk void AddressWrite unsigned char address unsigned char i temp SSPCON 0x11 address address amp Ox7f 7 bit address mask the MSB CLK 0 Clock line is 0 CLK_DELAY DAT 1 Send 1 to data port CLK_DELAY CLK 1 Data transmission CLK_DELAY CLK 0 CLK_DELAY DAT 0 Send 0 to data port CLK_DELAY CLK 1 Data transmission CLK_DELAY CLK 0 CLK_DELAY DAT 1 Send 1 to data port CLK_DELAY CLK 1 Data transmission CLK_DELAY for i 0 1 lt 7 i Write address to HT1632C register DE DP11111 amp DE DP11112 amp DE DP11211 amp DE DP11212 Ver2 0 Page 18 2004 2009 Sure Electronics Inc 2416 Monocolor LED
11. 2 ssy Zt 9 QLepouy 022 egy 02 61 gapouy apoyjeg 3066 02 6L 0 059 c 3 pum Sy ec gapouy 0spouleD 0 6rd c gepouy sa gepouie 022 279 9ru gapoyje 028 Occ Wu c9poule Hozz Opa Hozz SEH 022 LEH oz poy eg 028 SEH papoylieo 022 bed LzepoyyeQd H0cc 99 02 ced LEH Ode 8ru plapoyyeg 0 9spouleD_ 824 ez poy o SlepouleD HOLE 924 Zepoyyeg Sed SN z poule o apouy glepoyjeg Hozz EcH 113 apouy Zepouyeg 05 ood JAN eL apouy zzapoyjeg 028 gepouy H0cc Oct 8 6 gepouy 082 61H 8 6 gepouy Lgepouie o Ggepouy elapoyieg 065 ZH 9 9 gapouy gepoyieg 4066 919 9 9 gapouy zLepoyieg 02 yid yepouy uocc ely 5 pepouy apoye 4023 ME bl L Occ OLY bl L epouy OlLepoyieg Hozz 84 LL EIS pouy 0 29 LL 9 022 SY 02 aal 61 Lapouy Lapoyjeo Hozz vu 02 aal 61 Lapouy 9Lapoyjeg gapoyleg 052 ed 52 ec Qepouy 0spouleD Hozz id 62 ec Qepouy s1 olepouy 5 2 Sample Code dasan ip is use The driver board DE DD210 integrating PIC16F723 as its master ch example This sample code is used t
12. 3mm 5mm Dot Matrix Display Information Board CLK 0 Clock line is 0 CLK_DELAY temp address amp 0x40 Return the MSB address address lt lt 1 Shift left once temp temp gt gt 6 Position the value at the LSB DAT temp Send the value to the data port CLK_DELAY CLK 1 Data transmission CLK_DELAY 1 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Function Name SPI ModelConfigure Function Feature configure the corresponding data transfer port of PIC microcontroller for SPI communication Input Argument void Output Argument void P ec lc OS void SPI ModelConfigure void SSPIF 0 Initial state waiting to send data SSPCON 0x31 Write in this register SSPEN 1 enable serial port CKP 1 CLK high in an idle state CLK is FOSC 16 SSPSTAT 0x80 Write in this register SMP 1 Input data sampled at end of data output time CKE 0 data stable on rising edge of SCK AAA AA E KG KN a a u ni Function Name SPI DataSend Function Feature transmit data in SPI mode of PIC microcontroller Input Argument data bytes of data to be transmitted Output Argument void kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk void SPI DataSend const unsigned char data SSPBUF data Start sending while SSPIF Wait for data being sent SSPIF 0
13. P11111 amp DE DP11112 amp DE DP11211 amp DE DP11212 Ver2 0 Page 10 2004 2009 Sure Electronics Inc Hardware Detail FIGURE 2 5 COMMAND SUMMARY Command Summary Te READ 110 A6A5A4A3A2A1A0D0D1D2D3 D Read data from the RAM WRITE 101 A6A5A4A3A2A1A0D0D1D2D3 D Write data to the RAM r ahi m 4 2 1 0 0010203 Read and Write data to the RAM u SYS DIS m 0000 0000 X Turn off both system oscillator and LED oH ves cycle generator sen 100 6 DoF ioo Tmo LED auy oie gener eoon ooooson runontED auy oie geneior _ Set slave mode and clock source from exter SLAVE Mode 0001 0XXX X nal clock the system clock input from OSC pin and synchronous signal input from SYN pin Set master mode and clock source from RC Master on chip RC oscillator the system clock out Mode A put to OSC pin and synchronous signal out put to SYN pin Set master mode and clock source from ex 0001 11XX X ternal clock the system clock input from OSC pin and synchronous signal output to SYN pin EXT CLK Master Mode ab 00 N MOS open drain output and 8 COM option ab 01 N MOS open drain output and 16 COM option ab 10 P MOS open drain output and 8 COM option ab 11 P MOS open drain output and 16 COM option Mes oxoxox 100 Pwwaay
14. TES Product Version Ver 1 0 Document Version Ver 2 0 DE DP111118DE DP111128DE DP112118DE DP11212 Ver2 0 Page ii 2004 2009 Sure Electronics Inc 2416 MONOCOLOR LED 3MM 5MM SURE DOT MATRIX DISPLAY e electronics INFORMATION BOARD USER S GUIDE Chapter 1 Overview 1 1 Overview Thanks for using 2416 monocolor LED dot matrix info board series by Sure Electronics Each integrating HT1632C as the driver chip these info boards support 16 level PWM brightness control and all LED dot matrixes displayed are mapped to the RAM of HT1632C Peripheral circuits are required to light up LEDs via the ports on the boards These info boards can be used to display digits letters and even graphs It is allowed to connect up to 4 boards of the same kind in series for wider applications such as info display in banks stores households and so on You may refer to the following table for members of this series TABLE 1 1 2416 MONOCOLOR LED DOT MATRIX DISPLAY INFO BOARD SERIES 2416 Red LED 3mm Dot Matrix Display Information Board AAA A r cn Pr 2004 2009 Sure Electronics Inc DE DP11111 amp DE DP11112 amp DE DP11211 amp DE DP11212 Ver2 0 Page 1 2416 Monocolor LED 3mm 5mm Dot Matrix Display Information Board FIGURE 1 2 FRONT VIEW OF 2416 5MM DOT MATRIX DISPLAY INFO BOARD He H8 00000000000 DE DP111118DE DP111128DE DP112118DE DP11212 Ver2 0 Page 2 2004 2009 Sure Electronics Inc Overview FIGURE 1 4 BACK VIEW OF 2416 5
15. _ PWM Duty Heo oxenex Te Meo oxenrx pums Hes exenox 100 ronca omen 2004 2009 Sure Electronics Inc DE DP11111 amp DE DP11112 amp DE DP11211 amp DE DP11212 Ver2 0 Page 11 JR DOT MATRIX DISPLAY electronics INFORMATION BOARD USER S GUIDE Chapter 3 Electrical Characteristics e 2416 MONOCOLOR LED 3MM 5MM O SURE e TABLE 3 1 ELECTRICAL CHARACTERISTICS Storage Temperature 20 to 80 Average Operating Current 0 20 A cycle DE DP11212 0 27 Maximum Operating DE DP11111 0 35 Current All LEDs on DE DP11112 0 27 100 PWM DE DP11211 0 33 FE F DE DP11111 amp DE DP11112 amp DE DP11211 amp DE DP11212 Ver2 0 Page 12 2004 2009 Sure Electronics Inc MATRIX DISPLAY INFORMATION BOARD USER S GUIDE Chapter 4 Mechanical Drawing 2416 MONOCOLOR LED 3MM 5MM SURE e electronics FIGURE 4 1 MECHANICAL DRAWING OF ONE 2416 3MM DOT MATRIX DISPLAY INFO BOARD 3 80inch 96 50mm 3 40inch 86 40mm 2 52 inch 64 00mm 3 90inch 3 50inch 99 10mm inc 88 90mm 3 56inch 90 40mm FIGURE 4 2 MECHANICAL DRAWING OF ONE 2416 5 DOT MATRIX DISPLAY INFO BOARD 7 10inch 180 30mm 6 50inch 165 10mm 5 80inch 147 30mm 120 40mm 132 10mm m 4 74inch 5 20inch en ee ee ee ee ee ee 2004 2009 Sure Electronics Inc DE DP11111 amp DE DP11112 amp DE DP11211 amp DE DP11212 Ver2 0 Page 13 USER S GUIDE
16. e commands to all HT1632Cs void AddressWrite unsigned char address Write address void SPI_ModelConfigure void Configure data transfer mode as SPI mode void SPI DataSend const unsigned char data Send data in SPI mode void Print void Function displayed on the board void main Systemlnit SetHT1632As2416 CS_ON Print while 1 Function Name system initialization Function Feature set corresponding data reading and writing of PORTB and PORTC Input Argument void Output Argument void kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk void Systemlnit void IRCF1 1 Set the frequency of the internal oscillator as 8MHz IRCFO 0 BRGH 0 Select low baud rate mode default status after power on reset OSCTUNE Ox1f Oscillator at the maximum frequency ANSELB 0x00 PORTB as a digital I O port DE DP11111 amp DE DP11112 amp DE DP11211 amp DE DP11212 Ver2 0 Page 16 2004 2009 Sure Electronics Inc 2416 Monocolor LED 3mm 5mm Dot Matrix Display Information Board TRISB 0x00 PORTB as an output port 0x00 Clear PORTB output TRISCO 1 PORTCO SW1 port as an input port TRISC1 1 PORTC1 SW2 port as an input port TRISC3 0 CLK signal as an output port TRISC5 0 PORTC5 DATA signal as an output port TOIE 0 Turn off interruption of timerO kkkkkkkkkkkkkkkk
17. er can use the next rising edge to latch the clocked out data DATA Serial data input or output with pull high resistor If the RC Master Mode command is programmed the system clock source is from on chip oscillator and OSC system clock is output to OSC pin If the Slave Mode or EXT CLK Master Mode command is programmed the system clock source is input from external clock via the OSC pin If the RC Master Mode or EXT CLK Master Mode command is programmed the synchronous signal is output to SYN 10 SYNC pin If the Slave Mode command is programmed the synchronous signal is input from SYN pin 2004 2009 Sure Electronics Inc DE DP11111 amp DE DP11112 amp DE DP11211 amp DE DP11212 Ver2 0 Page 7 2416 Monocolor LED 3mm 5mm Dot Matrix Display Information Board 2 3 Display Memory Display is controlled by modifying the data stored in RAM of HT1632C All LEDs on the board are controlled by only one HT1632C The distribution of HT 1632C s corresponding address is shown as follows TABLE 2 2 THE CORRESPONDING ADDRESS OF HT1632C mI om ft fon m m m eI om wI e L e e Le OUT9 24H jej 1 _ Tre _ I T EC LII Tre I L e fe tm er LL Tre Lie CE je foe
18. kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Function Name SetHT1632C_As2416 Function Feature write basic configuration to HT1632C in command words Input Argument void Output Argument void id TR Y YY Zi void SetHT1632As2416 void CommandWrite SYS EN Enable system oscillator CommandWrite LED_ON Turn on LED CommandWrite RC MASTER MODE Select on chip RC as the system clock working in master mode CommandWrite N MOS COM16 IN MOS open drain output and 24 ROW 16 COM CommandWrite PWM 16 Set the grade of initial PWM brightness as light degree 16 16 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Function Name CommandWrite Function Feature Write control commands to all HT1632Cs Input Argument command words written to command specifically stated in declare function Output Argument void Argument Description compile control commands to all external HT 1632Cs for the requirement of the project NS OO void CommandWrite unsigned int command unsigned char i unsigned int j command command amp 12 bit command word upper four bits masked CS OFF Disable all HT1632Cs CLK DELAY CS ON Enable all HT1632Cs CLK DELAY 2004 2009 Sure Electronics Inc DE DP11111 amp DE DP11112 amp DE DP11211 amp DE DP11212 Ver2 0 Page 17 Appendix for i 0
19. llator define LED OFF 0b100000000100 Turn off LED duty cycle generator define LED ON 0b100000000110 Turn on LED duty cycle generator define N MOS COM16 0b100001001000 N MOS open drain output and 16 option define PWM 16 0b100101011110 PWM 16 16 duty endif File SampleCode c include lt pic h gt include Declare h J KER Function Name device file configuration Function Feature configure MCU s working modes and status Input Argument INTIO INTOSCIO internal oscillator OSC1 and OSC2 used as I O ports WDTDIS Disable watchdog timer 2004 2009 Sure Electronics Inc DE DP111118DE DP111128DE DP112118DE DP11212 Ver2 0 Page 15 Appendix PWRTDIS Disable power delay timer MCLREN Enable MCLR UNPROTECT Do NOT protect the code BORDIS Brown out reset disable BORV25 Brown out reset voltage set to 2 5V nominal PLLEN DEBUGEN In circuit debugger enabled VCAPDIS Voltage regulator capacitor disable Output Argument void J P508 980 HO HH HE ICE I III I III I II I II II III I AI II II III II SIS ISI II III _ CONFIG INTIO amp WDTDIS amp PWRTEN 8 MCLREN amp UNPROTECT 8 BORDIS 8 BORV25 amp PLLEN amp DEBUGEN _ CONFIG VCAPDIS Function Prototype Declaration void Systemlnit void System Initialization void SetHT 1632As241 6 void Set HT1632C to work in 24 16 mode void CommandWrite unsigned int command Writ
20. o illuminate the odd rows of LEDs MPLAB IDE v8 40 HI TECH ANSI C Compiler PRO 9 65 File Declare h t lion environmen Compilat Compiler DECLARE DECLARE ifndef define ports used InILIOn O Macro def 2004 2009 Sure Electronics Inc ge 14 DE DP11111 amp DE DP11112 amp DE DP11211 amp DE DP11212 Ver2 0 Pa 2416 Monocolor LED 3mm 5mm Dot Matrix Display Information Board define CS1 RBO 8 control ports define CS2 RB1 define CS3 RB2 define CS4 RB3 define CS5 RB4 define CS6 RB5 define CS7 RB6 define CS8 RB7 define CS OFF 51 1 52 1 53 1 84 1 55 1 56 1 597 1 58 1 define CS ON CS1 0 CS2 0 CS3 0 CS4 0 CS5 0 CS6 0 CS7 0 CS8 0 define CLK RC3 Clock line simulating SPI communication this port is also the clock line of SPI communication integrated by MCU define DAT RC5 Data line simulating SPI communication this port is also the data line of SPI communication integrated by MCU define SW1 RC0 Two switches define SW2 RC1 Following is the functions defined in way of macro definition define CLK_DELAY NOP Following definition facilitates compilation of HT1632C control commands define RC MASTER MODE 06100000110000 Set master mode and clock source from on chip RC oscillator define SYS DIS 0b100000000000 Turn off both system oscillator and LED duty cycle generator define SYS EN 0b100000000010 Turn on system osci

Download Pdf Manuals

image

Related Search

Related Contents

Manuale per l`installazione, uso e manutenzione  Mode d`emploi V2.1  L`eMpire des sciences  Samsung HW-H7501 Vartotojo vadovas  ITEM 58372 1/10th SCALE RADIO CONTROL 4x4 PICK  Web MessageManager User Manual  VEGABAR 51, 52, 53, 54, 55  Samsung GT-E3210 manual de utilizador  Baureihe 115-02  Please Click here to the Instructions PDF File  

Copyright © All rights reserved.
Failed to retrieve file