Hi,
Looking at the datasheet for the 16F877 for example it shows that all the port registers are concecuitive in memory. So I think it'll work to just do something likeJust be careful so you don't write beyond the port registers and obviosuly there will be a "gap" at bits 6 and 7 of port A.Code:FOR i = 0 to 34 35 bits (depending on how wide PortE is) TOGGLE PORTA.0[i] NEXT
Never tried it myself.
/Henrik.
Bookmarks