SPI1_write(myValue) // send myValue value to max7219 (digit place). SPI1_write(m圜olumn) // send m圜olumn value to max7219 (digit place). Void Write_Byte(unsigned short m圜olumn, unsigned short myValue) SPI1_write(0x0F) // Segment luminosity intensity SPI1_write(0x09) // BCD mode for digit decoding Here we set the configuration of max7219. End Serial 8x8 Matrix Display connections. Sbit Chip_Select_Direction at TRISC0_bit Serial 8x8 Matrix Display connections. Here we define row values for each of the six columns corresponding to theĠx20, 0x3f, 0x20, 0x20, 0x3e, 0x21, // pi We have stripped them out, if/when we have a need and a bigger PIC, For more space, we don't need byte 0 and byte 7. ' Flash Program Write: Write Protection OFF ' SW: MikroC PRO for PIC 2011 (version v4.60) ' Test.Board: WB-106 Breadboard 2420 dots ' Display on 8x8 Led matrix, the alphabet. ' Trough the current experiment we wish to succed the next task: ' Project name: PIC16F876A & MAX7219 For 8x8 LED Display To store the entire alphabet and symbols, the column 0 and 7 are not used, in case you opt for a microcontroller with more RAM, you can add columns 0 and 7 and you will enjoy the entire matrix. The program is written in mikroC Pro for PIC 2011 (version v4.60). The electronic scheme is built in Eagle Cad, free version:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |