Is there an API available to get Voltage of PSOC 6 withou ADC?
Solved! Go to Solution.
You will not be able to get the PSoC 6 voltage supply, however, you can use the Low-Voltage-Detect (LVD) APIs to setup a threshold to trigger an interrupt when the PSoC 6 voltage supply drops to a certain threshold.
Refer to the PDL API Reference > LVD (Low-Voltage-Detect) section.
I'd like to know if you refer to get voltage of PSoC6 power supply (VDDD/VDDA)?
If it gets your point, there seems be no available API for getting the values. However, you can get the current LDO/BUCK output level through APIs defined in PDL.
thank,please tell me the API name
Please find below APIs in PDL (cy_syspm.h) -
Cy_SysPm_LdoGetVoltage() / Cy_SysPm_BuckGetVoltage1() / Cy_SysPm_BuckGetVoltage2()
thank you so much
You will not be able to get the PSoC 6 voltage supply, however, you can use the Low-Voltage-Detect (LVD) APIs to setup a threshold to trigger an interrupt when the PSoC 6 voltage supply drops to a certain threshold.
Refer to the PDL API Reference > LVD (Low-Voltage-Detect) section.