Hi Sarma. I changed the code again in V3 to have a 20ms delay on all actions. It's maybe too long for many of the actions but it will do for now. The specification sheet says that timings can be a lot less. I have this running now in simulation but not on the PCB I made. Is there something wrong with the configuarion word? Do I need to switch pullups on / off. This is very frustrating. All the circuits i have seen are very similar to mine.
hi Paul,
Ref delay loops, download this calculator from:
http://www.biltronix.com/picloops.html