Page 1 of 1

how to send binary data to uart

PostPosted: Wed Feb 01, 2012 2:55 pm
by nazfar
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 :( :( :( :(

Re: how to send binary data to uart

PostPosted: Wed Feb 01, 2012 9:34 pm
by robosang
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.

Re: how to send binary data to uart

PostPosted: Thu Feb 02, 2012 11:31 am
by shahrul
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.

Re: how to send binary data to uart

PostPosted: Thu Feb 02, 2012 4:13 pm
by sich
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.