1 Reply Latest reply on Jul 28, 2020 4:20 AM by AbhilashP_31



      in  CCG3 Registers Technical Reference Manual (TRM).pdf 


      i want read SAR_OUT [23:16]     value   ADC1 and ADC2  it is possible ?  


      on CY4532  exk   in vbus_is_present function   add  follwing code


          #define ADC_SAR_OUT                 0x0FF00000

          #define ADD_USBPD_ADC1_SAR_CTRL     0x400A01A0 or  ADD_USBPD_ADC1_SAR_CTRL     0x400A01A8

          uint32_t usbpd_adc1_sar_out;


          usbpd_adc1_sar_out = *(__IO uint32_t*) (ADD_USBPD_ADC1_SAR_CTRL)&ADC_SAR_OUT;



      i get  zero   expected  to receive  5v  or  any request from device to be charged  any advice ?

        • 1. Re: API  read USBPD_ADC2_SAR_CTRL/USBPD_ADC1_SAR_CTRL register ?

          Hii zapa_4702046


                    Can you confirm like which board you are working on exactly to access the Vbus voltage value??

          Since CY4532 is not CCG3 and the register values which you have mentioned is for CCG3 and not CY4532.


          You are referring TRM of CCG3 to access registers of CCG3PA.

          TRM of CY4532 which is a CCG3PA is not available on the web. You need to contact local sales for the same.


          And can I know why you want to read the register values?


          You can use pd_adc_sample () which has the same implementation.

          And you can obtain the measured value directly from the API.




          Abhilash P

          1 of 1 people found this helpful