| ??? 02/18/08 00:31 Read: times |
#150976 - Oh - I C Responding to: ???'s previous message |
Seems like the bit 7 is Your actual problem. It should be kept high during the data transfer and brought down to reset the internal data pointer (of decoder/mux chip) to point to the first character. So here is the working version for You. I have not the hardware to test it but.....
while(1)
{
unsigned char string1[]="ABCDEFG";
unsigned char z;
P0 = 0; // Clear the internal address register
for (z=0;z<=7;z++) {
P0 = (string1[z] & 0x3F) | 0x80; // Data to port, bit 6 down
P0 = (string1[z] & 0x3F) | 0x80 | 0x40; // Data to port, bit 6 up
P0 = (string1[z] & 0x3F) | 0x80; // Data to port, bit 6 down
}
}
|
| Topic | Author | Date |
| For loop parsing with a rising edge write | 01/01/70 00:00 | |
| Forgot to mention | 01/01/70 00:00 | |
| Not sure how it should work... | 01/01/70 00:00 | |
| I don't quite understand what's your problem... | 01/01/70 00:00 | |
| Better clarification of error I hope... | 01/01/70 00:00 | |
| No, it would not work | 01/01/70 00:00 | |
yeah. my bad... | 01/01/70 00:00 | |
| No problem here | 01/01/70 00:00 | |
| Is the string fixed or variable length ? | 01/01/70 00:00 | |
| Ment to mention | 01/01/70 00:00 | |
| Oh - I C | 01/01/70 00:00 | |
| I have the answer thanks to you folks...:) | 01/01/70 00:00 | |
| sounds like missing pullups | 01/01/70 00:00 |



