//Initialize the ADC12_A Module
/*
* Base address of ADC12_A Module
* Use internal ADC12_A bit as sample/hold signal to start conversion
* USE MODOSC 5MHZ Digital Oscillator as clock source
* Use default clock divider of 1
*/从下面开始就有点懵了,有些知道是干什么的但是不知道具体是怎么执行的
ADC12_A_init(ADC12_A_BASE,
ADC12_A_SAMPLEHOLDSOURCE_SC,
ADC12_A_CLOCKSOURCE_ADC12OSC,
ADC12_A_CLOCKDIVIDER_1);
ADC12_A_enable(ADC12_A_BASE);
/*
* Base address of ADC12_A Module
* For memory buffers 0-7 sample/hold for 256 clock cycles
* For memory buffers 8-15 sample/hold for 4 clock cycles (default)
* Enable Multiple Sampling
*/
ADC12_A_setupSamplingTimer(ADC12_A_BASE,
ADC12_A_CYCLEHOLD_256_CYCLES,
ADC12_A_CYCLEHOLD_4_CYCLES,
ADC12_A_MULTIPLESAMPLESENABLE);
//Configure Memory Buffer
/*
* Base address of the ADC12_A Module
* Configure memory buffer 0
* Map input A0 to memory buffer 0
* Vref+ = AVcc
* Vref- = AVss
* Memory buffer 0 is not the end of a sequence
*/
ADC12_A_configureMemoryParam param = {0}; 作者: P-CBG 时间: 2021-11-6 12:32
希望大佬们能详细点,球球了~作者: 11111ai 时间: 2023-6-1 21:33
ADC初始化作者: liyonghua111 时间: 2023-7-31 12:35
MSP430F5529的库函数开发手册或者指南,你可以在TI的官方网站上找到。这个库函数是由TI提供的,用于简化MSP430系列微控制器的编程。这个库包含了一系列的函数,可以用来配置和操作MSP430的各种硬件模块,比如GPIO、ADC、Timer等。