We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
Rating:
Author: Dick Berry
Last Updated: 2016-02-18
Package Version: 1.1.0.0
Example: 1.0.0.0
Category: GLCD
Downloaded: 868 times
Followed by: 5 users
License: MIT license
Calibrate the Touch Panel (only if required) with saved data that is check summed.
Displays Cal Data and EEPROM Data on GLCD PIC 18F46K22
Do you want to subscribe in order to receive notifications regarding "Saving Glcd Calibration Data in internl EEPROM" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "Saving Glcd Calibration Data in internl EEPROM" changes.
Do you want to report abuse regarding "Saving Glcd Calibration Data in internl EEPROM".
DOWNLOAD LINK | RELATED COMPILER | CONTAINS |
---|---|---|
1405031141_saving_glcd_cali_mikrobasic_pic.zip [97.89KB] | mikroBasic PRO for PIC |
|
I didn't want to have to Calibrate the Touch Panel every time I turned on my Light Controller and I also didn't want to have to re-compile to change the data. So I wrote this routine to save calibration data in the internal EEPROM with a chack digit. If te Chack Digit Passes then it skipps the Calibration routine but if the check digit fails it rund the Calibration routine and stores the new data along with the Check Sum in the internal EEPROM. I added a Calibration button to my menu screen so the user can calibrate the TP whenever they want to.
This is a modification of the Calibration routine shipped as an example with my Easy PIC V7 development board. There is a lot of stuff to strip out if you use it in an application but it's to display the data so it's not very hard to id it.
I hope it's of use to some of you guys, it sure was worth the time for my project.
Dick Berry
Almost exactly the same as shipped with my V& Board with the addition of the Check Sum value.
View full imageThis screen I added to see what was stored in the EEPROM and if it agreed with the current data.
View full imageI made a fix to this tonight after thr upload and will update the zip file tommorow.... Sorry 11:52 PM, 7/9/2014 Mountian Time USA
Verson 1.1 is much better. I uploaded way too soon. I was tired last night and didn't test very well. I added some comments and had to put delays between the EEPROM reads and writes for realiable operation, just like the library help files says (DUH).
I also reworked the Check Sum routine to actually work if the data was all Zeros or High values.
Sorry if I misslead you guys, but this version works.
Dick