I was thinking that the TXSTA if enabled would be tying up the pin.
Not sure about the ICD2.
I was thinking that the TXSTA if enabled would be tying up the pin.
Not sure about the ICD2.
Dave
Always wear safety glasses while programming.
I got confussed thinking that ICD2 uses the RC6/RC7 pins. Nop. The poblem I think is that I used the DEFINES on top of the program and the UART is holding the pins for itself. UART has higher priority than TRIS i suppose. I'll try and come back.
Ioannis
Yes. This is the problem. When there is a Hserout command inside the program (no matter where, even at the end), the TX pin is engaged by the UART and cannot be controlled.
Now I have to find out how to release it from the UART control.
TXSTA=2 and RCSTA=0 did not help.
What I really want to do is to emulate a 1200 baud trasnmission of one zero (0), like this:
LOW PORTC.6
PAUSEUS 7500
HIGH PORTC.6
That way there is no need to deal with BAUD rate change. If it only worked...
Ioannis
Last edited by Ioannis; - 11th December 2008 at 13:57.
Maybe
Code:TXSTA = %00000000
Dave
Always wear safety glasses while programming.
Ioannis, Obviously none of you are reading the data sheets for the processors you are trying to program... Set RCSTA.7 to 0 and the port is all yours...
Dave Purola,
N8NTA
What!!! Read the data sheet!!! That is just asking tooo much
Anywho, that is why I suggested
TXSTA = %00000000
being we are dealing with the transmit part/pin..
bit 5 is all that, I thought, needed set to zero.
Ioannis,
When I get home this weekend I am going to play with this.
Dave
Always wear safety glasses while programming.
Bookmarks