4 posts / 0 new
Last post
yterasaki
Offline
Last seen:4 years 7 months ago
Joined:2015-05-08 09:28
pin confuguration for ADC

Hello,

I'm working with DA14580 to capture P01(port0/pin1) by ADC. Relating to this, I found that it works well when I configure
GP_ADC_CTRL_REG[9:6] GP_ADC_SEL = 0001b = P01 without configuring the register of P01_MODE_REG.

Could you tell me if above register control is correct for ADC and how these two registers work mutually.

Best Regards,

Device:
MT_dialog
Offline
Last seen:2 months 3 days ago
Staff
Joined:2015-06-08 11:34
Hi yterasaki,

Hi yterasaki,

在数据表(表211)提到,在ADCmode the configuration inP01_MODE_REGregister is don't care. You dont have to configure P01_MODE_REG in order to work with the ADC.

Thanks MT_dialog

yterasaki
Offline
Last seen:4 years 7 months ago
Joined:2015-05-08 09:28
Thanks Dialog staff,

Thanks Dialog staff,

So, the descirption of "In ADC mode, these bits are don't care" are applied not only to the portion of [9:8]PUPD, but also to the [4:0] PID
portion or maybe whole this register, right?

MT_dialog
Offline
Last seen:2 months 3 days ago
Staff
Joined:2015-06-08 11:34
Hi yterasaki,

Hi yterasaki,

Sorry about the hasty answer, you meant that although you didn't set the pin configuration to PID_ADC your ADC measurements where fine. The dont care bits apply only to the portion of the bits [9:8]PUPD you have to set [4:0] in order to set the pins function. Although, i can confirm that your observation is right. I will issue a ticket to get an answer by the hardware team and let you know when we have some news on this.

Thanks MT_dialog