- This topic has 0 replies, 1 voice, and was last updated 12 years ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
|
Microcontroller › PIC › PIC16f877 a pwm resolution
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