MC dsPIC33F MCADC GUI
Purpose
High fidelity model of the Microchip dsPIC33F motor control ADC module with Graphical User Interface configuration.
Library
Processor in the Loop / Peripherals / Microchip dsPIC33F / ADC
Description
This block efficiently models the behavior of a Microchip dsPIC33F motor control PWM module with full timing resolution for a variable PWM period. The module is configured using a graphical user interface. With the Graphical User Interface, the block can simply be configured using combo boxes in the component mask. Under the hood, the resulting register configuration is forwarded to the register based implementation of the Microchip motor control module. The resulting register configuration further is accessible via the probe signals.
For a detailed description of the supported features and the usage of the block please refer to the detailed documentation Microchip Motor Control ADC.
Parameters
ADC General
- System clock [Hz]
- The system clock of the processor defined in Hz.
- Internal RC clock [Hz]
- PWM time base control register.
- External Reference [Vref-, Vref+]
- Specification of external reference voltage in mask.
- Internal Reference [AVSS,AVDD]
- Specification of internal reference voltage in mask.
- Output Mode
- Defines representation of conversion results.
ADC Control Register
- ADCON1.SIMSAM
- Select multi-channel sequential or simultaneous sampling mode.
- ADCON1.SSRC
- Select ADC start-of-conversion trigger.
- ADCON1.FORM
- Select output data format.
- ADCON1.AD12B
- Select ADC resolution.
- ADCON2.ALTS
- Select fixed or alternative sampling mode.
- ADCON2.BUFM
- Select buffer fill mode.
- ADCON2.SMPI
- Select the sample and conversion operation bits value.
- ADCON2.CHPS
- Select channels to be converted.
- ADCON2.CSCNA
- Enable channel 0 scan mode operation.
- ADCON2.VCFG
- Select ADC reference voltage.
- ADCON3.ADCS
- A prescaler for the ADC time base calculation.
- ADCON3.ADRC
- Select ADC clock source.
ADC Channel Select
- ADCHS123.CH123SA
- Select analog input channels as the positive input for MUXA.
- ADCHS123.CH123NA
- Select analog input channel or voltage reference as the negative input for MUXA.
- ADCHS123.CH123SB
- Select analog input channels as the positive input for MUXB.
- ADCHS123.CH123NB
- Select analog input channel or voltage reference as the negative input for MUXB.
- ADCHS0.CH0SA
- Select analog input channels as the positive input for MUXA.
- ADCHS0.CH0NA
- Select analog input channel or voltage reference as the negative input for MUXA.
- ADCHS0.CH0SB
- Select analog input channels as the positive input for MUXB.
- ADCHS0.CH0NB
- Select analog input channel or voltage reference as the negative input for MUXB.
ADC Channel Scan
- CSSx
- Enable scan of input ANx when ADC operated in channel scan mode.
Probe Signals
- ADCONx
- ADC control register x.
- ADCHS123
- ADC input channel 1, 2, 3 select register.
- ADCHS0
- ADC input channel 0 select register.
- ADCSSL
- ADC input scan select register low.