PDA

View Full Version : PicBasic Pro problem



oneohthree
- 27th March 2007, 21:22
I am using PICBasic Pro Compiler but when I try to use the line serin or serout it gives me errors when I compile. The error I get is: Bad Expression.
The code I am using is:
B0 var byte
Main:
B0=25
serout PORTA.3, N2400, [#B0,13]

Loop: gotoLoop
End

mister_e
- 27th March 2007, 21:29
where's the definition of N2400????

INCLUDE "Modedefs.bas"
or better

N2400 CON 4

skimask
- 27th March 2007, 22:13
I am using PICBasic Pro Compiler but when I try to use the line serin or serout it gives me errors when I compile. The error I get is: Bad Expression.
The code I am using is:
B0 var byte
Main:
B0=25
serout PORTA.3, N2400, [#B0,13]

Loop: gotoLoop
End

Page 137 of the PBP green manual

BigWumpus
- 27th March 2007, 22:22
Great Heading !