Location:
Search - adc0
Search list
Description: 飞思卡尔 KL25 ADC例程
1. 工程概述
(1)本工程为KL25微控制器无操作系统应用工程,ADC样例程序
(2)使用串口与外界通信,使用串口1,波特率为9600,1位停止位,无校验
2. 软件环境
(1)CodeWarrior v10.2/v10.3/10.5
3. 硬件环境
(1)KL25 SD13-01 EVB板
(2)兰灯对应引脚为PTB9,红灯对应引脚为PTB19,绿灯对应引脚为PTB18
(3)串口发送引脚为PTE0,接收引脚为PTE1
(4)ADC0通道14为引脚PTC0,连接外部电压0~3.3V
4. 实验现象
(1)程序启动时串口发送This is ADC Test!,同时灯闪烁
(2)红灯/蓝灯交替闪烁
(3)根据PTC0的输入电压,串口输出范围00_00 ~ 03_-KL25 ADC
Platform: |
Size: 488448 |
Author: wangsan |
Hits:
Description: 将CC16和CC24构成一组寄存器,CC16为比较模式1,用于控制占空比。
ADC0的通道0采集电位计两端的电压作为CC16的比较值,在CC16的下降沿出发转换。
设置CC24位比较模式0,b并使能双寄存器模式,用于控制PWM的周期,其中CC24的比较值为固定值。-The CC16 and CC24 constitute a set of registers, CC16 compare mode 1 for controlling the duty cycle. ADC0 channel 0 capture voltage across the potentiometer as a comparative value of CC16, CC16 falling in starting the conversion. Setting CC24 Bit Compare mode 0, b and enable dual mode register for controlling the PWM cycle, the more value is a fixed value of CC24.
Platform: |
Size: 418816 |
Author: 郑洲 |
Hits:
Description: SmartCortex M3-1788 中的ADC程序-SmartCortex M3-1788 ADC
Platform: |
Size: 52224 |
Author: linlin |
Hits:
Description: MSP430
ADC0通道采集电压并显示到1602显示屏上 ADC 输入为 P60 管脚-MSP430
ADC0 voltage acquisition channels and displayed on the display screen 1602 ADC input pins P60
Platform: |
Size: 53248 |
Author: 崔利 |
Hits:
Description: ADC0通道采集电压以波形形式显示到2.8寸TFT触摸液晶屏上,ADC输入管脚为60管脚(ADC0 channel acquisition voltage to waveform display to the 2.8-inch TFT touch LCD screen, ADC input pin for the 60-pin)
Platform: |
Size: 130048 |
Author: kofirst
|
Hits:
Description: ADC实例,用于模拟量采样实例,内部REF(The system is clocked by the internal 24.5 MHz oscillator divided by 1.
// Timer 2 triggers a conversion on ADC0 on each overflow. The completion of
// this conversionin turn triggers an interrupt service routine (ISR). The ISR
// averages 2048 measurements, then prints the value to the terminal via printf
// before starting another average cycle.
//
// The analog multiplexer selects P1.7 (ADC0.15) as the positive ADC0 input.
// This pin is configured as an analog input in the port initialization
// routine. The negative ADC0 input is connected via mux to ground, which
// provides for a single-ended ADC input.)
Platform: |
Size: 7168 |
Author: Redcell
|
Hits:
Description: 实现C8051F410单片机的ADC功能,方便大家使用(The realization of the ADC function of C8051F410 single chip is convenient for everyone to use)
Platform: |
Size: 53248 |
Author: 鑫哥鑫哥666 |
Hits: