how to send binary data to uart

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

how to send binary data to uart

Postby nazfar » Wed Feb 01, 2012 2:55 pm

hi guys, i am very beginner in micro controller programming. I am doing my bachelor final project. I want to know the method or function prototype that allow the PIC send a binary form to the uart and display in hyperterminal. My project is about the RFID+PIC+uart. The PIC capture the data from RFID reader and manage to convert the data into binary form. After that, PIC will the binary form to the hyperterminal. I am using Java to capture the data from com port as v.b can do as well. Java will convert the data into decimal form and to the operation of tracing and tracking. I am afraid that the hyperterminal would not read all the data because of the length of bits.

In my project, I am using PIC http://www.cytron.com.my/viewProduct.php?pcode=IC-PIC-16F877A&name=IC%20PIC16F877A
, RFID readerhttp://www.cytron.com.my/viewProduct.php?pcode=RFID-IDR-WIEGAND&name=Wiegand%20RFID%20Reader, UARThttp://www.cytron.com.my/viewProduct.php?pcode=UC00A&name=USB%20to%20UART%20Converter and my target board is http://www.cytron.com.my/viewProduct.php?pcode=SK40C&name=Enhanced%2040%20pins%20PIC%20Start-Up%20Kit also the card tag http://www.cytron.com.my/viewProduct.php?pcode=RFID-TAG-125-CA

I really need your guys help :( :( :( :(
nazfar
Newbie
 
Posts: 11
Joined: Tue Nov 29, 2011 1:31 pm

Re: how to send binary data to uart

Postby robosang » Wed Feb 01, 2012 9:34 pm

no one will help if you ask in this way. You have to show us what have you done. Where is the hardware? How is the connection, what is initial program, what is the problem you think?

As you say, is your final project, not ours.
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm

Re: how to send binary data to uart

Postby shahrul » Thu Feb 02, 2012 11:31 am

If no other output, you no need PIC. Can directly
RFID Reader >> MAX232 >> USB-to-UART. Then do Java. I don't know in Java side.
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

Re: how to send binary data to uart

Postby sich » Thu Feb 02, 2012 4:13 pm

Actually binary, decimal, hex...relate to how your data is displayed, not the data itself.

Take a look at the PIC16F Sample Source Code provided in SK40C product page. There's uart.c sample code that may help you understand this topic better.
~> How to ask QUESTIONS the SMART way in FORUM? <~
User avatar
sich
Moderator
 
Posts: 604
Joined: Tue Apr 21, 2009 2:15 pm


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 0 guests

cron