Professional Documents
Culture Documents
Examples of C Code & Micro Circuits for PIC16C84, AVR & 8051 MICROCONTROLLERS
APPLICATI
Led Bulb From China EASY PIC'n Book US$29.95
Since we can source a maximum of 20mA per pin for PORTB and total maximum source current of PORTB is 100mA, hence we can use PORTB to drive LED display directly. As shown circuit below, One Common Cathode 5 x 7 Matrix LEDs are connected to Port B with 120 Ohms current limiting resistor. The Columns are activated by Q1, Q2, Q3, Q4 and Q5 respectively by logic high of PA0, PA1, PA2, PA3, PA4 which switch on gnd to the respective common cathode pins.
5 x 7 MATRI
29/11/2012
Examples of C Code & Micro Circuits for PIC16C84, AVR & 8051 MICROCONTROLLERS
The following code, matrix_c demonstrate how to drive a 5 x 7- Matrix LED. The program first display one 5 x 7 pattern on the LEDs and then redisplay this pattern over and over again.
EXERCISES
Assignment 1 : Modify the above program to display your name on the display, flashing each Alphabet for one second and then flashing the next alhabet until all the alphabet in your name has been shown and repeat this sequence all over again
sales@blitzlogic.com
www.blitzlogic.com/Matrix.htm
2/2