This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Can the AIN0~AIN7 work independantly?

Can I config AIN0 and AIN7 as the input pins of ADC, and config P0.01 and P0.02 as TWI, and config P0.03 and P0.04 as GPIO?

Or I must config ALL AIN PINS as ADC?

Parents
  • Hi

    There should be no conflicts if you configure your peripherals to the different pins. You can configure the ADC to AIN0 (P0.26) and AIN7 (P0.06), and the ADC will use those pins as long as you have the ADC enabled, and occupy no other pins. When you disable the ADC it will no longer use the configured pins. The other AIN pins should not be affected when they are not configured by the ADC or the LPCOMP peripherals, you can use them freely for GPIO, TWI, etc.

Reply
  • Hi

    There should be no conflicts if you configure your peripherals to the different pins. You can configure the ADC to AIN0 (P0.26) and AIN7 (P0.06), and the ADC will use those pins as long as you have the ADC enabled, and occupy no other pins. When you disable the ADC it will no longer use the configured pins. The other AIN pins should not be affected when they are not configured by the ADC or the LPCOMP peripherals, you can use them freely for GPIO, TWI, etc.

Children
Related