Search found 3 matches

by henrik.basic
Sun May 24, 2020 1:51 pm
Forum: Hardware
Topic: PCNT THRES0/1 IRQ not trigging.
Replies: 0
Views: 1929

PCNT THRES0/1 IRQ not trigging.

I've tried to use the THRES0/1 IRQ, but found a strange problem. If I change the THRES0/1 value, the IRQ won't trigger until the counter value first has reached 0, then the set threshold value. Ie Set CNT = 0 Set H_LIM = 20 Count 5 pulses, so CNT = 5 Set THRES0 = 10 Count 5 pulses, so CNT = 10. I wo...
by henrik.basic
Mon Mar 23, 2020 5:50 pm
Forum: General Discussion
Topic: Issue with MCPWM Prescaler
Replies: 6
Views: 9849

Re: Issue with MCPWM Prescaler

I've got it working, and I'm closing in on the cause of the problem, and a workaround. The PERIOD and PRESCALE subregister is in the same register as the PERIOD_UPMETHOD subregister, which made me think that the PRESCALE shadow/active subregister would follow PERIOD_UPETHOD, but it doesn't. There's ...
by henrik.basic
Sat Mar 21, 2020 1:16 pm
Forum: General Discussion
Topic: Issue with MCPWM Prescaler
Replies: 6
Views: 9849

Re: Issue with MCPWM Prescaler

I got the same problem here. But I'm in the Arduino environment, and the LL layer doesn't seem to exist there. I started to write my own simple driver, using "soc/mcpwm_struct.h" and writing directly to the hw registers. And when I look at the LL layer , it seems to do the same thing as I do. I can ...