|
|
@@ -651,21 +651,21 @@ Similar considerations apply to ``LD`` and ``ST`` instructions. Consider the fol
|
|
|
---------------------------------
|
|
|
|
|
|
**Syntax**
|
|
|
- **ADC** *Rdst, Sar_sel, Mux, Cycles*
|
|
|
+ - **ADC** *Rdst, Sar_sel, Mux*
|
|
|
+
|
|
|
+ - **ADC** *Rdst, Sar_sel, Mux, 0* — deprecated form
|
|
|
|
|
|
**Operands**
|
|
|
- - *Rdst* – Destination Register R[0..3], result will be stored to this register
|
|
|
- - *Sar_sel* – selected ADC : 0=SARADC0, 1=SARADC1
|
|
|
+ - *Rdst* – Destination Register R[0..3], result will be stored to this register
|
|
|
+ - *Sar_sel* – Select ADC: 0 = SARADC1, 1 = SARADC2
|
|
|
- *Mux* - selected PAD, SARADC Pad[Mux+1] is enabled
|
|
|
- - *Cycle* – number of cycles used to perform measurement
|
|
|
|
|
|
**Description**
|
|
|
The instruction makes measurements from ADC.
|
|
|
|
|
|
**Examples**::
|
|
|
|
|
|
- 1: ADC R1, 0, 1, 100 // Measure value using ADC1 pad 2,
|
|
|
- // for 100 cycles and move result to R1
|
|
|
+ 1: ADC R1, 0, 1 // Measure value using ADC1 pad 2 and store result into R1
|
|
|
|
|
|
|
|
|
**REG_RD** – read from peripheral register
|