A .bas file is simply a text file that conforms to the format that picbasic expects and can compile. You can declare arrays of variables in that file that can be used in the remainder of the program.
Type: Posts; User: xpa999; Keyword(s):
A .bas file is simply a text file that conforms to the format that picbasic expects and can compile. You can declare arrays of variables in that file that can be used in the remainder of the program.
It would seem that the simple way around this is:
Report = 48 + !Mypin
Wouln't that force
Picbasic to evaluate Report as a byte, not as a bit?
Remember the hc-06 is a 3.3v device, so the pic has to be 3.3v or you need to convert levels.
I found this website for some great info
...
I do believe that the '1183' refers to a line number in the assembled code. The number changes depending upon which libraries are called and where the page crossing occurs in the listing.
Do you have !MCLR tied high? I see it disabled in the config, but it's worth a try.
AAAAAAAHHHHHHHHH!
Sorry guys, in my haste, I kept comparing my wiring to the diagram on Page 172, and tied the R/W pin High rather than Low per Darryl's reply. I heard the words, but my eyes saw...
Thanks for the help, but...
The define I actually used was
Define LCD_DREG PORTD
Define LCD_DBIT 0
The '8' appeared as an artifact of my clumsy attempt to paste the code into the message....
leThanks for all the help, but I'm still stuck. I wired the LCD as shown on page 172 of the PB3 manual.
After giving up with my code, I tried the example supplied with the compiler. The display...
Thanks Darryl,
Silly question: Is there feedback from the display to the Lcdout routine (I'm thinking of the 4 bit communication) or is the pic blindly sending data to the LCD and relying on...
Hi, I've searched the forum and the documentation for PB3 and the displays, but I'm still confused.
Page 171 of the PB3 manual shows pin 5 of the LCD module tied to ground and page 172 shows the...
An LED cannot have more than its forward bias voltage across it. For an old red LED that voltage is about 1.6 volts. Sacrifice one by driving one with a variable power supply. It will start lighting...
Here's a thought. Thorsten Klose uses a MIDI interface as a serial port with a bootloader. It has several advantages: 1) cheap usb interface, less than $10 on ebay. 2) optoisolator to eliminate...
To the best of my knowledge, PB does not expect a colon after 'then'.
>> if spacet = 0 then: random pulset1'Randomize value in pulset1
Also, is one of those consecutive gotos supposed to...
Why is there a colon after 'then'?
Hi,
I'm a newbie and I've searched the forum but can't find the answer.
What is the meaning of the rate parameter in the button command? Is a low value faster or slower than a large value? How...