I wanted to cycle several output ports through a certain bit sequence defined in an array. Ideally what I want is to have a virtual register, call it PORT_CUSTOM and have it contain references to the specific ports i chose (i.e. {PORTB1, PORTA2, PORTB0...} any arbitrary sequence of ports). Can this be easily accomplished? I've looked at the code that declares PORTB and PORTA but it is not intuitive to me how I would modify this to work the way I want. Any help would be greatly appreciated. I'm using Microchip's X8 compiler. Thanks
cheers,
Dom
cheers,
Dom
Last edited: