Other Parts Discussed in Thread: HALCOGEN
Tool/software: Code Composer Studio
Hello,
i am currently setting up the N2HET module of my board in order to have a HET interrupt every 100 us. To do so I set up my the HET1 through HALCoGen as shown in the fig1.
Then I go on to set my pwm0 as shown in fig 2
and my interrupts as shown in fig 3 ( which I have enabled in the VIM part) ( I get interrupts alright just at the wrong time)
All of this creates the het.c file ( I copied into my CCS project all the files regarding the het: het.h/reg_het/stdnhet.h/ het.c)
I added a counter so to have a notification every 5 ms ( 100*50 = 500us = 5ms)
My project builds and debugs all right on my board but I get my pwm notification variably but precisely every 3 or 4 ms.
I have checked the conditions on my pwm based on the prescalers and it should be a frequency that is congruent with my CLK settings.
thank you for you help