Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
My project is:
1. A motor is interfaced to a pic 18F.
2. The user must be able to send an sms in order to on/off the motor.
How can I do this? I am just starting in this area. And I would appreciate your valuable suggestions and resources. :smile:
I did some code in mplab using hitech compiler for RF transmission.
When i am simulating in mplab i am getting correct output in uart I/O tab. But iam not obtaining any value in the portC ie, TX pin. I tried simulating in proteus by connecting an led to the RC. But nothing is coming. Is there...
Actually, Iam using USART for presenting the data serially to the tx pin.
In the USART header,
a function USARTWriteByte(char ch) is used to write to the TXREG
function definition is:
USARTWriteByte(char ch)
{
while(!TXIF);
TXREG=ch;
}
I am writing a transmitter code for pic 18F. I am able to get value in TXREG in mplab. But PORTC [tx pin is C6] is not showing any value in mplab. Why is it so?
RF device hasn't have any documentation. I got to know while RF transmission i need to have error detection mechanism.
If i am storing it as a character, how can i assign binary numbers to each byte? Say for eg. i need synchronization byte=10101010
I need to set up Rf communication from a pic 18F to another pic 18F.
The data i need to send is a synchronization byte, address byte, data and checksum. My doubt is how should i frame a packet. Should i load the above format using 8 bits and load TXREG one time or should i send each as a byte...
I have written a simple code for transmitter and receiver.. Will this work fine?
Transmitter:
#include <htc.h>
#include "usart.h"
//Chip Settings
__CONFIG(1,0x0200);
__CONFIG(2,0X1E1F);
__CONFIG(3,0X8100);
__CONFIG(4,0X00C1);
__CONFIG(5,0XC00F);
void main()
{
unsigned int data;
//Initialize...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.