Scrolling text on Dot-Matrix Using PIC controller & MikroC Pro
Related Topic:
- Dot matrix display projectwith static display
- Interface 7 Segment 4x1 with PIC controller using PIC controller
- PIC Microcontroller Manuals
So here we are sharing the scrolling text on dot matrix. MikroC Pro for PIC is use for coding and compilation and Proteus 8.15 is use for simulation for circuit testing.
Dot-Matrix concept:
Here we are using common cathode dot matrix, it means the Anodes of
the LEDs are common with columns and cathode with rows as you can see in above
1st diagram.
If we want to ON top left dot, then we will do column 1 high and row 1
low. Here if we will scan columns and row 1 low all others row at high then top
row of the matrix will glow one by one from left to right. Wise versa if we
scan rows and select to high one column then selected column dots glow one by
one.
Interesting this is that if we increase the scanning speed and cross the human
eye flickering sensitivity then we see a line of row or column.
/// Dot Matrix 5x7 using PIC /// /// by Elektronics Garage /// /// Date: 4 Nov 2023 /// //Dot_Matrix size unsigned int columns = 10; unsigned int rows = 7; unsigned int loop=0; unsigned int col=0; unsigned int row=0; int int i,j; unsigned int col_num[] = {0x01,0x02,0x04,0x08,0x10,0x01, 0x02, 0x04, 0x08, 0x10}; unsigned int row_A[] = {0x01, 0x76, 0x76, 0x76,0x01,0xFF,0xFF,0xFF,0xFF,0xFF}; unsigned int row_B[] = {0x00, 0x36, 0x36, 0x36,0x49,0xFF,0xFF,0xFF,0xFF,0xFF}; void main() { TRISB=0x00; TRISD=0x00; PORTB=0x00; PORTD=0x00; col=columns-1; while(1) { for (j=0;j<300 delay_us="" else="" for="" i="" if="" j="" loop="" portb="col_num[col-i];" portd="row_A[row];" row="loop;">col-1){loop=0;} } } 300>
No comments:
Write commentsI am very thankful for your precious time