RISCIT
Junior Member level 1
- Joined
- Dec 30, 2011
- Messages
- 15
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,441
hello guy,
i have a problem with simulation in proteus,
I have designed a little circuit to print some letters on a dot matrix display but it does not want to work anyway. I have tried many modification of my code without success, i have used a code who should be able to work where i ve seen some demo but i dont know why it not working.
All the dot stay on even if i modify the sequency of value, sometimes i display me random lighting dot
I use mikroc and proteus thanks!
here s my code
i have a problem with simulation in proteus,
I have designed a little circuit to print some letters on a dot matrix display but it does not want to work anyway. I have tried many modification of my code without success, i have used a code who should be able to work where i ve seen some demo but i dont know why it not working.
All the dot stay on even if i modify the sequency of value, sometimes i display me random lighting dot
I use mikroc and proteus thanks!
here s my code
Code:
// Test
const unsigned short lettre[16] = { 0xFF, 0x01, 0xEE, 0xEE, 0xEE, 0x01, 0xFF, 0xFF, //A
0xFF, 0x00, 0x76, 0x76, 0x76, 0x89, 0xFF, 0xFF //B
};
unsigned short repeat;
unsigned short num;
unsigned short count;
unsigned short colon;
void main(){
TRISC=0;
TRISD=0;
PORTC=0;
PORTD=0;
while(1){
for (num = 0; num < 2; num++){
for(repeat = 0; repeat < 100; repeat++){
colon = 1;
for(count= num*8; count < (num*8 + 9); count++){
PORTD = Lettre[count];
PORTC = colon;
delay_ms(1);
colon = colon << 1;
}
}
}
}
}