AnsweredAssumed Answered

PIT for dummies

Question asked by matyb on May 11, 2018
Latest reply on May 18, 2018 by matyb

Hello, first time user here. I kind of understand what I have to do, however i have a hard time executing code. I've been reading the manual, but it doesn't help me too much. I learn more with examples, and it shows none. My question is, how can I create a 5 kHz interrupt using PIT? The part that I am stuck right now at is loading the LDVAL register, I cannot find a clock that I can use, I only have CPU_INT_IRC_CLK_HZ, but it runs at 48 MHz, a little too high. Can someone show me an example of how to enable and what include files I need? I'd greatly appreciate it, thank you.

Outcomes