关于stm32单片机与上位机串口通讯的论文介绍,可以总体了解一下吧
上传时间: 2014-01-19
上传用户:qw12
STM32 Tinyos资料 CC2520芯片驱动
标签: TinyOS-driver 2520 STM 32
上传时间: 2013-11-08
上传用户:libinxny
ADI16480和16405惯导模块原理图 STM32单片机驱动模块原理图
上传时间: 2013-11-03
上传用户:gy592333
TLC2543是TI公司的12位串行模数转换器,使用开关电容逐次逼近技术完成A/D转换过程。由于是串行输入结构,能够节省51系列单片机I/O资源;且价格适中,分辨率较高,因此在仪器仪表中有较为广泛的应用。 TLC2543的特点 (1)12位分辩率A/D转换器; (2)在工作温度范围内10μs转换时间; (3)11个模拟输入通道; (4)3路内置自测试方式; (5)采样率为66kbps; (6)线性误差±1LSBmax; (7)有转换结束输出EOC; (8)具有单、双极性输出; (9)可编程的MSB或LSB前导; (10)可编程输出数据长度。 TLC2543的引脚排列及说明 TLC2543有两种封装形式:DB、DW或N封装以及FN封装,这两种封装的引脚排列如图1,引脚说明见表1 TLC2543电路图和程序欣赏 #include<reg52.h> #include<intrins.h> #define uchar unsigned char #define uint unsigned int sbit clock=P1^0; sbit d_in=P1^1; sbit d_out=P1^2; sbit _cs=P1^3; uchar a1,b1,c1,d1; float sum,sum1; double sum_final1; double sum_final; uchar duan[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f}; uchar wei[]={0xf7,0xfb,0xfd,0xfe}; void delay(unsigned char b) //50us { unsigned char a; for(;b>0;b--) for(a=22;a>0;a--); } void display(uchar a,uchar b,uchar c,uchar d) { P0=duan[a]|0x80; P2=wei[0]; delay(5); P2=0xff; P0=duan[b]; P2=wei[1]; delay(5); P2=0xff; P0=duan[c]; P2=wei[2]; delay(5); P2=0xff; P0=duan[d]; P2=wei[3]; delay(5); P2=0xff; } uint read(uchar port) { uchar i,al=0,ah=0; unsigned long ad; clock=0; _cs=0; port<<=4; for(i=0;i<4;i++) { d_in=port&0x80; clock=1; clock=0; port<<=1; } d_in=0; for(i=0;i<8;i++) { clock=1; clock=0; } _cs=1; delay(5); _cs=0; for(i=0;i<4;i++) { clock=1; ah<<=1; if(d_out)ah|=0x01; clock=0; } for(i=0;i<8;i++) { clock=1; al<<=1; if(d_out) al|=0x01; clock=0; } _cs=1; ad=(uint)ah; ad<<=8; ad|=al; return(ad); } void main() { uchar j; sum=0;sum1=0; sum_final=0; sum_final1=0; while(1) { for(j=0;j<128;j++) { sum1+=read(1); display(a1,b1,c1,d1); } sum=sum1/128; sum1=0; sum_final1=(sum/4095)*5; sum_final=sum_final1*1000; a1=(int)sum_final/1000; b1=(int)sum_final%1000/100; c1=(int)sum_final%1000%100/10; d1=(int)sum_final%10; display(a1,b1,c1,d1); } }
上传时间: 2013-11-19
上传用户:shen1230
#include<iom16v.h> #include<macros.h> #define uint unsigned int #define uchar unsigned char uint a,b,c,d=0; void delay(c) { for for(a=0;a<c;a++) for(b=0;b<12;b++); }; uchar tab[]={ 0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,
上传时间: 2013-10-21
上传用户:13788529953
覆盖8位至32位的统一结构的单片机。 Panasonic(松下)AM1(MN101)和AM3(MN103)系列单片机,对机器驱动用软件和系统需求进行分析,基于全新的概念开发而成。是一种对8位和32位采用统一结构,面向C语言,同时实现经济性和高速性的,高性能,低功耗的单片机。 Panasonic系列单片机做为高性能嵌入式控制器和多媒体装置的关键器件,在同一开发环境中开发,广泛应用于诸多领域。
上传时间: 2013-11-15
上传用户:daoyue
C8051F020单片机通过SPI接口驱动四线电阻式触摸屏控制器TSC2046,利用中断方式驱动TSC2046设计软件。介绍了触摸屏的工作原理、TSC2046工作方式以及典型应用电路。 Abstract: The C8051F020 MCU is connected with the TSC2046 which is a 4-wire touch screen controller. The TSC2046 is controlled by interrupt mode, the? operation principle of touch screen is introduced. The operation mode of TSC2046 and typical application circuit are also discussed.
上传时间: 2014-12-27
上传用户:hwl453472107
74HC595 芯片是74 系列芯片的一种, 具有速度快、功耗小、操作简单的特点, 可以很方便地用于单片机接口进行驱动LED 的操作。本文介绍这种芯片的特点和使用方法, 并给出软硬件的设计实例。
上传时间: 2013-11-18
上传用户:ynsnjs
AY0438 是Microchip 公司生产的32 段CMOS LCD 驱动器,它结构简单,使用方便。可在单片机的控制下直接驱动 LCD 显示模块。文中介绍了AY0438 的引脚功能和电气参数。给出了AY0438 在PIC16C71 单片机的控制下驱动LCD 显示模块的实际应用电路及程序。
上传时间: 2013-11-19
上传用户:whymatalab
介绍了基于单片机的步进电机细分技术,提出了基于AT89C51单片机控制均匀细分驱动方案及实现方法。
上传时间: 2013-12-23
上传用户:flg0001