gLCD (EB076/uLCD32-PT-sgc) Bargraph

Tips, Tricks and methods for programming, learn ways of making your programming life easier, and share your knowledge with others.

Moderators: Benj, Mods

Post Reply
User avatar
BChappy
Posts: 15
Joined: Fri Jun 19, 2009 11:03 pm
Location: Lincoln, UK.
Has thanked: 13 times
Been thanked: 7 times
Contact:

gLCD (EB076/uLCD32-PT-sgc) Bargraph

Post by BChappy »

Hi all,

Attached is a simple Flowcode V5 program to generate a bar graph on a gLCD (EB076/ uLCD32-PT- sgc) in *LANDSCAPE view.
I used the uLCD32-PT-sgc, not E-Blocks.
The program uses an 18F26K22 target device @ 64MHz ( x4 pll enabled /C. Code).
It is very basic, displays the ADC value as a number, and generates a bargraph from the ADC value. The ADC is constantly read in a loop and the current value is compared with the previous value and updated if different.

*LANDSCAPE orientation is achieved by downloading the .pmmc file and loading it to the gLCD using 4DSystems pmmc loader.
You can use third party USB to serial as I did, but I recommend you double check compatibility and connections otherwise the gLCD could be damaged!
If you are not sure of the compatibilty/connections purchase the dedicated programming adapter.

My PICKIT 3 powers the PIC, gLCD, with 10k pot connected, quite happily without issues!

Have fun! :D

Best regards

Brian
Attachments
gLCD_Example18F..K...fcf
(26.95 KiB) Downloaded 438 times
Is your Project Not Working? - Help and General Advice Click here!
Flowcode v8 forum topic - Click here!

Post Reply