??? 02/25/08 18:26 Read: times |
#151432 - Port I/O programming for 89LPC935 and others |
I'm working with this IC and I know that you have 4 choices of programming the port pins. Either Quasi-bidirectional output configuration, Open-drain output configuration, Input-only configuration, Push-pull output configuration. Since it is using a mask for each pin bit, only his comment is a clue to what it does, but looking through the datasheet reveals no code on HOW to program the pins or was any of the code below tells the micro how to operate. If there can be only two states for each bit, how do you get four combinations? There are no examples to show how this is done, google seemed pretty barron on the topic.
And someone point me in the right direction of how each of the modes are programmed? It just doesn't make any sense to me and I'm at a brick wall. // set IO pins: put pins in correct modes in-out-bi Px1, Px2 B=00 , I= 10 O= 01 P0M1=0x8a; // 0.7-0.0 I O B B I O I O P0M2=0x45; P1M1=0xc3; // 1.7-1.0 I I B B O B I I P1M2=0x08; P3M1=0x00; // 3.1-3.0 B B P3M2=0x00; |
Topic | Author | Date |
Port I/O programming for 89LPC935 and others | 01/01/70 00:00 | |
Is this enough info/hint | 01/01/70 00:00 | |
Still ???? | 01/01/70 00:00 | |
this is NOT a 'standard '51 | 01/01/70 00:00 | |
That's why it's so unhelpful!![]() | 01/01/70 00:00 | |
what about the "user manual' | 01/01/70 00:00 | |
| 01/01/70 00:00 | |
Quasi-bidirectional | 01/01/70 00:00 |