Either we are miscommunicating, or they have changed the way bit arrays work, or you must be misunderstanding bit arrays. I have been using this method for 8 years:
PORTB.0[PinToChange] = NewPinState
The value for PinToChange can be any number 0 to7, and this allows you to use it on ANY PORT. The value for NewPinState must be 0 or 1.
PORTA.0[4] = NewPinState
PORTB.0[4] = NewPinState
Will set PortA.4 AND PortB.4 to the NewPinState





Bookmarks