John,Originally Posted by hansknec
sorry for joining here,
but if you want the full power of PBPs LCDOUT
there is quite some work to do.
I doubt EDWARD is going to do it for you.
John,Originally Posted by hansknec
sorry for joining here,
but if you want the full power of PBPs LCDOUT
there is quite some work to do.
I doubt EDWARD is going to do it for you.
regards
Ralph
_______________________________________________
There are only 10 types of people:
Those who understand binary, and those who don't ...
_______________________________________________
Hello Hansknec,
H>Thanks Edward, but there is still something that seems unclear to me. You are calling this a subroutine, but there seems to be no method of passing a variable into it<<
In PBP, you do not pass variables to subroutines...It is not like C and C++, or Variable passing in 3rd and 4th generation langauges. they are basically all global... Take a look at the LookUp command in the PBP manual:
http://www.microengineeringlabs.com/...ces/pbpmanual/
You can simulate much of LCDout command manually, but that means keeping track of Commands and Data Writes. (which is easily done).
Other than that... using manual LCD control (without LCDout) is not done that often, except by folks who need to so such things, and those who like to re-invent the wheel... ;-}
Dwayne
Ability to Fly:
Hurling yourself towards the ground, and missing.
Engineers that Contribute to flying:
Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute
Pilots that are Flying:
Those who know their limitations, and respect the green side of the grass...
Sorry,
I keep jumping back and forth between PBP and CCS C, so I confuse my terminology, but the end effect of the LCDout command is very similar to passing a string variable into the unseen code that the compiler grabs from the bowels of the PBP directory at compile time. I felt that the code presented by Edward was pretty close to what the original intent of the thread was trying to solve. I was just hoping that there was something more to be gained (and shared). I don't know how many PBP users are out there using LCD's, but it sort of blows when you find out that the hardware serial port pin happens to be in the middle of your LCD data bus. I know..I know.. poor planning on my part right? I didn't originally think I needed the hardware serial port, but I have become fond of its interrupt capabilities. My problem can be solved by rewriting my code in C, but I'm kind of fond of PBP and have used it for numerous projects over the years.
-John
Hello John,
John>>but the end effect of the LCDout command is very similar to passing a string variable into the unseen code that the compiler grabs from the bowels of the PBP directory at compile time.<<
Yes the PBP is close to the passing of variables... not quite like C...you don't have function variables that are only addressable via that function. (non-global Variables).
John >> I felt that the code presented by Edward was pretty close to what the original intent of the thread was trying to solve. I was just hoping that there was something more to be gained (and shared).<<
Are you attemping to do your own LCD routines? If so, that is fine. I do my own LCD routines...I do not use LCDout, unless I absolutely have to. I don't feel like using 4 or 8 bits of a chip for LCD's, and I built my own backpack for serial communication. I just make my routines similar to LCDout, and plug away...
Earlier in this thread, I gave a example of making the commands similar to a a LCDout.
I thought about purchasing a C compiler (I program professionally with C/C++, using Borland compilers.) I thought it would be nice to have a C compiler, and I would understand its "terminology" and aspects of the language much better than PBP. I prefer (just because I am used to it) functions that pass variables, syntex that uses "{" and "}". Stuff like that.
Dwayne
Ability to Fly:
Hurling yourself towards the ground, and missing.
Engineers that Contribute to flying:
Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute
Pilots that are Flying:
Those who know their limitations, and respect the green side of the grass...
@Dwayne
how about this:
This is a qouteCode:' This is no working code! Line 1 'not working Line 2 'not working 'etc . . .
regards
Ralph
_______________________________________________
There are only 10 types of people:
Those who understand binary, and those who don't ...
_______________________________________________
Dwayne,
You reminded me of another possibility. I too have built my own LCD backpack in the past... just to see if I could do it. Commands were identical to LCDout except I would serout instead. Doesn't add too much to the cost of an assembly and is certainly cheaper than buying a serial LCD. Still its the thought thats nagging me that we should be able to cross the port boundary with the data pins on LCDout. Guess it needs to go in the wish-list column.
-John
that webpage is good but it isnt mine.
-not sure what exactly your problem is but are you just asking how to get a changing variable on the LCD?
the subs i made probly wont be that good for that but can be done. youd need to make a routine to turn a byte (or word) sized variables decimal value into ascii format. your gonna need to generate 3 ascii character from a byte sized var.
example: we have b1 a byte siezed variable.if we need b1 on the lcd we know that the variable is 0-255. that means we need 3 characters reserved for this variable XXX. if b1 =1 then show "001" on lcd. if b1=35 then show "035". if b1=244 then shoe "244".
i may end up doing something like this if it doesnt require a lot of room and ill post it if i do it.
Bookmarks