PWM width controlling on PIC12F1840 according to ADC inputGITANJALI2016-12-28T07:17:29+00:00 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 2 months, 3 weeks ago. 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 Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic.