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

TX/RX 434 interfacing

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



Joined: 12 Mar 2010
Posts: 2

View user's profile Send private message

TX/RX 434 interfacing
PostPosted: Sat Mar 13, 2010 6:39 pm     Reply with quote

Hi, I am trying to test my wireless TX with PIC18F4520.
http://www.sparkfun.com/commerce/product_info.php?products_id=8946
In PIC18F4520 RS232 Hardware ports are C6,C7 and built-in to the board. i.e. pin ports are already used.

If I were to connect with TX/RX data pin, how am I going to connect with the devices since C6 and C7 are already taken for RS232? And how to check the transmit/receive data? Do I need 2 microcontrollers to achieve the result?

I am a little slow on understanding things. Can anyone please help?
Code:

#include <18f4520.h>             //IC HEADER FILE
#use delay(clock=20000000)     //SETTING CLOCK FREQUENCY
#fuses HS,NOLVP,NOWDT  //SETTING FUSES

#use rs232(baud=2400,parity=N,xmit=PIN_C6,rcv=PIN_C7)

void main()
{
int i=0;
   while(1)
   {
      putc(i);
      i++;
   }
}
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Mar 14, 2010 5:11 pm     Reply with quote

You could specify a software UART on two other i/o pins.

See this thread for other issues:
http://www.ccsinfo.com/forum/viewtopic.php?t=37927
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