sukhoimg
Junior Member level 1
hello
i'am trying to scroll a message on 15x7 led matrix see below for the code and schematic
the problem is when i run the simulation a message appears "stack overflow executing call instruction " but i'am using just 2 nested loops
this the code written in mikroc:
i'am trying to scroll a message on 15x7 led matrix see below for the code and schematic
the problem is when i run the simulation a message appears "stack overflow executing call instruction " but i'am using just 2 nested loops
this the code written in mikroc:
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 void main() { const char font[]={0x3E, 0x51, 0x49, 0x45, 0x3E, 0x00, 0x42, 0x7F, 0x40, 0x00, 0x42, 0x61, 0x51, 0x49, 0x46}; char i,a,b,c; trisa=0; trisb=0; porta=0; portb=0; while(1) { for(a=14;a>=0;a--) { for(b=0;b<15;b++) { for(i=a;i<15;i++,c++) { portb=0; portb=font[c]; porta=i; delay_ms(1); } } } } }
Last edited by a moderator: