I am using a PIC16f630. and Oshonsoft
In my code , if I use Toggle PORTC.1, all works well.
I can see where it does the page setup for PORTC on the watch page
If I use PORTC.1=0. It is gambler's choice as I cannot see where the status bits are changed if needed for PORTC. If I write a simple high/low loop, I may or may not get a square wave on the output pin.
If I try ASM:LATC,1=0, I get a compile error. The PIC text and Dario both suggest that one uses LATx to write to digital ports. (Dario is one of the strong supporting writers on the PIC forum page.)
What is the preferred way to control output states of the pins using Oshonsoft.
Thank you.
In my code , if I use Toggle PORTC.1, all works well.
I can see where it does the page setup for PORTC on the watch page
If I use PORTC.1=0. It is gambler's choice as I cannot see where the status bits are changed if needed for PORTC. If I write a simple high/low loop, I may or may not get a square wave on the output pin.
If I try ASM:LATC,1=0, I get a compile error. The PIC text and Dario both suggest that one uses LATx to write to digital ports. (Dario is one of the strong supporting writers on the PIC forum page.)
What is the preferred way to control output states of the pins using Oshonsoft.
Thank you.
Last edited: