PIC18F24k40 PWM does not work.

General discussion on mikroC PRO for PIC.
Post Reply
Author
Message
vwsolucoes
Posts: 16
Joined: 05 Nov 2012 13:45

PIC18F24k40 PWM does not work.

#1 Post by vwsolucoes » 28 Mar 2022 23:06

Goodnight,
I am not able to make the PWM work on the PIC18F24k40.
Attached is the MikroC PRO for PIC v7.6.0 file

please give me an idea of what could be wrong, I've tried using mickroC library and also tried by registers, but none of them worked.

awaiting return,
thanks.
Valmir
VW Solutions
Attachments
FNDG.rar
(95.15 KiB) Downloaded 30 times

vwsolucoes
Posts: 16
Joined: 05 Nov 2012 13:45

Re: PIC18F24k40 PWM does not work.

#2 Post by vwsolucoes » 30 Mar 2022 02:24

Problem solved.
In this PIC18F24k40 it is mandatory to declare the PPS output PWM pins.
RC1PPS = 0x06;
RC2PPS = 0x05;

Post Reply

Return to “mikroC PRO for PIC General”