Home › Forums › Microcontrollers › PIC Microcontroller › PWM width controlling on PIC12F1840 according to ADC input Tagged: ADC, PIC, PWM This topic has 1 reply, 2 voices, and was last updated 7 years, 12 months ago by Ligo George. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts December 27, 2016 at 4:59 pm #13386 GITANJALIParticipant Hello, I am new to PIC programming. I am trying to read 2 ADC inputs and according to that controlling the width of PWM (20kHz) using PIC12F1840 (internal oscillator with 4MHz freq). My code is not working, it is attached. can anyone guide me? thanks, Gitanjali December 28, 2016 at 7:20 am #13389 Ligo GeorgeKeymaster Which part is not working ? Can you please elaborate ? You can refer the following tutorials also. Using ADC of PIC Microcontroller – MPLAB XC8 Generating PWM with PIC Microcontroller – MPLAB XC8 We are also providing premium support, you can write to [email protected] for that. Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in The reCAPTCHA verification period has expired. Please reload the page. Log In