Hi Bill,
Try FLAGS = 0 early in your code.
Hi Bill,
Try FLAGS = 0 early in your code.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Joe S
Thanks very much, your tip worked
FLAGS=0 Did the trick.
I've looked up the note on FLAGS=0 in the LCDOUT command page of the PBP manual and don't understand how it works?
1. If I cycle the power to the PIC, without 'FLAGS=0' all is OK.
2. If I re-set I get the missing lines problem unless the statement 'FLAGS=0' is included.
I thought the PIC executed the same code on re-set as on power-up?
Whatever, you help is much appreciated.
Regards Bill Legge
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
little deeper.... when you clear FLAGS value, the next LCDOUT will include the whole LCD initialization commands (1 line or more, 4 or 8 bits mode etc etc... see your LCD datasheet), then send your data.
You can do it manually with few LCDOUT, but since FLAGS-0 do the job, why messing with it euh?![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Just curious Bill, "reset" used in the first post, what do you mean by that, are you taking the mclr line low or doing a full power off scenario?
I ask because a power off that only browns out the LCD may be the entire problem. There will be times you do not want to use flags = 0 due to latency problems.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Joe S
The boards I'm using have a 10k resistor that normally holds MCLR high. The re-set button takes the MCLR pin direct to ground. The power is on all the time.
I have been lazy with LCDs and not bothered with the spec sheets - just use the PBP LCD commands.
FLAGS=0 has solved most of my problems but I still get the odd occasion when alternate lines of the LCD don't come to life.
I suspect that the proper way to fix this is some combination of FLAGS and the configuration brown-out settings. AND READ THE SPEC SHEETS!
I mostly use PIC16F877A and PIC18F8722 chips on Mikroelektronika boards for developement and move to Futurlec boards for the end product - all hobby stuff, no production.
Thanks for you interest.
Regards Bill Legge
Bookmarks