![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #1 |
|
Greetings guys, I am using PIC to send data via RS232 to a computer, and I am using C to program the chip. However, I don't know how to write this program. Is there any special fuction or instructions in C library? By the way, I am using HyperTerminal on the computer to receive data. Also, do I need to worry about ASCII format when I send the data? Any help will be most appreciated. Thanks guys. Best regards, HiJack | |
| |
| | #2 |
|
Can't help you with C, but my tutorials show how to do it in assembler - regardless though, I would suggest you send the data as ASCII rather than binary.
| |
| |
| | #3 |
|
Have you check the compiler manual for examples. Many of them provide one ths shows how to setup the uart and send the data. It is only a few lines of code. You did not tell us which compiler or PIC you are using. 3v0
__________________ Please post questions to the forums. PM's are for personal communication. BCHS/3v0's Tutorials Junebug USB PIC programmer kit., USB Bit Whacker, The 15 Minute Printed Circuit Board! (+drill time) | |
| |
| | #4 |
|
Hi guys, Thanks for kind help. Good news, I finally got it working. The circuit that I built is definitely working, the problem was HyperTerminal, which has some compatible issues with Vista. I searched for other serial port logging software and I found this: Free Serial Port Logger : RS232 Port Logger Software - Serial Data Logger It is called RS232 Data Logger and it is free. Now, for people who is new with Vista and if you are using a USB-to-Serial(DB9) cable, make sure you have the cable on Prolific brand. It provides driver on Vista system and it is definitely working. Regards, HiJack | |
| |
|
| Tags |
| data, pic, program, rs232, send |
| Thread Tools | |
| Display Modes | |
| |
Similar | ||||
| Title | Starter | Forum | Replies | Latest |
| how send serial data with PIC | HCT-Pirate | Micro Controllers | 7 | 3rd February 2008 05:27 PM |
| Using a PIC16F877 to read a Devantech CMPS03 compass and send the results over RS232 | oeginc | Micro Controllers | 12 | 24th May 2007 05:03 PM |
| send data via uhf | elctrochania | Electronic Projects Design/Ideas/Reviews | 14 | 16th November 2005 03:17 PM |
| send data via uhf | elctrochania | Micro Controllers | 1 | 15th November 2005 01:47 AM |
| rs232 to rs232 data logger with 1meg buffer -help needed | ccaammaaccaazzii | Electronic Projects Design/Ideas/Reviews | 11 | 20th October 2004 10:43 PM |