05-11-2016, 04:06 PM
I spent some more time on this and have traced the source of the spike to bit 2 of PortC being delayed in turning off. Reversing the direction of the staircase showed that that pin is also delayed in turning on (see photo).
I have tried everything I can think of to remedy the situation, checking that the peripherals associated with that pin is not interfering with it, checking that chip is properly decoupled, I have changed the chip, but all the ones I got of that type were purchased at the same time from the same place. I was also wondering if it had to do with I using a higher clock frequency than before so I fitted a 6 MHz crystal as a check which made no difference.
I am now in the process of moving to a different PIC.
I will first try a 18F24K22 it is the 16K version of the 18F26K22 which I used at a stage on my first generator and had no problems with.
Frank
I have tried everything I can think of to remedy the situation, checking that the peripherals associated with that pin is not interfering with it, checking that chip is properly decoupled, I have changed the chip, but all the ones I got of that type were purchased at the same time from the same place. I was also wondering if it had to do with I using a higher clock frequency than before so I fitted a 6 MHz crystal as a check which made no difference.
I am now in the process of moving to a different PIC.
I will first try a 18F24K22 it is the 16K version of the 18F26K22 which I used at a stage on my first generator and had no problems with.
Frank