PDA

View Full Version : Pic12f675 Serial woes



simongie
- 30th April 2009, 20:13
Hello all

I'm sorry if this is a silly question, but I am trying to get my pic to send a txt string to a PC running hyperterminal.

The code looks something like this, though it may not be exact because my work is at the office.

Device 12f675

(some options WTD etc)

XTAL 4

ALL_DIGITAL True


Output GPIO.0

Main:
DelayMS 1000
Serout GPIO.0, 16572, ["This string won't come through]
Goto Main

I need to use 4800 bps 8 bit and no parity ( I think) for NMEA strings, but I can't seem to get the data through.
If I drive an LED on the output, I can see that there is some data coming through, but it must be in the wrong format.

Also, I have connected GPIO.0 and GND straight to the PC serial port pins 2 and 5.

Any help would be most appreciated

Thanks

Darrel Taylor
- 30th April 2009, 21:41
You should try the Proton forum at http://www.picbasic.org/forum

This forum is for PicBasic Pro.