RTEMS 6.3
Loading...
Searching...
No Matches

The ACC driver provides the interface to configure and use the ACC peripheral.
It applies comparison on two inputs and gives a compare output.

To Enable a ACC Comparison,the user has to follow these few steps:

  • Enable ACC peripheral clock by setting the corresponding bit in PMC_PCER1 (PMC Peripheral Clock Enable Register 1)
  • Reset the controller by asserting ACC_CR_SWRST in ACC_CR(ACC Control Register)
  • Configure the mode as following steps:
    1. Select inputs for SELMINUS and SELPLUS in ACC_MR (ACC Mode Register).
    2. Enable Analog Comparator by setting ACEN in ACC_MR.
    3. Configure Edge Type to detect different compare output.
  • Wait until the automatic mask period expires by polling MASK bit in ACC_ISR.

For more accurate information, please look at the ACC section of the Datasheet.

Related files :
acc.c
acc.h