PIC16f877 a pwm resolution | Microcontroller › PIC › PIC16f877 a pwm resolution This topic has 0 replies, 1 voice, and was last updated 11 years, 4 months ago by Parthiban. Viewing 1 post (of 1 total) Author Posts May 29, 2013 at 10:14 am #2453 ParthibanParticipant Doubt in PIC16f877a PWM resolution I need to vary pwm duty cycle in 0 to 255(50khz). but 50khz resolution is 8.64 bits(0 to 398). i need scale the value 0 to 398 into 0 to 255? How to scale the values?input data 255=398/1.56 ;correct or not? how to use float value? ____________________Hitech C compiler Author Posts Viewing 1 post (of 1 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In