I'm find a strange effect of using the "Begin Erase" followed by the "End Programming" commands in my PIC programmer code. I noticed that when I preempt the programming section with those two commands, the PIC doesn't appear to program correctly. If I leave out the erasing command, it works fine.
This is on a 16F88.
So, if I do this:
Bulk Erase
Begin Erase
End Programming
Load Data for Program Memory (-> Burn Data1)
Increment Address
Load Data for Program Memory (-> Burn Data2)
Increment Address
Load Data for Program Memory (-> Burn Data3)
Increment Address
Load Data for Program Memory (-> Burn Data4)
Begin Programming Only Cycle
End Programming
then it doesn't work. When I go to read the first line of data, it returns 3fff. But, if I do the same thing, but leave off the first two commands, it works ok and I can later read the data. Why does doing the erase command screw up the rest of the program?
Thanks,
Dan
This is on a 16F88.
So, if I do this:
Bulk Erase
Begin Erase
End Programming
Load Data for Program Memory (-> Burn Data1)
Increment Address
Load Data for Program Memory (-> Burn Data2)
Increment Address
Load Data for Program Memory (-> Burn Data3)
Increment Address
Load Data for Program Memory (-> Burn Data4)
Begin Programming Only Cycle
End Programming
then it doesn't work. When I go to read the first line of data, it returns 3fff. But, if I do the same thing, but leave off the first two commands, it works ok and I can later read the data. Why does doing the erase command screw up the rest of the program?
Thanks,
Dan
Last edited: