| ??? 02/17/08 23:50 Read: times |
#150974 - No, it would not work Responding to: ???'s previous message |
Jan Waclawek said:
unsigned char string1[]="ABCDEFG";
unsigned char z; for (z=0;z<=7;z++) P0 = (0xBF & string1[z]); P0 = (0x40 | string1[z]); The first port assignment is done inside the for loop. The latter port assignment is done right after the loop finishes. This is the reason why I use '{' and '}' even if those are not really needed syntaxwise. I use {} meanwhile somebody invents a really intelligent compiler... |
| 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 |



