电子开发
文章平均质量分 79
Firekisser
业界小学生
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
51单片机电子琴C代码
#include #include #include #include #include #define uchar unsigned char typedef unsigned char uint8; // 无符号8位整型变量 typedef signed char int8; // 有符号8位整型变量 ty原创 2015-10-30 18:57:42 · 13375 阅读 · 2 评论 -
51单片机-播放天空之城
#include //包含51单片机寄存器定义的头文件 sbit sound=P3^7; //将sound位定义为P3.7 unsigned int C; //储存定时器的定时常数 //以下是C调低音的音频宏定义 #define L1 262 //将"L1"宏定义为低音"1"的频率262Hz 时间是1/262=3826/2 us 取半周期 #define L2 286原创 2015-10-30 18:57:45 · 5217 阅读 · 2 评论 -
基于STM32神舟系列开发板的读取绝…
#include "stm32f10x.h" #include "stm32f10x_usart.h" #include #include #include #define CMD_BUFFER_LEN 100 GPIO_InitTypeDef GPIO_InitStructure; void Delay(__IO uint32_t nCount) { for(; nCount != 0;原创 2015-10-30 18:57:47 · 854 阅读 · 0 评论 -
FTM的PWM、输入捕获、正交解码
Posted on 2013 年 11 月 18 日 by lpldcn FTM是一个神奇的模块,他能输出PWM,能输入捕获,能输出比较还能正交解码。英文全称是FlexTimer Module,你可以理解为高级定时器模块、易用定时器模块等等。不仅仅在Kinetis 32位处理器中,FTM是个常用的模块,在飞思卡尔的8位处理器中,他也是个常用的模块,只不过名字叫TPM。FTM会用了,飞思卡尔的其原创 2015-10-30 18:58:36 · 8322 阅读 · 5 评论 -
基于STM32神舟系列开发板的串口通…
#include "stm32f10x.h" #include "stm32f10x_usart.h" void RCC_Config(void); void GPIO_Config(void); void USART_Config(void); void Put_String(u8 *p); int main() { RCC_Config();//配置时钟 GPIO_Config();/原创 2015-10-30 18:57:50 · 835 阅读 · 0 评论 -
STM32流水灯,小畅当初弄的小儿科…
#include "stm32f10x.h" GPIO_InitTypeDef GPIO_InitStructure; void Delay(__IO uint32_t nCount); int main(void) { RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOF, ENABLE); GPIO_InitStructure.GPIO_原创 2015-10-30 18:57:53 · 1320 阅读 · 0 评论
分享