Home › Forums › Microcontrollers › PIC Microcontroller › PWM width controlling on PIC12F1840 according to ADC inputTagged: ADC, PIC, PWMThis topic contains 1 reply, has 2 voices, and was last updated by Ligo George 1 year, 11 months ago.Log In Register Lost PasswordViewing 2 posts - 1 through 2 (of 2 total)Author PostsDecember 27, 2016 at 4:59 pm #13386 GITANJALIParticipantHello,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 GeorgeKeymasterWhich part is not working ? Can you please elaborate ? You can refer the following tutorials also.Using ADC of PIC Microcontroller – MPLAB XC8Generating PWM with PIC Microcontroller – MPLAB XC8We are also providing premium support, you can write to [email protected] for that.Author PostsLog In Register Lost PasswordViewing 2 posts - 1 through 2 (of 2 total)You must be logged in to reply to this topic.