Home › Forums › Microcontrollers › PIC Microcontroller › PWM width controlling on PIC12F1840 according to ADC input Tagged: ADC, PIC, PWM This topic contains 1 reply, has 2 voices, and was last updated by Ligo George 1 year, 2 months ago. Log In Register Lost Password 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 Attachments:You must be logged in to view attached files. 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 Log In Register Lost Password Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic.