SNIU028D February 2016 – September 2020 UCD3138 , UCD3138064 , UCD3138064A , UCD3138128 , UCD3138A , UCD3138A64
Here the sequencer is synchronized to a DPWM trigger separated in time. This operating mode is nothing more than the previous example, but with the sequencer allowed to be re-triggered without being reset to the initial state of seq00.
Requirement: Auto convert 6 currents (I1,I2,…I6) every 100us synchronized to the external trigger.
The maximum number of conversions is set to 5 and the sequence select register is set as shown in the following table Note for convenience, I1, I2, ...etc are used to represent the sequence select value.
Bits | Field Name | Channel Select Value | |
---|---|---|---|
SEQCHSEL0 | 4:0 | SEQ00 | I1 |
9:5 | SEQ01 | I2 | |
14:10 | SEQ02 | I3 | |
SEQCHSEL1 | Bits | Field Name | Channel Select Value |
4:0 | SEQ03 | I4 | |
9:5 | SEQ04 | I5 | |
14:10 | SEQ05 | I6 | |
SEQCHSEL2 | Bits | Field Name | Channel Select Value |
4:0 | SEQ06 | X | |
9:5 | SEQ07 | X | |
14:10 | SEQ08 | X | |
SEQCHSEL3 | Bits | Field Name | Channel Select Value |
4:0 | SEQ09 | X | |
9:5 | SEQ10 | X | |
14:10 | SEQ11 | X |
Once reset and initialized, the sequencer waits for an external trigger. At the 1st trigger, six conversions (sequence select values of SEQ00(I1), SEQ01(I2), SEQ02(I3), SEQ03(I4), SEQ04(I5) and SEQ05(I6)) are performed. At the end of the auto-conversion session, the ADC result registers have the following values:
Buffer Registers | ADC Conversion Result |
---|---|
RESULT-00 | I1 |
RESULT-01 | I2 |
RESULT-02 | I3 |
RESULT-03 | I4 |
RESULT-04 | I5 |
RESULT-05 | I6 |
Note at this point, the sequencer remains at its current state waiting for another trigger.