geezer88
Senior Member
Here's a hypothetical question for you gurus: Let's suppose I'm programming an 18M2 to do a job that requires out-putting byte data to eight outputs. But, on port B, I want to use b.1 and b.4 for i2c communication, and therefor use two pins from port C, say c.6 and c.7.
I could use symbols to assign names to the individual output pins. Then break down the data byte into individual bits, sending them to the appropriate outputs. But this seems clumsy and slow.
Is there a better way? Like create a virtual port that could be printed in one command?
thanks,
tom
I could use symbols to assign names to the individual output pins. Then break down the data byte into individual bits, sending them to the appropriate outputs. But this seems clumsy and slow.
Is there a better way? Like create a virtual port that could be printed in one command?
thanks,
tom