用Atmel start 生成了ADC工程,在主函数中添加都ADC ,单步调试发现程序死在这个位置,请教下,问题出在哪?
主函数:#include <atmel_start.h>
int main(void)
{ uint8_t buffer_ch3[2];
/* Initializes MCU, drivers and middleware */
atmel_start_init();
/* Replace with your application code */
while (1) {
adc_sync_read_channel(&ADC_0, CONF_ADC_0_CHANNEL_3, buffer_ch3, 2);
uint16_t adcccc1 =*((uint16_t *)CONF_ADC_0_CHANNEL_3);
delay_ms(500);
}
}
程序死在位置:
|