TOP Contributors

  1. MIKROE (2784 codes)
  2. Alcides Ramos (403 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (130 codes)
  5. Bugz Bensce (97 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (140886 times)
  2. FAT32 Library (73482 times)
  3. Network Ethernet Library (58269 times)
  4. USB Device Library (48465 times)
  5. Network WiFi Library (44077 times)
  6. FT800 Library (43631 times)
  7. GSM click (30522 times)
  8. mikroSDK (29252 times)
  9. PID Library (27196 times)
  10. microSD click (26888 times)
Libstock prefers package manager

Package Manager

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]

< Back
Example

Saving Glcd Calibration Data in internl EEPROM

Rating:

0

Author: Dick Berry

Last Updated: 2016-02-18

Package Version: 1.1.0.0

Example: 1.0.0.0

Category: GLCD

Downloaded: 891 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

No Abuse Reported

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".

  • Information
  • Comments (0)

Example Blog

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

Calibration Data on the GLCD

Calibration Data on the GLCD

Almost exactly the same as shipped with my V& Board with the addition of the Check Sum value.

View full image
EEPROM data after a short delay.

EEPROM data after a short delay.

This screen I added to see what was stored in the EEPROM and if it agreed with the current data.

View full image

I 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

ALSO FROM THIS AUTHOR

RV Monitor System Two Displays, Battery Voltage, Fresh Water Level, Outside Temp, Inside Temp, With Cycleing Mode

10

This is a Monitor system for Travel Trailers, Pop Up's and other RV's. I have made provisions for two displays, one inside and one outside. A single button for each display steps through the modes. Modes include Battery Voltage: Fresh Water Level: Outside Temp: Inside Temp: Cycle The Data Displays: Off: Thanks For Looking Dick

[Learn More]

Readin the AM2303 Temp/Humidity Sensor with Basic

0

I'v seen a several C examples for reading these sensors but haven't found one in Basic. So here is the Source file for a Module in my RV Monitor Project for Handleing the AM2303. See the RV Monitor Project for a detailed Blog.

[Learn More]

Camper Light Control Project Update

0

This is the mid point of this project. The Light Control is working with Blue Tooth Coms between the head end and the light controller. The VGLCD code is working the touch panel to turn on and off lights. I will be adding Voice Control using the Speak-Up and Smart_MP3 modules in the near future. Enjoy New Version, more functionally. Dick

[Learn More]