Engee documentation

Artery ADC

Output of samples from the microcontroller’s ADC.

blockType: CFunction

Path in the library:

/Interfaces/Targets/Artery/Artery ADC

Description

To work with the block, install/update the support package. equipment.

Block Artery ADC It is used to output samples from the microcontroller’s ADC. It supports both single and multiple ADC channels.

Configuring the AT32 Workbench to read analog inputs

  1. Select the desired ADC module.

  2. Select the required number of channels for the survey.

    artery adc settings

  3. Generate the project (Generate Code).

Ports

Output

# Counts — samples from the ADC
scalar | vector

Details

Samples from the ADC returned as

  • scalar — if one channel is used;

  • vectors of dimension — if used ADC channels.

Data types

UInt16

Complex numbers support

No

Parameters

Main group

# Модуль: — selected in the AT32 Workbench the number of the microcontroller’s ADC module
1 | 2 | 3

Details
Values

1 | 2 | 3

Default value

1

Program usage name

m_module

Tunable

No

Evaluatable

Yes

# Количество каналов — number of logical ADC channels

Details

The number of ADC channels configured in the AT32 Workbench for this module. For example, when using the channels IN0, IN1, IN2, this parameter must be set to 3.

Default value

2

Program usage name

m_num_channels

Tunable

No

Evaluatable

Yes