Page 1 of 1
UART problem

Posted:
Tue Feb 07, 2012 2:30 pm
by Farid89ism
Hi..im doing my final year project about RFID system and servo motor using PIC16F877A. The problem is both are using UART which involves Rx and Tx. However, there are only one UART in PIC. What should i do to combine all the system?
Re: UART problem

Posted:
Tue Feb 07, 2012 8:15 pm
by shahrul
combine RFID Reader and Servo Controller, you have 3 ways
1. RFID Reader just use RX and Servo Controller just use TX.
2. Use multiplexer/demultiplexer IC to multiple the TX and RX but you can't use both at the same time.
3. Do UART Software, so that you can use TX and RX on any pin. But, program TX is more easily than program RX. I have try develop program RX for years.
Re: UART problem

Posted:
Wed Feb 08, 2012 7:20 am
by Farid89ism
Mr Shahrul..if im doing 1st step, then the ground and voltage will combined together? I have read manual in cytron, servo controller(SC08A) must put at least in Rx not Tx. How about that?
Re: UART problem

Posted:
Wed Feb 08, 2012 9:00 am
by shahrul
Farid89ism WROTE:Mr Shahrul..if im doing 1st step, then the ground and voltage will combined together? I have read manual in cytron, servo controller(SC08A) must put at least in Rx not Tx. How about that?
The RX of the Servo Controller but TX of PIC. PIC send the data to the Servo Controller. Can view example program
servo controller.
Re: UART problem

Posted:
Wed Feb 08, 2012 9:57 am
by robosang
I will use the 1st interface too

RFID does not require TX from PIC and Servo controller does not require transmit to RX of PIC, at least most of the application does not require feedback to PIC. So you don need another pair of UART pin.
Re: UART programing problem

Posted:
Sun Feb 12, 2012 12:59 pm
by ismawanieh
i need both of this file #include "LibraryHD44780.h" & #include "LibraryUART.h" for my gsm alarm system program,, i need to include both of this program for my header / source file in my program in MP lab, can you email to me both of this program ASAP?
Re: UART programing problem

Posted:
Sun Feb 12, 2012 1:50 pm
by shahrul
ismawanieh WROTE:i need both of this file #include "LibraryHD44780.h" & #include "LibraryUART.h" for my gsm alarm system program,, i need to include both of this program for my header / source file in my program in MP lab, can you email to me both of this program ASAP?
All header file here.
http://shahrulnizam.com/header/
Re: UART problem

Posted:
Sat Feb 18, 2012 4:08 pm
by ismawanieh
i already get the header file for "LibraryUART" and how about the source code of the file? and how to include the header file into my program because if i copy into notepad, the format is as note pad, not h file,

Re: UART problem

Posted:
Sat Feb 18, 2012 10:08 pm
by shahrul
ismawanieh WROTE:i already get the header file for "LibraryUART" and how about the source code of the file? and how to include the header file into my program because if i copy into notepad, the format is as note pad, not h file,

Save the file and type <filename>.h