TivaC Lcd Driver for 1602A LCD controller
A c++ driver for interfacing the TivaC with the 1602A LCD controller
|
Driver using the TivaC Dev board for the 1602A LCD controller. This controller uses a parallel bus that can do 4-bit or 8-bit, there was no standard protocol to talk with it aside from the things noted in the datasheet so it's just pretty big banging until it works
Features:
The project was written mainly for my personal usage so there was more hardcoding that I would like for a driver but I have also attempted to make it flexible where possible, you are welcome to add more abstractions to make it look nicer
There is doxygen docs of the LcdDriver class here:
Check TivaWare documents(included with the full TivaWare) for other stuffs
HD44780 datasheet, similar but not the same
Custom character generator(Necessary if you want to create your own character)
This is a code composer studio(ccs) project so simply cloning and importing it and then set the SW_ROOT inside the project properties to the TivaDep directory would be enough, for example: my SW_ROOT variable is /path/to/this_repo/Tivaware_Dep, for version 8.2.0.00007, the project builds successfully
Building the project using something other than ccs is not guaranteed because TivaWare doesn't play nicely with other IDE from my experience(unless you go through and fix every single include errors)
If you look at the .gitignore of the project, you would see only a fraction of ignore files that usually go into C/C++ and Eclipse project, it was intentional since ccs won't build if I ignore other stuffs, so to play it safe, I only ignore files that are guaranteed to be unimportant
Another note is that if you haven't, you should increase the stacksize allowed by ccs to make sure no weird errors happen
For examples of most of the features, check the main.cpp file in the src dir
While most of the projects are documented in doxygen, adding custom character is a little special since it requires external help, you should go to https://omerk.github.io/lcdchargen/, create your pattern then grab the array from there
Then in your code: