Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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 :cry:
 

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top