ADC
 
Component ADC
A/D converter
Component Level: High
Events:
(Events are call-back functions called when an important event occurrs. Please see the Embedded Components page for more information.)
  • EventModule - Name of the user module (without extension), where the events from this component are placed.
  • BeforeNewSpeed - This event is called when the CPU speed mode is being changed (using CPU methods) - before the change. The event is enabled only if speed modes are supported in the target CPU component (more than one speed mode).

      ANSIC prototype: void BeforeNewSpeed(void)

  • AfterNewSpeed - This event is called when the CPU speed mode is being changed (using CPU methods) - after the change. The event is enabled only if speed modes are supported in the target CPU component (more than one speed mode).

      ANSIC prototype: void AfterNewSpeed(void)

  • OnEnd - This event is called after the measurement (which consists of 1 or more conversions) is/are finished.
    The event is available only when the Interrupt service/event property is enabled.

      ANSIC prototype: void OnEnd(void)
    • Priority - OnEnd priority. Default value is based on the interrupt priority defined in property A/D interrupt priority. For details see description below of the page.

  • Events only if ADC support Self calibration.
    • OnCalibrationEnd - This event is called when the calibration has been finished. User should check if the calibration pass or fail by Calibration status method./nThis event is enabled only if the Interrupt service/event property is enabled.

        ANSIC prototype: void OnCalibrationEnd(void)
      • Priority - Priority of the event routine. Default value is based on the interrupt priority defined in property A/D interrupt priority. For details see description below of the page.


For each generated event it is possible to set: