Adnan Tariq
Junior Member level 2
- Joined
- Dec 7, 2014
- Messages
- 20
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 134
Plz ppl with great knowledge help me. i want to scroll txt but have no idea how to do so.
Following is the code an diagram.
code
Following is the code an diagram.
code
Code dot - [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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 #include <pic.h> #define DS RC1 #define SHCP RC0 #define STCP RC2 char a[]={0x00,0xF8, 0x14, 0x12, 0x11, 0x11, 0x12, 0x14, 0xF8, 0xFF,0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0xFF, 0xF8, 0x14, 0x12, 0x11, 0x11, 0x12, 0x14, 0xF8, }; void delay(unsigned int count) { int i; unsigned int x; for(x=0;x<count;x++) for(i=0;i<525;i++); } void main() { unsigned int j,z; TRISC=0x00; TRISD=0x00; TRISB=0x00; while(1) { for (z=0;z<=24;z++) { PORTB=~a[z]; if(z==0) { DS=1; } else { DS=0; } SHCP=1; SHCP=0; delay(0.1); STCP=1; STCP=0; }