diff options
author | yash1112 | 2017-07-07 22:34:47 +0530 |
---|---|---|
committer | yash1112 | 2017-07-07 22:34:47 +0530 |
commit | 2340409c98f9b15bb23944b991e97a1aa4e88ce0 (patch) | |
tree | 8fa462e65aca52e5e933dee026a78c31baf0181c /macros/Hardware/AVR/AVRPWM2SetDuty.sci | |
parent | f577f255fd5c1d30bc770e9b053823ada8684528 (diff) | |
parent | 69c573fe2e59236f063aaa94dcd44b556f945cbc (diff) | |
download | scilab2c-2340409c98f9b15bb23944b991e97a1aa4e88ce0.tar.gz scilab2c-2340409c98f9b15bb23944b991e97a1aa4e88ce0.tar.bz2 scilab2c-2340409c98f9b15bb23944b991e97a1aa4e88ce0.zip |
1.Sci2cDeps updated 2.Windows compatibility resolved
Diffstat (limited to 'macros/Hardware/AVR/AVRPWM2SetDuty.sci')
-rw-r--r-- | macros/Hardware/AVR/AVRPWM2SetDuty.sci | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/macros/Hardware/AVR/AVRPWM2SetDuty.sci b/macros/Hardware/AVR/AVRPWM2SetDuty.sci index 81d1761e..75ae8599 100644 --- a/macros/Hardware/AVR/AVRPWM2SetDuty.sci +++ b/macros/Hardware/AVR/AVRPWM2SetDuty.sci @@ -10,17 +10,26 @@ function AVRPWM2SetDuty(duty) //Function to Set Duty cycle of PWM Output generated by Timer2 at OC2 pin. +<<<<<<< HEAD // //Parameters // duty : It holds an integer value from 0 to 100 which sets the percentage of time for which signal is active. // +======= +>>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0 //Description // Each Micro controller has PWM output pins which can generate varying voltage // from 0V-5V.In this function by varying the duty cycle, varying voltage can be // produced. // +<<<<<<< HEAD // This is curretly dummy function. It provides no functionality but is required // for providing support for generating C code for AVR. +======= +//Parameters +// duty : It holds an integer value from 0 to 100 which sets the percentage +// of time for which signal is active. +>>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0 // //Example // AVRPWM2SetDuty(50); //Produces 2.5V at OC2 pin @@ -32,6 +41,11 @@ function AVRPWM2SetDuty(duty) //Authors // Ashish Kamble // +<<<<<<< HEAD +======= +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for AVR. +>>>>>>> 9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0 if(duty>100) then disp("Error : Invalid input argument ''duty'' in AVRPWM2SetDuty function."); |