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

rs232 - Hardware or software SOLVED
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
temtronic



Joined: 01 Jul 2010
Posts: 9632
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Tue May 31, 2016 4:51 pm     Reply with quote

One thing to consider is that this pin may have several other uses and nornally you have to specifically 'disable' those functions. Perhaps this is part of the problem?

As an example...some PICs have the 'comparators' defaulted on and you MUST specifically disable them.

just an idea..

Jay
gjs_rsdi



Joined: 06 Feb 2006
Posts: 476
Location: Bali

View user's profile Send private message Send e-mail

PostPosted: Tue May 31, 2016 11:05 pm     Reply with quote

Thanks temtronic

Will go again true the data sheet and the LST, will post the findings if I will have some results

Best wishes
Joe
Ttelmah



Joined: 11 Mar 2010
Posts: 20061

View user's profile Send private message

PostPosted: Wed Jun 01, 2016 12:26 am     Reply with quote

Have you turned off TXEN?.

Otherwise it will be driven high by the UART.
gjs_rsdi



Joined: 06 Feb 2006
Posts: 476
Location: Bali

View user's profile Send private message Send e-mail

PostPosted: Wed Jun 01, 2016 1:35 am     Reply with quote

Hi Ttelmah

if you mean:
Code:
disable_interrupts(INT_TBE);

Yes. Also in the LST don't have routine for tx

Best wishes
Joe
Ttelmah



Joined: 11 Mar 2010
Posts: 20061

View user's profile Send private message

PostPosted: Wed Jun 01, 2016 1:55 am     Reply with quote

No.....

Read the thread I pointed to.

To use the TX pin as a normal pin, you have to disable the TXEN bit. The thread shows how to do this.
gjs_rsdi



Joined: 06 Feb 2006
Posts: 476
Location: Bali

View user's profile Send private message Send e-mail

PostPosted: Wed Jun 01, 2016 3:50 pm     Reply with quote

Thanks again Ttelmah Smile
I wish CCS was giving such information (or maybe I miss it)

It works perfect!!!
Even the RX pin works fine, should I do the same thing for it?
Code:
#bit RXEN=getenv("BIT:RXEN")

& in the main
Code:
RXEN=FALSE;


Best wishes
Joe
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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