Init_OpAmp
 
Component Init_OpAmp for HC08
Op Amp / Comparator module (OpAmp)
Component Level: Peripheral Initialization

Features of the op amp/comparator include:

  • Software enable/disable
  • Op amp and comparator modes for optimized performance
  • Shared output pin with ADC input pin and PWM fault pin to allow a op amp/comparator circuit to be inputs to these modules

The op amp/comparator module has two modes of operation — op amp mode and comparator mode. Op amp mode optimizes the module for accurate signal amplification with low input offset voltage. Comparator mode optimizes the module for use as a comparator with fast output response.

The output of the op amp/comparator shares its pin with an analog-to-digital converter (ADC6) channel. The fault function of the PWM can also be switched to share this pin. The ADC channel function and the op amp/comparator output can be enabled simultaneously so that the output of the op amps/comparators could be sampled directly by the associated ADC channels.

Peripheral Initialization Components provide a low-level hardware approach to initialize registers of the peripheral module. They are intended for experienced users.