Have you defined all the variables? ie:
B0 VAR BYTE
B1 VAR BYTE
etc
... or included the appropriate 'include' file for Basic Stamp compatibility?
Arch
Have you defined all the variables? ie:
B0 VAR BYTE
B1 VAR BYTE
etc
... or included the appropriate 'include' file for Basic Stamp compatibility?
Arch
"Data sheets? I ain't got no data sheets. I don't need no data sheets. I don't have to read any stinking data sheets!"
YES THAT WORKED
But I bought a book from John Iovine. The codes inside are then mising instruction from whT i can see. Why the heck he did not put in the initialization value.
Anybody knows a good tutorial for pic in basic or C ?
I have been trying to make this one work :
any idea ( it just stop on the third line, and all theotehr after that..)
' LCD test display
pause 1000
Serout 1, N2400, (254,1)
Pause 2
Serout 1, N2400, ("Hello")
Serout 1, N2400, (254,192)
pause 2
Serout 1, N2400, ("Bye")
end
k
Ok,
you just don't understood our first hint. Here is the second:
Put your cursor inside the word "serout" (using the MCS),
hit F1,
read the help.. ! (or look at your pbp-manual!)
There is an "include xxxx" in red letters after the first paragraph !
Use it !
You use the constand N2400 in your 3rd line, which is not declared...
PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2
I read the small tutorial on this link:
http://www.imagesco.com/articles/lcd/05.html
THE book I am reading use terminology N24400 while the compiler I use uses: PortB.0,0, thus in the last I did not declare anything and it compiles
also I have a 16x2 lcd. I hooked up ground pin and vcc. The screen lights up, but I tried all the pins on the screen running from pin 6 of the Pic16f84 but I am not seeing anything
Is there a delay?
I am not sure is there is only one wire or more is needed
thanks
ken
Hi Ken,
the code you are using is listed in his book, PIC Microcontroller Project Book, page 201, Yes?
It appears as though you are using PIC BASIC PRO.
The code you are using was written for PIC BASIC , not pro, look farther down the page, the code for your PBP compiler is listed and continues on the next page. This problem you are having centers upon the author is so deeply used to adding those things into a program that he forgets, a beginner doesn't already know this. You have to create variables in order to use them, and you need to INCLUDE some files sometimes to make things like serial communication and LCD modules work. Chuck Hellebuyck wrote a book, which is not perfect either (at least in my opinion) but it is a good one, called Programming PIC Microcontrollers With PIC Basic and it takes you by the hand here, and the code works, I have both books and one other plus "The Manual" and I still ask for help as I am only about a month farther down this road than you are. I really recommend you read as many posts in this forum as your eyes can tolerate. YOU WILL LEARN TONS, if skills can be weighed that way.
Hope this helps.
JS
Last edited by Archangel; - 10th September 2006 at 02:18.
yes I found that out a couple of hours ago,
I even saw on a web site the exact program I was doing in both version:
http://www.imagesco.com/articles/lcd/05.html
The second book from John Iovine explains this.
But I still having trouble sending information to the LCD. It powers on. He says that I need only one wire to the LCD. I tried every pin out possible and it do not work., It should be pin 6 on the chip. Do i need to rewire the lcd ?
ken
Ken,
Generaly serial data for 1 way communication requires a data wire and a ground.
2 way communication needs a second data wire. If you are using a serial Backpack on an LCD module then you need a power wire.
Regards
JS
Bookmarks