say I wanted to output binary numbers (4bit, or 3 bit, or 5 bit) my choice- but lets say 3bit right now so I want to output a number (0-7). the trick is I dont want to start with PORTx.0 to PORTx.2, say i want to use PORTx 3 - 5. is this possible and how would I do it. ???
also if this is possible can you use any ports to build an output, say you need 8 ports to build a byte output could you build 8 seperate I/O's from different ports like
the first question is primary, the second is elective, just curiousCode:MYBYTE VAR BYTE MYBYTE.0 = PORTA.7 MYBYTE.1 = PORTA.3 MYBYTE.2 = PORTB.4 MYBYTE.3 = PORTB.5 MYBYTE.4 = PORTB.6 MYBYTE.5 = PORTC.2 etc....




Bookmarks