CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Using Hardware UART with only transmit (no RX)

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
JamesW



Joined: 23 Apr 2007
Posts: 91
Location: Rochester, England

View user's profile Send private message Visit poster's website

Using Hardware UART with only transmit (no RX)
PostPosted: Mon Jan 13, 2014 6:23 am     Reply with quote

Hi folks,

I am running a PIC18F26J11-I/SO on a datalogging board equipped with a modem.

I am using the 2nd hardware UART for debug, and I have assigned the two programmable pins that correspond to PGC and PGD (Pins B6 and B7).

The system is working great all the while my RS232 debugger is connected, but once the system is running unplugged - it occasionally resets.

I believe this is due to the pin that I have assigned as the RS232 input not being tied to anything and getting RF interference and resetting the processor. (This is pin B7).

Now...
As the pins are also PGC and PGD, I don't think I can get away with a pull-up/down as this will effect the programming ability. (If this is possible can you please let me know?)

In an ideal world I would like to have the hardware uart enabled, but only for the transmission of data (ie no RX pin)- That way I can assign the other pin as an output and force it low. However I can't see how to do this, as the RS232 definitions require both pins - likewise the routines to setup the uart, override the tris settings!

Can anyone please offer any advice?

Thanks in advance

James
Ttelmah



Joined: 11 Mar 2010
Posts: 19539

View user's profile Send private message

PostPosted: Mon Jan 13, 2014 9:00 am     Reply with quote

Are you actually using LVP?.

If you are, you can't have the UART on the same pins.
If not, then the RX pin needs to be biased to 3.3v, when not in use.

The programmer will connect to MCLR. What is on this when it isn't connected?.

Best Wishes
JamesW



Joined: 23 Apr 2007
Posts: 91
Location: Rochester, England

View user's profile Send private message Visit poster's website

PostPosted: Mon Jan 13, 2014 9:22 am     Reply with quote

I don't believe I'm using LVP - the board is SMT and I am programming it using the CCS U-64 programmer.

There is also no mention of LVP in the fuse settings for this particular device.

Cheers

James
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group