These are advanced functions for trimming the offset and slope of the opamps.
Most users do not need to call these functions and can use the factory trimmed values.
◆ Cy_CTB_OpampSetOffset()
Override the CTB opamp offset factory trim.
The trim is a six bit value and the MSB is a direction bit.
Bit 5 | Bits 4:0 | Note |
0 | 00000 | Negative trim direction - minimum setting |
0 | 11111 | Negative trim direction - maximum setting |
1 | 00000 | Positive trim direction - minimum setting |
1 | 11111 | Positive trim direction - maximum setting |
- Parameters
-
- Returns
- None
- Function Usage
uint8_t trim;
for (trim = 0u; trim <= 0x3F; trim++)
{
}
◆ Cy_CTB_OpampGetOffset()
Return the current CTB opamp offset trim value.
- Parameters
-
- Returns
- Offset trim value
- Function Usage
◆ Cy_CTB_OpampSetSlope()
Override the CTB opamp slope factory trim.
The offset of the opamp will vary across temperature. This trim compensates for the slope of the offset across temperature. This compensation uses a bias current from the Analog Reference block. To disable it, set the trim to 0.
The trim is a six bit value and the MSB is a direction bit.
Bit 5 | Bits 4:0 | Note |
0 | 00000 | Negative trim direction - minimum setting |
0 | 11111 | Negative trim direction - maximum setting |
1 | 00000 | Positive trim direction - minimum setting |
1 | 11111 | Positive trim direction - maximum setting |
- Parameters
-
- Returns
- None
- Function Usage
uint8_t trim;
for (trim = 0u; trim <= 0x3F; trim++)
{
}
◆ Cy_CTB_OpampGetSlope()
Return the CTB opamp slope trim value.
- Parameters
-
- Returns
- Slope trim value
- Function Usage