opamp: cleanup, make more consistent.
This commit is contained in:
parent
9ebf334031
commit
656ecf6714
@ -1,12 +1,12 @@
|
|||||||
block/OPAMP:
|
block/OPAMP:
|
||||||
description: Operational Amplifier
|
description: Operational Amplifier
|
||||||
items:
|
items:
|
||||||
- name: OPAMPCSR
|
- name: CSR
|
||||||
description: OPAMP control register
|
description: OPAMP control/status register
|
||||||
byte_offset: 0
|
byte_offset: 0
|
||||||
fieldset: OPAMP_CSR
|
fieldset: CSR
|
||||||
fieldset/OPAMP_CSR:
|
fieldset/CSR:
|
||||||
description: OPAMP control register
|
description: OPAMP control/status register
|
||||||
fields:
|
fields:
|
||||||
- name: OPAMPEN
|
- name: OPAMPEN
|
||||||
description: OPAMP enable
|
description: OPAMP enable
|
||||||
|
@ -1,83 +1,83 @@
|
|||||||
block/OPAMP:
|
block/OPAMP:
|
||||||
description: Operational amplifiers
|
description: Operational Amplifier
|
||||||
items:
|
items:
|
||||||
- name: OPAMP_CSR
|
- name: CSR
|
||||||
description: OPAMP control/status register
|
description: OPAMP control/status register
|
||||||
byte_offset: 0
|
byte_offset: 0
|
||||||
fieldset: OPAMP_CSR
|
fieldset: CSR
|
||||||
- name: OPAMP_TCMR
|
- name: TCMR
|
||||||
description: OPAMP control/status register
|
description: OPAMP control/status register
|
||||||
byte_offset: 24
|
byte_offset: 24
|
||||||
fieldset: OPAMP_TCMR
|
fieldset: TCMR
|
||||||
fieldset/OPAMP_CSR:
|
fieldset/CSR:
|
||||||
description: OPAMP control/status register
|
description: OPAMP control/status register
|
||||||
fields:
|
fields:
|
||||||
- name: OPAEN
|
- name: OPAMPEN
|
||||||
description: Operational amplifier Enable
|
description: OPAMP enable
|
||||||
bit_offset: 0
|
bit_offset: 0
|
||||||
bit_size: 1
|
bit_size: 1
|
||||||
- name: FORCE_VP
|
- name: FORCE_VP
|
||||||
description: FORCE_VP
|
description: Forces a calibration reference voltage on non-inverting input and disables external connections.
|
||||||
bit_offset: 1
|
bit_offset: 1
|
||||||
bit_size: 1
|
bit_size: 1
|
||||||
enum: OPAMP_CSR_FORCE_VP
|
enum: FORCE_VP
|
||||||
- name: VP_SEL
|
- name: VP_SEL
|
||||||
description: VP_SEL
|
description: VP_SEL
|
||||||
bit_offset: 2
|
bit_offset: 2
|
||||||
bit_size: 2
|
bit_size: 2
|
||||||
enum: OPAMP_CSR_VP_SEL
|
enum: VP_SEL
|
||||||
- name: USERTRIM
|
- name: USERTRIM
|
||||||
description: USERTRIM
|
description: USERTRIM
|
||||||
bit_offset: 4
|
bit_offset: 4
|
||||||
bit_size: 1
|
bit_size: 1
|
||||||
enum: OPAMP_CSR_USERTRIM
|
enum: USERTRIM
|
||||||
- name: VM_SEL
|
- name: VM_SEL
|
||||||
description: VM_SEL
|
description: OPAMP inverting input selection
|
||||||
bit_offset: 5
|
bit_offset: 5
|
||||||
bit_size: 2
|
bit_size: 2
|
||||||
enum: OPAMP_CSR_VM_SEL
|
enum: VM_SEL
|
||||||
- name: OPAHSM
|
- name: OPAHSM
|
||||||
description: OPAHSM
|
description: OPAHSM
|
||||||
bit_offset: 7
|
bit_offset: 7
|
||||||
bit_size: 1
|
bit_size: 1
|
||||||
enum: OPAMP_CSR_OPAHSM
|
enum: OPAHSM
|
||||||
- name: OPAINTOEN
|
- name: OPAINTOEN
|
||||||
description: OPAINTOEN
|
description: OPAINTOEN
|
||||||
bit_offset: 8
|
bit_offset: 8
|
||||||
bit_size: 1
|
bit_size: 1
|
||||||
enum: OPAMP_CSR_OPAINTOEN
|
enum: OPAINTOEN
|
||||||
- name: CALON
|
- name: CALON
|
||||||
description: CALON
|
description: Calibration mode enable
|
||||||
bit_offset: 11
|
bit_offset: 11
|
||||||
bit_size: 1
|
bit_size: 1
|
||||||
- name: CALSEL
|
- name: CALSEL
|
||||||
description: CALSEL
|
description: Calibration selection
|
||||||
bit_offset: 12
|
bit_offset: 12
|
||||||
bit_size: 2
|
bit_size: 2
|
||||||
enum: OPAMP_CSR_CALSEL
|
enum: CALSEL
|
||||||
- name: PGA_GAIN
|
- name: PGA_GAIN
|
||||||
description: PGA_GAIN
|
description: Gain in PGA mode
|
||||||
bit_offset: 14
|
bit_offset: 14
|
||||||
bit_size: 5
|
bit_size: 5
|
||||||
enum: OPAMP_CSR_PGA_GAIN
|
enum: PGA_GAIN
|
||||||
- name: TRIMOFFSETP
|
- name: TRIMOFFSETP
|
||||||
description: TRIMOFFSETP
|
description: Offset trimming value (PMOS)
|
||||||
bit_offset: 19
|
bit_offset: 19
|
||||||
bit_size: 5
|
bit_size: 5
|
||||||
- name: TRIMOFFSETN
|
- name: TRIMOFFSETN
|
||||||
description: TRIMOFFSETN
|
description: Offset trimming value (NMOS)
|
||||||
bit_offset: 24
|
bit_offset: 24
|
||||||
bit_size: 5
|
bit_size: 5
|
||||||
- name: CALOUT
|
- name: OUTCAL
|
||||||
description: CALOUT
|
description: OPAMP ouput status flag
|
||||||
bit_offset: 30
|
bit_offset: 30
|
||||||
bit_size: 1
|
bit_size: 1
|
||||||
|
enum: OUTCAL
|
||||||
- name: LOCK
|
- name: LOCK
|
||||||
description: LOCK
|
description: LOCK
|
||||||
bit_offset: 31
|
bit_offset: 31
|
||||||
bit_size: 1
|
bit_size: 1
|
||||||
enum: OPAMP_CSR_LOCK
|
fieldset/TCMR:
|
||||||
fieldset/OPAMP_TCMR:
|
|
||||||
description: OPAMP timer controlled mode register
|
description: OPAMP timer controlled mode register
|
||||||
fields:
|
fields:
|
||||||
- name: VMS_SEL
|
- name: VMS_SEL
|
||||||
@ -88,7 +88,7 @@ fieldset/OPAMP_TCMR:
|
|||||||
description: VPS_SEL
|
description: VPS_SEL
|
||||||
bit_offset: 1
|
bit_offset: 1
|
||||||
bit_size: 2
|
bit_size: 2
|
||||||
enum: OPAMP_TCMR_VPS_SEL
|
enum: VPS_SEL
|
||||||
- name: T1CM_EN
|
- name: T1CM_EN
|
||||||
description: T1CM_EN
|
description: T1CM_EN
|
||||||
bit_offset: 3
|
bit_offset: 3
|
||||||
@ -102,44 +102,43 @@ fieldset/OPAMP_TCMR:
|
|||||||
bit_offset: 5
|
bit_offset: 5
|
||||||
bit_size: 1
|
bit_size: 1
|
||||||
- name: LOCK
|
- name: LOCK
|
||||||
description: LOCK
|
description: TCMR LOCK
|
||||||
bit_offset: 31
|
bit_offset: 31
|
||||||
bit_size: 1
|
bit_size: 1
|
||||||
enum: OPAMP_TCMR_LOCK
|
enum/CALSEL:
|
||||||
enum/OPAMP_CSR_CALSEL:
|
|
||||||
bit_size: 2
|
bit_size: 2
|
||||||
variants:
|
variants:
|
||||||
- name: Percent3_3
|
- name: Percent3_3
|
||||||
description: 0.033*VDDA applied to OPAMP inputs during calibration
|
description: VREFOPAMP=3.3% VDDA
|
||||||
value: 0
|
value: 0
|
||||||
- name: Percent10
|
- name: Percent10
|
||||||
description: 0.1*VDDA applied to OPAMP inputs during calibration
|
description: VREFOPAMP=10% VDDA
|
||||||
value: 1
|
value: 1
|
||||||
- name: Percent50
|
- name: Percent50
|
||||||
description: 0.5*VDDA applied to OPAMP inputs during calibration
|
description: VREFOPAMP=50% VDDA
|
||||||
value: 2
|
value: 2
|
||||||
- name: Percent90
|
- name: Percent90
|
||||||
description: 0.9*VDDA applied to OPAMP inputs during calibration
|
description: VREFOPAMP=90% VDDA
|
||||||
value: 3
|
value: 3
|
||||||
enum/OPAMP_CSR_FORCE_VP:
|
enum/FORCE_VP:
|
||||||
bit_size: 1
|
bit_size: 1
|
||||||
variants:
|
variants:
|
||||||
- name: Normal
|
- name: Normal
|
||||||
description: Non-inverting input connected configured inputs
|
description: Normal operating mode
|
||||||
value: 0
|
value: 0
|
||||||
- name: CalibrationVerification
|
- name: Calibration
|
||||||
description: Non-inverting input connected to calibration reference voltage
|
description: Calibration mode. Non-inverting input connected to calibration reference
|
||||||
value: 1
|
value: 1
|
||||||
enum/OPAMP_CSR_LOCK:
|
enum/OUTCAL:
|
||||||
bit_size: 1
|
bit_size: 1
|
||||||
variants:
|
variants:
|
||||||
- name: ReadWrite
|
- name: Low
|
||||||
description: CSR is read-write
|
description: Non-inverting < inverting
|
||||||
value: 0
|
value: 0
|
||||||
- name: ReadOnly
|
- name: High
|
||||||
description: CSR is read-only, can only be cleared by system reset
|
description: Non-inverting > inverting
|
||||||
value: 1
|
value: 1
|
||||||
enum/OPAMP_CSR_OPAHSM:
|
enum/OPAHSM:
|
||||||
bit_size: 1
|
bit_size: 1
|
||||||
variants:
|
variants:
|
||||||
- name: Normal
|
- name: Normal
|
||||||
@ -148,7 +147,7 @@ enum/OPAMP_CSR_OPAHSM:
|
|||||||
- name: HighSpeed
|
- name: HighSpeed
|
||||||
description: OpAmp in high speed mode
|
description: OpAmp in high speed mode
|
||||||
value: 1
|
value: 1
|
||||||
enum/OPAMP_CSR_OPAINTOEN:
|
enum/OPAINTOEN:
|
||||||
bit_size: 1
|
bit_size: 1
|
||||||
variants:
|
variants:
|
||||||
- name: OutputPin
|
- name: OutputPin
|
||||||
@ -157,7 +156,7 @@ enum/OPAMP_CSR_OPAINTOEN:
|
|||||||
- name: ADCChannel
|
- name: ADCChannel
|
||||||
description: Output is connected internally to ADC channel
|
description: Output is connected internally to ADC channel
|
||||||
value: 1
|
value: 1
|
||||||
enum/OPAMP_CSR_PGA_GAIN:
|
enum/PGA_GAIN:
|
||||||
bit_size: 5
|
bit_size: 5
|
||||||
variants:
|
variants:
|
||||||
- name: Gain2
|
- name: Gain2
|
||||||
@ -232,7 +231,7 @@ enum/OPAMP_CSR_PGA_GAIN:
|
|||||||
- name: Gain64_InputVINM0FilteringVINM1
|
- name: Gain64_InputVINM0FilteringVINM1
|
||||||
description: Gain 64, input/bias connected to VINM0 with filtering on VINM1 or inverting gain
|
description: Gain 64, input/bias connected to VINM0 with filtering on VINM1 or inverting gain
|
||||||
value: 29
|
value: 29
|
||||||
enum/OPAMP_CSR_USERTRIM:
|
enum/USERTRIM:
|
||||||
bit_size: 1
|
bit_size: 1
|
||||||
variants:
|
variants:
|
||||||
- name: Factory
|
- name: Factory
|
||||||
@ -241,7 +240,7 @@ enum/OPAMP_CSR_USERTRIM:
|
|||||||
- name: User
|
- name: User
|
||||||
description: User trim used
|
description: User trim used
|
||||||
value: 1
|
value: 1
|
||||||
enum/OPAMP_CSR_VM_SEL:
|
enum/VM_SEL:
|
||||||
bit_size: 2
|
bit_size: 2
|
||||||
variants:
|
variants:
|
||||||
- name: VINM0
|
- name: VINM0
|
||||||
@ -256,7 +255,7 @@ enum/OPAMP_CSR_VM_SEL:
|
|||||||
- name: Output
|
- name: Output
|
||||||
description: OpAmp output connected to VINM (Follower mode)
|
description: OpAmp output connected to VINM (Follower mode)
|
||||||
value: 3
|
value: 3
|
||||||
enum/OPAMP_CSR_VP_SEL:
|
enum/VPS_SEL:
|
||||||
bit_size: 2
|
bit_size: 2
|
||||||
variants:
|
variants:
|
||||||
- name: VINP0
|
- name: VINP0
|
||||||
@ -271,16 +270,7 @@ enum/OPAMP_CSR_VP_SEL:
|
|||||||
- name: DAC3_CH1
|
- name: DAC3_CH1
|
||||||
description: DAC3_CH1 connected to VINP input
|
description: DAC3_CH1 connected to VINP input
|
||||||
value: 3
|
value: 3
|
||||||
enum/OPAMP_TCMR_LOCK:
|
enum/VP_SEL:
|
||||||
bit_size: 1
|
|
||||||
variants:
|
|
||||||
- name: ReadWrite
|
|
||||||
description: TCMR is read-write
|
|
||||||
value: 0
|
|
||||||
- name: ReadOnly
|
|
||||||
description: TCMR is read-only, can only be cleared by system reset
|
|
||||||
value: 1
|
|
||||||
enum/OPAMP_TCMR_VPS_SEL:
|
|
||||||
bit_size: 2
|
bit_size: 2
|
||||||
variants:
|
variants:
|
||||||
- name: VINP0
|
- name: VINP0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user