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 support@ccsinfo.com

PIC18F97J94 and INT_RDA

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



Joined: 04 May 2015
Posts: 14

View user's profile Send private message

PIC18F97J94 and INT_RDA
PostPosted: Mon May 04, 2015 12:39 am     Reply with quote

Hello

How can i make a INT_RDA with the PIC18F97J94? This PIC has no Hardware UART on specifed Ports?

#use rs232(baud=9600,parity=N,xmit=PIN_J4,rcv=PIN_J5,bits=8,stream=gps_position,ERRORS)


Danks
drolleman



Joined: 03 Feb 2011
Posts: 116

View user's profile Send private message

PostPosted: Mon May 04, 2015 12:54 am     Reply with quote

you need to look at peripheral pin select to assign one of the uarts to the pins you want to use. this chip has 4 of them. ccs has a pretty good documentation on this.

#pin_select U1TX=PIN_C6

#pin_select U1RX=PIN_C7
Ttelmah



Joined: 11 Mar 2010
Posts: 19369

View user's profile Send private message

PostPosted: Mon May 04, 2015 2:59 am     Reply with quote

Have a look at this thread, for how to setup a relocatable UART.

<http://www.ccsinfo.com/forum/viewtopic.php?t=43290>

Note that you _select_ the pins (as Drolleman points out), but you then don't use the pin numbers in the #USE, but the UART name.

Also, 'beware', depending on chip/compiler version/pins involved, you may need to set the tris. So (for instance), for a chip that requires the TX output to have the tris=0, then you may need 'output_drive(THE_PIN_INVOLVED);'.
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