PIC18F26K22 timer callback function problem
I am developing firmware for a custom PIC18F26K22 and MCC. I have a problem with implementing a callback function.
I want to invoke a callback function every second, using a timer.
I can send and receive text with the EUSART1-module. I use this to get feedback. There isn't a LED on my board.
However, introducing a TMR-module gives problems.
It is as if that introducing the EUSART module causes interferences.
To exclude the EUSART, I implemented a minimal project using only a TMR-module.
I use a buzzer to get feedback if the timer is working.
I think the cause of my problem is the clock. I'm using an external clock, with frequency
Here is my code:
These are my settings. I have experimented with the clock sources, without success. https://imgur.com/a/fg7ptex
EDIT: I added my project in a zip file.
post edited by ndcroos - 2020/05/26 05:54:35