8359| 4
|
STM8L系列ADC1设置使用 |
13金钱
最佳答案#include "IOSTM8L152K4.h"
#include "stdint.h"
#include "stdio.h"
#include "string.h"
unsigned int ADvalue;
void delay(unsigned int ms){
unsigned int x,y;
for(x=ms;x>0;x--)
for(y=2000;y>0;y--);
}
void usart1_init(unsigned int baud){
unsigned int Baudrate;
CLK_PCKENR1_bit.PCKEN15 = 1; //先使能USART1模块的时钟
Baudrate = 16000000/baud;
USART1_BRR2 = (unsigne ...
| ||
nicboy 该用户已被删除
|
提示: 作者被禁止或删除 内容自动屏蔽
|
| ||
| ||
| ||
|手机版|OpenEdv-开源电子网
( 粤ICP备12000418号-1 )
GMT+8, 2025-2-23 10:38
Powered by OpenEdv-开源电子网
© 2001-2030 OpenEdv-开源电子网