From aef4e8398f2b1848b0e4cdd9580dbbe93e4006f9 Mon Sep 17 00:00:00 2001 From: Jorawar Singh Date: Fri, 30 Jun 2017 11:28:58 +0530 Subject: Help files, modified Raspberry Pi code conversion --- help/en_US/scilab_en_US_help/AVRPWM1SetDuty.html | 83 ++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 help/en_US/scilab_en_US_help/AVRPWM1SetDuty.html (limited to 'help/en_US/scilab_en_US_help/AVRPWM1SetDuty.html') diff --git a/help/en_US/scilab_en_US_help/AVRPWM1SetDuty.html b/help/en_US/scilab_en_US_help/AVRPWM1SetDuty.html new file mode 100644 index 00000000..03403a84 --- /dev/null +++ b/help/en_US/scilab_en_US_help/AVRPWM1SetDuty.html @@ -0,0 +1,83 @@ +
+ +Function to Set Duty cycle of PWM Output generated by Timer1 at OC1A or OC1B pin.
integer, 0 (for OC1A) or 1 (for OC1B)
It holds an integer value from 0 to 100 which sets the percentage of time for which signal is active.
It holds an integer value from 0 to 65535.This value sets the Top value of the counter TCNT1 i.e ICR.(for more info refer datasheet)
Each Micro controller has PWM output pins which can generate varying voltage +from 0V-5V.This function Sets the duty cycle of output PWM signal.Also this function +decides the Top Vale of TCNT1 and the output pin to output PWM signal.
+This is curretly dummy function. It provides no functionality but is required +for providing support for generating C code for AVR.
+Example +AVRPWM1SetDuty(0,50,40000); //This function will produce PWM signal of 50% duty cycle on OC1A pin and TCNT1 will reset at 40000 instead at 65535.