Bitcloud with ATMega128RFA1 - HAL and ADC

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello,

I am going through the BitCloud documentation and source for the Atmega128RFA1. My design requires the use of all 8 ADC channels of the chip, however it looks like BitCloud supports only channels 0 - 3:

HAL_AdcChannelNumber_t {
HAL_ADC_CHANNEL0 = 0,
HAL_ADC_CHANNEL1 = 1,
HAL_ADC_CHANNEL2 = 2,
HAL_ADC_CHANNEL3 = 3,
HAL_ADC_DIFF_CHANNEL0 = 8,
HAL_ADC_DIFF_CHANNEL1 = 9,
HAL_ADC_DIFF_CHANNEL2 = 10,
HAL_ADC_DIFF_CHANNEL3 = 11,
HAL_ADC_DIFF_CHANNEL4 = 12,
HAL_ADC_DIFF_CHANNEL5 = 13,
HAL_ADC_DIFF_CHANNEL6 = 14,
HAL_ADC_DIFF_CHANNEL7 = 15
}

Has anyone gotten around this issue or am I interpreting this incorrectly? Anybody know why the HAL functions support only four channels?? I want to avoid editing their stack source. Also, the sampling rate options are limited. Thanks in advance!

Last Edited: Fri. Oct 16, 2015 - 02:23 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Forget BitCloud ADC API and use direct registers access.

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.