Author Topic: [PIC] Calibration Strategy  (Read 1520 times)

0 Members and 1 Guest are viewing this topic.

Offline katzohkiTopic starter

  • Frequent Contributor
  • **
  • Posts: 378
  • Country: us
    • My Blog
[PIC] Calibration Strategy
« on: March 24, 2015, 10:42:34 pm »
I'm currently work on a project that needs to check for a number somewhere in memory when it powers up and then start a calibration routine if the number is not present or zero. At the moment I'm developing on the PIC16F1509 which has no EEPROM. I'm writing the code in XC8.

Since I only need to check the number on power up and then write it to program memory once (unless I call the calibrate function manually I guess), is there any "quick and easy" way to get this done? Since I'm writing in C, I wasn't exactly sure how to reserve a program memory address to use. Are there any useful "tips and tricks" or code snippits to get this done?
 

Offline katzohkiTopic starter

  • Frequent Contributor
  • **
  • Posts: 378
  • Country: us
    • My Blog
Re: [PIC] Calibration Strategy
« Reply #1 on: March 25, 2015, 03:51:56 pm »
Wow, yep... that'll do it. Man, how did I miss that?  :palm:
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf