Who's Online
0 registered (), 3 Guests and 0 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
up4itnc, Bob, DoubtingThomas, parkcitygal, Roy
46 Registered Users
December
M Tu W Th F Sa Su
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Shout Box

Topic Options
#195 - 04/16/13 02:14 PM Microcontroller GLCD Software
Muniac Administrator Offline
enthusiast

Registered: 11/12/08
Posts: 247
Loc: Livingston, Texas
Welcome To My Projects Thread:

Here in this forum I chronicle the technical projects I'm working on for others that might be interested in electronics, C software and MCU based applications. The main page with all the project topics is HERE. Where appropriate I made some videos to better show details of what's going on. I've written documentation and published those documents as PDFs to help explain the fine details. I hope you find the information herein interesting, helpful and enjoyable. Please feel free to contact me with any questions, comments, corrections and/or suggestions. Like this on Facebook if that venue works better for you.

Selected projects that deal mostly with LCD display devices are detailed below:

GLCD Documentation Page HERE.
TLCD Documentation Page HERE (V2.00 8/2014).
Real Time Clock Video Demo HERE (Using the GLCD functions).
Newhaven 2x20 LCD Project Thread

Feel free to join this blog to discuss any and all aspects of this project.

My First MCU Project:

In anticipation of building a few embedded processor applications, I purchased a PIC18F4550 development board to play around with. It's been a while since I've written any C and assembly language programs. I figured this board would get me back into the swing of things and clean some of the rust off my language skills. This type of a tabletop project fits well into the current lifestyle of limited space.

Since the days of Intel's 8080 microprocessor (late 70s) things have come a long way. Now MCU's (Micro Control Unit) are complete computer systems with enough computing power to solve complex problems. You can use them to solve some simple problems too. Intelligent controls, monitoring, tracking, diagnostics and generally smarter operation of devices are places where MCUs can shine. Saving money and time while improving safety can be additional benefits from a properly designed MCU based system. Some 16k devices are now on the market so there are plenty to pick from.

LCDs (Liquid Crystal Displays) have seen similar advancements and price drops. 2 line by 32 character LCDs are very common. You'll find them on inverters and solar controllers. They allow a user to read important parameters and input custom values to tune a device's operation to a specific usage pattern.


Graphics LCD demo of display functions.

LCDs come in two basic types. Those that display only characters (text based) and those that display a pixel grid (graphics based). What you use depends on the type of output your application requires.

My project needs took me in the direction of the graphics type display. The one shown in the video above is 128x64 pixels back lit with LEDs. Pretty much all you can do with it is turn on/off one or more of the pixels in its grid. To display anything useful like character and/or graphics you need to write software routines.

I did just that and created a library of text and graphics routines that allow displaying text, symbols and graphic primitives. The "library" of routines brings the display to life. It took me some 2 months to finish developing and testing the library. The demo shown above was created in part to showcase the display's capabilities but more importantly to run it through the gears. It's important to make sure everything works properly before moving on to an actual application.

I used Microchip's MPLAB development environment with the C18 optimizing compiler to write the C code. MPASM was used for a half dozen assembly language functions I needed to write. Their ICD 3 programmer was used to program the chip. All of these tools have worked well.

Having a reliable output device working helps with debugging as program variables can be displayed. I've used this feature many times. My next project is to write several interrupt service routines (ISR) to manage a navigation switch (input) and internal clock timer.

That's it so far. I'll post updates here as I complete the required tasks.
_________________________
Evolve and simplify!
Scott Bridgman, Why not join and post your own comments??
scott@muniac.com (email me)
BACK HOME

Top
#246 - 11/20/13 12:12 PM Re: Microcontroller GLCD Software [Re: Muniac]
Muniac Administrator Offline
enthusiast

Registered: 11/12/08
Posts: 247
Loc: Livingston, Texas
Just wanted to provide an update on progress. I've completed all the documentation, demos and test drive packages for the above software. Feel free to visit the links above and take advantage of what's out there.

I've also gotten the navigation switch working as well as a real time clock calender chip. An example "clock" software application has been completed using the GLCD library functions. This includes menus and editing capabilities to manage the RTCC. A link to a video demo of this is above. Source code is also available to those interested.

I've also finishing the general purpose library for the 2 line x 16 char Hitachi style LCD displays. This includes a virtual page facility with scrolling and shifting.

Feel free to email me with any questions you may have. Enjoy!
_________________________
Evolve and simplify!
Scott Bridgman, Why not join and post your own comments??
scott@muniac.com (email me)
BACK HOME

Top


Allure FOR SALE
Fab Ads
Featured Member
Registered: 01/11/10
Posts: 2
Top Posters
OldRebel 294
Muniac 247
Jeannie 48
8850 8
Gil B 4
Search w/Yahoo