PIC Basic Pro_serout serin problem

Status
Not open for further replies.

zmanultra

Member level 2
Joined
Mar 20, 2004
Messages
48
Helped
4
Reputation
8
Reaction score
2
Trophy points
1,288
Location
Australia
Activity points
524
HI every one

iv got this problem with my routine, or somthing, it dosen't seem to work
this is what happens


------------------------------------------------
SO var PortB.7
BAUD CON 84 '9600 baud, no parity, true, always driven

MAIN:
SEROUT2 SO,BAUD,["HELLO WORLD"]
PAUSE 1000
GOTO MAIN

END
----------------------------------------------------
and when i seen the out put from the uart i get all these weird symboles, i dont understand Y
 

hmmmm

What frequency are you using for the clock?... Have you told PBP that you are using that frequency? Therefore when you do a SEROUT at 9600 baud, is the figure that you have given PBP for timing the speed valid? By default, PBP assumes 4MHz unless you tell it otherwise... and 4MHz isn't an option with that xtal selection on your board. What you have is a fine example of invalid baudrate.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…