Hi,
First of all ...... you didn't follow my instructions, the saving and restoring of PBPvariables and registers are shuffled. Not that it matters much, it will not work anyway. Now when i see your code, i understand what you're trying to do. It will not work for several reasons .... the most obvious one beeing that your interruptroutine will take much longer time than the timer needs to rollover. This means that your pic will be busy handling the display almost all the time. That leaves virtually no time to count pulses. It can be done if you write a true assemblerinterrupt and slow the display. I would have helped you but i'm going away for the hollidays. Perhaps someone else could help, there must be somone more than me that have done this in the past.
/Ingvar
Bookmarks