PICnewbie
Joined: 12 Mar 2010 Posts: 2
|
TX/RX 434 interfacing |
Posted: Sat Mar 13, 2010 6:39 pm |
|
|
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++;
}
}
|
|
|