Again I'm trying to do the unnatural! I use essentially Hippys 4bit LCD routines on pins B.2 to B.7 on the 20M2. Works well.
There is a note in the archive that explains how to use B.0 and B.1 as outputs at the same time.
However I would like to use B.1 as a PWM output in the same application.
This Read/Modify/Write doesn't work as it seems that writing to PinsB converts B.1 back into a simple output, shutting PWM off.
PortC is already in use.
Before I spend anymore time on this - can it be done?
There is a note in the archive that explains how to use B.0 and B.1 as outputs at the same time.
I've used this method for simple outputs, again works well.A problem which may occur with the use of the above routines is when Output Pins 0 or 1 are used within your program. Because of the use of the 'pins =' assignments, these two bits are always set low whenever the 'SendCmdByte:' or 'SendDataByte:' routines are called.
If it is not desirable to have these two bits cleared while interacting with the LCD, the routines can be modified as follows ...
However I would like to use B.1 as a PWM output in the same application.
This Read/Modify/Write doesn't work as it seems that writing to PinsB converts B.1 back into a simple output, shutting PWM off.
PortC is already in use.
Before I spend anymore time on this - can it be done?