Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - PIC16f88 not persisting

(you are viewing a thread; or go back to list of threads)

PIC16f88 not persisting (by Juan)
Hi there,

I have written a program that stores a set point of a pot and turns on an LED when the pot crosses that value +- a dead band. The "make persist" instruction doesn't seem to work with the PIC16F88, when a switch the power off and back on again the set point is lost.
Any ideas?
Fri Feb 12 2010, 06:31:21
(no subject) (by Juan)
Here is the file. See rungs 2 and 3.
Fri Feb 12 2010, 06:32:51, download attachment PITCH BASIC.ld
(no subject) (by Jonathan Westhues)
See http://cq.cx/ladder-forum.pl?action=viewthread&parent=6

The stuff before the persist op is not doing anything useful, and it may be the cause of your problem.
Fri Feb 12 2010, 11:59:23
no subject (by simon)
Hi Juan
The persist must be single on the rung .
See attachment.
Fri Feb 12 2010, 16:22:46, download attachment PITCHBASIC.ld
(no subject) (by Juan)
Hi,

By making the rung condition always true, will you not store the value in the EEPROM every time the scan time cycle passes over the rung?
Sun Feb 14 2010, 12:40:34
no subject (by simon)
Hi

Every transition of "XBRG" from 0 to 1 , result on saving data of "BRG" to "PERSIST" .
Don't care the scan of rungs . The data whill change only when the "XBRG" change from 0 to 1 .
See Jonathan example .
Sun Feb 14 2010, 16:30:32
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):