//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等。