| ??? 03/21/06 15:07 Read: times |
#112688 - About I/O 89C52 |
Hi, hmm , i guess that when reading from a pin i should put 1 ok ?
i did that , but what should i do if i wanna read a 5V (1) say from a sensor from that pin ? e.g void main(void) { pin_5=1; while(1) { if ( pin_5==1 ) // wanna read from a high from a sensor { // Blink An LED } } |
| Topic | Author | Date |
| About I/O 89C52 | 01/01/70 00:00 | |
| what about reading this thread | 01/01/70 00:00 | |
| hmm ? | 01/01/70 00:00 | |
| So, read it. | 01/01/70 00:00 | |
| but | 01/01/70 00:00 | |
| yes | 01/01/70 00:00 | |
| reread the "bible" | 01/01/70 00:00 | |
| so | 01/01/70 00:00 | |
| bfore reading a 1 read the bible | 01/01/70 00:00 | |
| Ports | 01/01/70 00:00 | |
pullup + loading capacitance | 01/01/70 00:00 | |
| No | 01/01/70 00:00 | |
| so that's true ? | 01/01/70 00:00 | |
| no else if | 01/01/70 00:00 |



