I am running out of I/Os and I am using Hserout to send serial commands to an Oled screen, using a 40x1. Thats all working well.
But I have an LED wired to portc 7 which I was hoping to use as an output at the same time.
Trouble is that when you use the hsersetup command, the chip attempts to receive serial in via portc 7, making it an input rather than an output.
Is there a way to write to the appropriate memory location to set portc 7 to either an input or output while the hserout command still works on the adjacent pin?
I know I can turn off (hsersetup off) but I'd prefer not to every time I write to the screen because then the LED will flash every time I write to the screen. (all be it briefly)
I am almost constantly writing to the screen, and the led will be flashing like mad.
I'm hoping someone has mapped the memory location required to do this. ? Maybe Tech can help?
But I have an LED wired to portc 7 which I was hoping to use as an output at the same time.
Trouble is that when you use the hsersetup command, the chip attempts to receive serial in via portc 7, making it an input rather than an output.
Is there a way to write to the appropriate memory location to set portc 7 to either an input or output while the hserout command still works on the adjacent pin?
I know I can turn off (hsersetup off) but I'd prefer not to every time I write to the screen because then the LED will flash every time I write to the screen. (all be it briefly)
I am almost constantly writing to the screen, and the led will be flashing like mad.
I'm hoping someone has mapped the memory location required to do this. ? Maybe Tech can help?