diff --git a/data/registers/opamp_h7.yaml b/data/registers/opamp_h7.yaml new file mode 100644 index 0000000..a3af33a --- /dev/null +++ b/data/registers/opamp_h7.yaml @@ -0,0 +1,161 @@ +block/OPAMP: + description: Operational amplifiers. + items: + - name: OPAMP1_CSR + description: OPAMP1 control/status register. + byte_offset: 0 + fieldset: OPAMP1_CSR + - name: OPAMP1_OTR + description: OPAMP1 offset trimming register in normal mode. + byte_offset: 4 + fieldset: OPAMP1_OTR + - name: OPAMP1_HSOTR + description: OPAMP1 offset trimming register in low-power mode. + byte_offset: 8 + fieldset: OPAMP1_HSOTR + - name: OPAMP2_CSR + description: OPAMP2 control/status register. + byte_offset: 16 + fieldset: OPAMP2_CSR + - name: OPAMP2_OTR + description: OPAMP2 offset trimming register in normal mode. + byte_offset: 20 + fieldset: OPAMP2_OTR + - name: OPAMP2_HSOTR + description: OPAMP2 offset trimming register in low-power mode. + byte_offset: 24 + fieldset: OPAMP2_HSOTR +fieldset/OPAMP1_CSR: + description: OPAMP1 control/status register. + fields: + - name: OPAEN + description: Operational amplifier Enable. + bit_offset: 0 + bit_size: 1 + - name: FORCE_VP + description: Force internal reference on VP (reserved for test. + bit_offset: 1 + bit_size: 1 + - name: VP_SEL + description: Operational amplifier PGA mode. + bit_offset: 2 + bit_size: 2 + - name: VM_SEL + description: Inverting input selection. + bit_offset: 5 + bit_size: 2 + - name: OPAHSM + description: Operational amplifier high-speed mode. + bit_offset: 8 + bit_size: 1 + - name: CALON + description: Calibration mode enabled. + bit_offset: 11 + bit_size: 1 + - name: CALSEL + description: Calibration selection. + bit_offset: 12 + bit_size: 2 + - name: PGA_GAIN + description: allows to switch from AOP offset trimmed values to AOP offset. + bit_offset: 14 + bit_size: 4 + - name: USERTRIM + description: User trimming enable. + bit_offset: 18 + bit_size: 1 + - name: TSTREF + description: OPAMP calibration reference voltage output control (reserved for test). + bit_offset: 29 + bit_size: 1 + - name: CALOUT + description: Operational amplifier calibration output. + bit_offset: 30 + bit_size: 1 +fieldset/OPAMP1_HSOTR: + description: OPAMP1 offset trimming register in low-power mode. + fields: + - name: TRIMLPOFFSETN + description: Trim for NMOS differential pairs. + bit_offset: 0 + bit_size: 5 + - name: TRIMLPOFFSETP + description: Trim for PMOS differential pairs. + bit_offset: 8 + bit_size: 5 +fieldset/OPAMP1_OTR: + description: OPAMP1 offset trimming register in normal mode. + fields: + - name: TRIMOFFSETN + description: Trim for NMOS differential pairs. + bit_offset: 0 + bit_size: 5 + - name: TRIMOFFSETP + description: Trim for PMOS differential pairs. + bit_offset: 8 + bit_size: 5 +fieldset/OPAMP2_CSR: + description: OPAMP2 control/status register. + fields: + - name: OPAEN + description: Operational amplifier Enable. + bit_offset: 0 + bit_size: 1 + - name: FORCE_VP + description: Force internal reference on VP (reserved for test). + bit_offset: 1 + bit_size: 1 + - name: VM_SEL + description: Inverting input selection. + bit_offset: 5 + bit_size: 2 + - name: OPAHSM + description: Operational amplifier high-speed mode. + bit_offset: 8 + bit_size: 1 + - name: CALON + description: Calibration mode enabled. + bit_offset: 11 + bit_size: 1 + - name: CALSEL + description: Calibration selection. + bit_offset: 12 + bit_size: 2 + - name: PGA_GAIN + description: Operational amplifier Programmable amplifier gain value. + bit_offset: 14 + bit_size: 4 + - name: USERTRIM + description: User trimming enable. + bit_offset: 18 + bit_size: 1 + - name: TSTREF + description: OPAMP calibration reference voltage output control (reserved for test). + bit_offset: 29 + bit_size: 1 + - name: CALOUT + description: Operational amplifier calibration output. + bit_offset: 30 + bit_size: 1 +fieldset/OPAMP2_HSOTR: + description: OPAMP2 offset trimming register in low-power mode. + fields: + - name: TRIMLPOFFSETN + description: Trim for NMOS differential pairs. + bit_offset: 0 + bit_size: 5 + - name: TRIMLPOFFSETP + description: Trim for PMOS differential pairs. + bit_offset: 8 + bit_size: 5 +fieldset/OPAMP2_OTR: + description: OPAMP2 offset trimming register in normal mode. + fields: + - name: TRIMOFFSETN + description: Trim for NMOS differential pairs. + bit_offset: 0 + bit_size: 5 + - name: TRIMOFFSETP + description: Trim for PMOS differential pairs. + bit_offset: 8 + bit_size: 5