I am sure it is because RB2 is asigned to TX of the USART.
Ioannis
I am sure it is because RB2 is asigned to TX of the USART.
Ioannis
Yes, but that seems to only happen once HSERIN command is actually executed
no matter what HSER defines are at the top of the program.
From there, it should be possible to reverse whatever registers were changed for LCDOUT to work again,
but that doesn’t seem to happen. All of the control bits are in either the TXSTA or RCSTA registers.
Check out the USART control info in the 16F628A errata document
You should be able to get control of the pins by clearing SPEN (RCSTA.7) and restoring the TRISB pin settings.
Also I recall a system variable called FLAGS or something similar that initialize the LCD module after the system has recovered from sleep mode.
See this post too: http://www.picbasic.co.uk/forum/show...1653#post51653
Ioannis
Last edited by Ioannis; - 23rd April 2016 at 15:01.
I have tried clearing various bits of the registers (including specific serial port enable bits),
but not yet resetting the LCD.
It would be bad though since the LCD is updated every frame, and initialisation is a few commands.
I think maybe I’ll leave as is, and try to control and LED or such with the RB2 pin.
Bookmarks