- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please provide an example to calibrate the trim and slope values for the comparator in a PSoC 6
I was not able to find any examples or better documentation for how to do this.
Additionally please provide more detail on the functions:
- Cy_CTB_OpampGetOffset
- Cy_CTB_OpampGetSlope
- Cy_CTB_OpampSetOffset
- Cy_CTB_OpampSetSlope
And these functions that manipulate the registers:
- CTBM_OA1_OFFSET_TRIM
- CTBM_OA1_SLOPE_OFFSET_TRIM
The register locations appear to be 6-bit numbers with the MSB being a direction bit.
It isn’t clear how the direction bit is being used, i.e. is it a sign bit or something else.
Any examples related to this would be helpful.
Greg
P.S. I found partial description of the registers, “CTBM0_OA0_OFFSET_TRIM”, in the PSoC 6 Registers TRM. Similar descriptions are in the Architecture TRM.
Both TRMs (Technical Reference Manuals) are located under the “PSoC 6 Documentation” section @ https://www.infineon.com/cms/en/product/microcontroller/32-bit-psoc-arm-cortex-microcontroller/psoc-...
Solved! Go to Solution.
- Labels:
-
PSoC 6 MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Please see the pdl documentation with pseudo code for reference. Hope this is helpful.
https://infineon.github.io/psoc6pdl/pdl_api_reference_manual/html/group__group__ctb__functions__trim...
Best Regards,
Vasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Please see the pdl documentation with pseudo code for reference. Hope this is helpful.
https://infineon.github.io/psoc6pdl/pdl_api_reference_manual/html/group__group__ctb__functions__trim...
Best Regards,
Vasanth