Announcements

Learn how to optimise USB-C for your designs at 18 May's USB-C PD Webinar.
Click here to register.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

Ivan_Lee
Level 5
Level 5
5 likes given 100 sign-ins First like received

Not all of CYPD4126 pin can be a ADC input, correct?

which pin can be ADC input, can you list it ?

1 Solution
Sananya_14
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hello,

The default firmware in the host SDK does not support ADC measuring GPIOs after P2.3. Hence you are able to sample P1.5 but not P2.7.

Best Regards,

Sananya

View solution in original post

0 Likes
4 Replies
Ivan_Lee
Level 5
Level 5
5 likes given 100 sign-ins First like received

I use the same code to test two pins - P1.5 and P2.7

if adc input is P1.5, the CCG4 can get the ADC sampling value .

if adc input is P2.7, the CCG4 can't get the ADC sampling value

0 Likes
Sananya_14
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hello,

All pins which are designated as a GPIO in the datasheet can be used as an ADC input.

-Please let us know which project and SDK version you are using?

-Please also let us know your hardware setup? (DVK/custom board)

Best Regards,

Sananya

0 Likes

1. custom board

2. Host SDK.Version 3.3.1

0 Likes
Sananya_14
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hello,

The default firmware in the host SDK does not support ADC measuring GPIOs after P2.3. Hence you are able to sample P1.5 but not P2.7.

Best Regards,

Sananya

0 Likes