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/AVRADCSetup.html | 88 +++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 help/en_US/scilab_en_US_help/AVRADCSetup.html (limited to 'help/en_US/scilab_en_US_help/AVRADCSetup.html') diff --git a/help/en_US/scilab_en_US_help/AVRADCSetup.html b/help/en_US/scilab_en_US_help/AVRADCSetup.html new file mode 100644 index 00000000..eb386253 --- /dev/null +++ b/help/en_US/scilab_en_US_help/AVRADCSetup.html @@ -0,0 +1,88 @@ + + + AVRADCSetup + + + +
+ + + + +
+ << Scilab 2 C Converter + + + Scilab 2 C Converter + + + AVRDigitalIn >> + +
+
+
+ + + + Scilab 2 C Converter >> Scilab 2 C Converter > AVRADCSetup + +

+

AVRADCSetup

+

Function to initialise ADC of AVR

+ + +

Calling Sequence

+
AVRADCSetup(uint8 prescaler, uint8 adc_ref)
+ +

Parameters

+
prescaler: +

prescaler to be used for generating ADC clock (0-7)

+
adc_ref : +

reference voltage to be used for ADC conversion

+ +

Description

+

This function initialises ADc of AVR with given parameters. 'prescaler' is needed for deciding ADC clock. ADC clock should be between 50KHz and 200KHz and it given as (MCU clock/2^prescaler). Select appropriate prescaler depending on MCU clock. 'adc_ref' selects one of the available reference voltage sources available.

+

The adc_ref can take the following values- +

+

This is curretly dummy function. It provides no functionality but is required for providing support for generating C code for AVR.

+

+ +

Examples

+
AVRADCSetup(128,0)
+ +

See also

+
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << Scilab 2 C Converter + + + Scilab 2 C Converter + + + AVRDigitalIn >> + +
+
+
+ + -- cgit From a3dfa2a4069740517ca6e83f99dd4e0dbb71c377 Mon Sep 17 00:00:00 2001 From: siddhu8990 Date: Sat, 1 Jul 2017 06:52:51 +0530 Subject: Merged Jorawer's work, Help files, RPi-scilab2c --- help/en_US/scilab_en_US_help/AVRADCSetup.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'help/en_US/scilab_en_US_help/AVRADCSetup.html') diff --git a/help/en_US/scilab_en_US_help/AVRADCSetup.html b/help/en_US/scilab_en_US_help/AVRADCSetup.html index eb386253..52833643 100644 --- a/help/en_US/scilab_en_US_help/AVRADCSetup.html +++ b/help/en_US/scilab_en_US_help/AVRADCSetup.html @@ -12,11 +12,11 @@
- << Scilab 2 C Converter + << Scilab 2 C Converter - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > AVRADCSetup + Scilab 2 C Converter >> Scilab 2 C Converter > AVRADCSetup

AVRADCSetup

@@ -70,11 +70,11 @@
Report an issue
- << Scilab 2 C Converter + << Scilab 2 C Converter - Scilab 2 C Converter + Scilab 2 C Converter -- cgit