pwm 50 Hz with pic18f458 not accepted

mikroC, mikroBasic and mikroPascal PRO for Microchip’s 8-bit PIC MCUs.
Post Reply
Author
Message
ali genidy
Posts: 54
Joined: 03 Apr 2017 09:17

pwm 50 Hz with pic18f458 not accepted

#1 Post by ali genidy » 27 Nov 2023 04:23

hi guys i am using pic18f458 when i i use pwmx_init(50) error is occured said out of argument pleas can any one help me ?
i wan pwm 50 Hz

User avatar
IvanJeremic
mikroElektronika team
Posts: 316
Joined: 05 Sep 2022 14:32

Re: pwm 50 Hz with pic18f458 not accepted

#2 Post by IvanJeremic » 27 Nov 2023 12:08

Hi,

I am not sure if the PWM init will work for your MCU since in order for it to work you will need to set the MCU clock frequency to something around 0.8 MHz.

Regards,

Ivan.

williamibarra
Posts: 1
Joined: 22 Apr 2024 18:48

Re: pwm 50 Hz with pic18f458 not accepted

#3 Post by williamibarra » 22 Apr 2024 18:52

Resetting the MCU clock frequency to about 0.8 MHz solved the problem. Thanks.

Post Reply

Return to “PIC PRO Compilers”