87 lines
2.1 KiB
YAML
87 lines
2.1 KiB
YAML
block/COMP:
|
|
description: Comparator v2. (RM0440 24)
|
|
items:
|
|
- name: CSR
|
|
description: Comparator control and status register.
|
|
byte_offset: 0
|
|
fieldset: CSR
|
|
fieldset/CSR:
|
|
description: Comparator control and status register.
|
|
fields:
|
|
- name: EN
|
|
description: COMP enable bit.
|
|
bit_offset: 0
|
|
bit_size: 1
|
|
- name: INMSEL
|
|
description: Comparator signal selector for inverting input INM. (RM0440 24.3.2 Table 197)
|
|
bit_offset: 4
|
|
bit_size: 3
|
|
- name: INPSEL
|
|
description: Comparator signal selector for non-inverting input INP. (RM0440 24.3.2 Table 196)
|
|
bit_offset: 8
|
|
bit_size: 1
|
|
- name: POLARITY
|
|
description: Comparator polarity selector.
|
|
bit_offset: 15
|
|
bit_size: 1
|
|
enum: POLARITY
|
|
- name: HYST
|
|
description: Comparator hysteresis selector.
|
|
bit_offset: 16
|
|
bit_size: 3
|
|
enum: HYST
|
|
- name: BLANKSEL
|
|
description: Comparator blanking source selector. (RM0440 24.3.6 Table 198)
|
|
bit_offset: 19
|
|
bit_size: 3
|
|
- name: BRGEN
|
|
description: Vrefint resistor bridge enable. (RM0440 24.6)
|
|
bit_offset: 22
|
|
bit_size: 1
|
|
- name: SCALEN
|
|
description: Vrefint scaled input enable. (RM0440 24.6)
|
|
bit_offset: 23
|
|
bit_size: 1
|
|
- name: VALUE_DO_NOT_SET
|
|
description: Comparator output status. (READ ONLY)
|
|
bit_offset: 30
|
|
bit_size: 1
|
|
- name: LOCK
|
|
description: CSR register lock.
|
|
bit_offset: 31
|
|
bit_size: 1
|
|
enum/POLARITY:
|
|
bit_size: 1
|
|
variants:
|
|
- name: NonInverted
|
|
description: Non-inverted polarity
|
|
value: 0
|
|
- name: Inverted
|
|
description: Inverted polarity
|
|
value: 1
|
|
enum/HYST:
|
|
bit_size: 3
|
|
variants:
|
|
- name: None
|
|
value: 0
|
|
- name: Hyst10m
|
|
description: 10mV hysteresis
|
|
value: 1
|
|
- name: Hyst20m
|
|
description: 20mV hysteresis
|
|
value: 2
|
|
- name: Hyst30m
|
|
description: 30mV hysteresis
|
|
value: 3
|
|
- name: Hyst40m
|
|
description: 40mV hysteresis
|
|
value: 4
|
|
- name: Hyst50m
|
|
description: 50mV hysteresis
|
|
value: 5
|
|
- name: Hyst60m
|
|
description: 60mV hysteresis
|
|
value: 6
|
|
- name: Hyst70m
|
|
description: 70mV hysteresis
|
|
value: 7 |