| ??? 12/15/04 05:20 Read: times |
#83118 - Some suggestions Responding to: ???'s previous message |
Toggling Port0 may not be fruitful as it looks like it's used as the bus for the flash rom - the processor hardware may have other ideas. Best to try Port1. something like: P1_0 = 1; //to set the port bit - setb P1.0 in asm P1_0 = 0; //to reset the port bit - clr P1.0 in asm The compiler 'knows' about bits and the above code ends up being one instruction for each of the operations. Also, just a little nit pick - to decrement a variable, use: val--; rather than val -=1; same diff, but comes down to convention. Another thing: for variables, try to use 'char' where possible as this is an 8bit processor. |
| Topic | Author | Date |
| AT89C51SND1C starter help? | 01/01/70 00:00 | |
| start here | 01/01/70 00:00 | |
| AT89C51SND1C starter help? | 01/01/70 00:00 | |
| more info | 01/01/70 00:00 | |
| ISP | 01/01/70 00:00 | |
| senior design team | 01/01/70 00:00 | |
| skeletal setup | 01/01/70 00:00 | |
| much simpler | 01/01/70 00:00 | |
| "Simpler" is not the objective. | 01/01/70 00:00 | |
| simpler... | 01/01/70 00:00 | |
| Development board | 01/01/70 00:00 | |
| Don' t mess with hyperterminal | 01/01/70 00:00 | |
| With respect, I disagree | 01/01/70 00:00 | |
| Hmm. | 01/01/70 00:00 | |
| Hmm indeed. | 01/01/70 00:00 | |
| serial port | 01/01/70 00:00 | |
| lil' more info | 01/01/70 00:00 | |
| Mix | 01/01/70 00:00 | |
| No serial port? | 01/01/70 00:00 | |
| USB | 01/01/70 00:00 | |
| quick question | 01/01/70 00:00 | |
| startup.a51 | 01/01/70 00:00 | |
| Post the code | 01/01/70 00:00 | |
| Post the code | 01/01/70 00:00 | |
| here's the code | 01/01/70 00:00 | |
| Some suggestions | 01/01/70 00:00 | |
| Port 0 | 01/01/70 00:00 | |
| development board ports | 01/01/70 00:00 | |
| yes, you can | 01/01/70 00:00 | |
| Thats 'cause its | 01/01/70 00:00 | |
| sorry... | 01/01/70 00:00 | |
| Pull up resistors | 01/01/70 00:00 | |
| FINALLY! | 01/01/70 00:00 | |
| Finally | 01/01/70 00:00 | |
| Why only taking a +quick skim+? | 01/01/70 00:00 | |
| What? No magic? | 01/01/70 00:00 | |
Think! | 01/01/70 00:00 |



