AVR C
EASY PIC'n Book

US$29.95

PIC'n up the Pace Book
PIC'n up the Pace Book
US$34.95

PIC'n Technique Book
PIC'n Technique Book

US$34.95

SERIAL PIC'n Book
SERIAL PIC'n Book

US$49.95

Programming & Customizing PIC Micro
Programming & Customizing PIC Micro
US$31.96

Design with PIC Micro
Design with
PIC Micro
US$50.00

blitzlogic











APPLICATION #3         5 x 7 MATRIX LED  

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.
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

Navigation Bar
sales@blitzlogic.com