PWM notice

For general Flowcode discussion that does not belong in the other sections.
Post Reply
alanwms
Posts: 117
http://meble-kuchenne.info.pl
Joined: Fri Dec 04, 2020 2:29 pm
Has thanked: 24 times
Been thanked: 7 times

PWM notice

Post by alanwms »

Can you tell me if there is a method to signal when the PWM output toggles from low to high or high to low?
FC9
PIC24fj64GB002

Steve-Matrix
Matrix Staff
Posts: 1265
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 168 times
Been thanked: 279 times

Re: PWM notice

Post by Steve-Matrix »

Looking at p165 of that chip's family datasheet, it seems an interrupt is available for the PWM module. You will probably need to create a custom interrupt for dealing with this, which means understanding the datasheet requirements and coding the appropriate C-code.

Post Reply