Description: This program demonstrates a half-duplex 9600-baud UART using // Timer_A3 using no xtal and an external resistor for DCO ROSC. DCO used for // TACLK UART baud generation. The program will wait in LPM4, echoing back // a received character using 8N1 protocol. On valid RX character, the // character is echoed back. // Using a 100k resistor on ROSC, with default DCO setting, set DCOCLK ~ 2MHz. // ACLK = n/a, MCLK = SMCLK ~2MHz DCOCLK
标签: using demonstrates Description half-duplex
上传时间: 2014-01-14
上传用户:cuiyashuo
包含贴片式晶振xtal封装,适用于Altium Desginer。
上传时间: 2022-05-27
上传用户:
通用串行接口 UART90 系列单片机带有一个全双工的通用串行异步收发器UART 主要特征如下1 波特率发生器可以生成多种波特率2 在xtal 低频率下仍可产生较高的波特率3 8 位和9 位数据4 噪声滤波5 过速的检测6 帧错误检测7 错误起始位的检测8 三个独立的中断发送TX 完成发送数据寄存器空接收RX 完成
上传时间: 2014-12-27
上传用户:yulg
串行编程器源程序(Keil C语言)//FID=01:AT89C2051系列编程器//实现编程的读,写,擦等细节//AT89C2051的特殊处:给xtal一个脉冲,地址计数加1;P1的引脚排列与AT89C51相反,需要用函数转换#include <e51pro.h> #define C2051_P3_7 P1_0#define C2051_P1 P0//注意引脚排列相反#define C2051_P3_0 P1_1#define C2051_P3_1 P1_2#define C2051_xtal P1_4#define C2051_P3_2 P1_5#define C2051_P3_3 P1_6#define C2051_P3_4 P1_7#define C2051_P3_5 P3_5 void InitPro01()//编程前的准备工作{ SetVpp0V(); P0=0xff; P1=0xff; C2051_P3_5=1; C2051_xtal=0; Delay_ms(20); nAddress=0x0000; SetVpp5V();} void ProOver01()//编程结束后的工作,设置合适的引脚电平{ SetVpp5V(); P0=0xff; P1=0xff; C2051_P3_5=1; C2051_xtal=1;} BYTE GetData()//从P0口获得数据{ B_0=P0_7; B_1=P0_6; B_2=P0_5; B_3=P0_4; B_4=P0_3; B_5=P0_2; B_6=P0_1; B_7=P0_0; return B;} void SetData(BYTE DataByte)//转换并设置P0口的数据{ B=DataByte; P0_0=B_7; P0_1=B_6; P0_2=B_5; P0_3=B_4; P0_4=B_3; P0_5=B_2; P0_6=B_1; P0_7=B_0;} void ReadSign01()//读特征字{ InitPro01(); Delay_ms(1);//----------------------------------------------------------------------------- //根据器件的DataSheet,设置相应的编程控制信号 C2051_P3_3=0; C2051_P3_4=0; C2051_P3_5=0; C2051_P3_7=0; Delay_ms(20); ComBuf[2]=GetData(); C2051_xtal=1; C2051_xtal=0; Delay_us(20); ComBuf[3]=GetData(); ComBuf[4]=0xff;//----------------------------------------------------------------------------- ProOver01();} void Erase01()//擦除器件{ InitPro01();//----------------------------------------------------------------------------- //根据器件的DataSheet,设置相应的编程控制信号 C2051_P3_3=1; C2051_P3_4=0; C2051_P3_5=0; C2051_P3_7=0; Delay_ms(1); SetVpp12V(); Delay_ms(1); C2051_P3_2=0; Delay_ms(10); C2051_P3_2=1; Delay_ms(1);//----------------------------------------------------------------------------- ProOver01();} BOOL Write01(BYTE Data)//写器件{//----------------------------------------------------------------------------- //根据器件的DataSheet,设置相应的编程控制信号 //写一个单元 C2051_P3_3=0; C2051_P3_4=1; C2051_P3_5=1; C2051_P3_7=1; SetData(Data); SetVpp12V(); Delay_us(20); C2051_P3_2=0; Delay_us(20); C2051_P3_2=1; Delay_us(20); SetVpp5V(); Delay_us(20); C2051_P3_4=0; Delay_ms(2); nTimeOut=0; P0=0xff; nTimeOut=0; while(!GetData()==Data)//效验:循环读,直到读出与写入的数相同 { nTimeOut++; if(nTimeOut>1000)//超时了 { return 0; } } C2051_xtal=1; C2051_xtal=0;//一个脉冲指向下一个单元//----------------------------------------------------------------------------- return 1;} BYTE Read01()//读器件{ BYTE Data;//----------------------------------------------------------------------------- //根据器件的DataSheet,设置相应的编程控制信号 //读一个单元 C2051_P3_3=0; C2051_P3_4=0; C2051_P3_5=1; C2051_P3_7=1; Data=GetData(); C2051_xtal=1; C2051_xtal=0;//一个脉冲指向下一个单元//----------------------------------------------------------------------------- return Data;} void Lock01()//写锁定位{ InitPro01();//先设置成编程状态//----------------------------------------------------------------------------- //根据器件的DataSheet,设置相应的编程控制信号 if(ComBuf[2]>=1)//ComBuf[2]为锁定位 { C2051_P3_3=1; C2051_P3_4=1; C2051_P3_5=1; C2051_P3_7=1; Delay_us(20); SetVpp12V(); Delay_us(20); C2051_P3_2=0; Delay_us(20); C2051_P3_2=1; Delay_us(20); SetVpp5V(); } if(ComBuf[2]>=2) { C2051_P3_3=1; C2051_P3_4=1; C2051_P3_5=0; C2051_P3_7=0; Delay_us(20); SetVpp12V(); Delay_us(20); C2051_P3_2=0; Delay_us(20); C2051_P3_2=1; Delay_us(20); SetVpp5V(); }//----------------------------------------------------------------------------- ProOver01();} void PreparePro01()//设置pw中的函数指针,让主程序可以调用上面的函数{ pw.fpInitPro=InitPro01; pw.fpReadSign=ReadSign01; pw.fpErase=Erase01; pw.fpWrite=Write01; pw.fpRead=Read01; pw.fpLock=Lock01; pw.fpProOver=ProOver01;}
上传时间: 2013-11-12
上传用户:gut1234567
74HC595 A4950 MAX3232 ULN2003AD STM32F207VCT6 AD集成封装库,原理图库器件型号列表:Library Component Count : 53Name Description----------------------------------------------------------------------------------------------------1N4148 High Conductance Fast Diode1N4448 High Conductance Fast Diode1N914 High Conductance Fast Diode1N914A High Conductance Fast Diode1N914B High Conductance Fast Diode1N916 High Conductance Fast Diode1N916A High Conductance Fast Diode1N916B High Conductance Fast Diode2N3904 NPN General Purpose Amplifier74ALS86 74HC595 8M贴片晶振 A4950 直流电机驱动AO4805CAP CapacitorCAP SMD CapacitorCON2 ConnectorCON2*10 ConnectorCON2*12P ConnectorCON2*7 ConnectorCON2*9 ConnectorCON3 ConnectorCON4 ConnectorCON5 ConnectorCON7 ConnectorCap Pol 极性电解电容DIODE DiodeFUSE1 FuseFUSE2 FuseINDUCTOR2 IRF7351PbF N-MOSJS1-12V-FLED MAX487 MAX809RD R0.125 Less than 1/4 Watt Power Resistor.RES2 RGRPI*4 Res1 ResistorSGM8955XN5G/TR 测量放大器SM712 SN74LV4052AD SP3232ESST25VF016B-50-4I-S2AFI2C Real-Time Clock.STM32F107VTC6 STM32F107VTC6SW DIP-4 编码开关SW-PB SwitchTPS54302 45UA静态电流 3ATVS SMBJ30CAULN2003 XC6214xtal Crystal OscillatorPCB封装库列表:Component Count : 40Component Name-----------------------------------------------4G模块-外置7D181K0603-LED0603C0603R0805C12061210181232255569-2*1P直针5569-2*2P直针AT-26CAP-D8DO-214AANHSOP-8J-SPDT-5JTAGL
上传时间: 2021-11-15
上传用户:ttalli
STM32H750VBT6核心板 ALTIUM设计硬件原理图+PCB文件,包括完整的原理图和PCB文件,可以做为你的设计参考,PCB 2层板设计,大小85MM*56MM, 带SD,DCMI,QSPI,外扩flash,以太网,RS485,CAN总线, 主要器件信号列表如下:Library Component Count : 29Name Description----------------------------------------------------------------------------------------------------AMS1117 三端稳压芯片BAT54C 表贴肖特基二极管C 无极性贴片电容CRYSTAL_32K CrystalCap CapacitorFPC0.5-24P 贴片FU 贴片保险丝HR911105Header 2 Header, 2-PinLLAN8720 ETH PHYLED Typical RED, GREEN, YELLOW, AMBER GaAs LEDMAX3485PNP PNP三极管Pin HDR2X20 R 贴片电阻Res ResisterSN65HVD230D STM32H750VBT6 Socket SocketTCAP 钽电容TEST-POINT 测试点TSW 轻触开关USB type C W25Qxx 外置FlashXC6206-3.3 SOT-23,XC6206P332MR,MAX8V,100mAxtal-4P 4脚无源晶振xtal_3225 Crystal OscillatormicroSD
上传时间: 2021-11-24
上传用户:aben
USB_MICRO USB_MNI USB扁口座 TF卡槽 SOIC8 LQFP32芯片ALTIUM 库(3D PCB封装库), 3D封装,已在项目中使用,可以做为你的设计参考。详细列表如下:Component Count : 94Component Name-----------------------------------------------32165032-8MHZAMS1117ANT2AntennaBATbuzzerCapCAP-0805CAP-3216CD32Crystal Oscillator 3225HC-06KEY-2PINLED-0603LQFP-100LQFP32LQFP44LQFP44 10X10_LLQFP44 10X10_MLQFP44 10X10_NLQFP48LQFP48 7X7_LLQFP48 7X7_MLQFP48 7X7_NLQFP64 10x10_LLQFP64 10x10_MLQFP64 10x10_NMagMOTONRF24L01NRF24L01-modeOLED-0.96-PIN7QFN20_4X4QFN24_4X4QFN32_5X5remoteRES-0603RFX2401CRPSG90SH1.0mm-4PINSH1.0MM-5PINSH1.0mm-6PINSMA-ANTSMA/DO-214SOIC-8SOP16SOT-23-3SOT-23-5SOT-89SOT-223SPL06-001STM32F030C8T6STM32F030F4P6STM32F103C8T6straight-1x2pinstraight-1x2pin - duplicatestraight-1x2pin - duplicate1straight-1x3pinstraight-1x3pin - duplicatestraight-1x3pin - duplicate1straight-1x4pinstraight-1x4pin - duplicatestraight-1x5pinstraight-1x8pinstraight-1x8pin - duplicatestraight-2x2pinstraight-2x3pinstraight-2x4pinstraight-2x5pinSW-NO/OFF-PIN3SW-SMD1SW-SMD2SWITCH-DIP-6*6*7SX1308TF-CARDTO-263-5TP4056USBUSB_MICROUSB_MNI_BUSB-MICRO-1winding_1x2pinwinding_1x3pinwinding_1x4pinwinding_1x5pinwinding_1x8pinwinding_2x2pinwinding_2x3pinwinding_2x4pinwinding_2x5pinxtal-5070/SMDxtal-QC49/SMD
标签: usb
上传时间: 2021-12-02
上传用户:aben
EP4CE10 cyclone4 FPGA开发板PDF原理图+ALTIUM原理图库PCB封装库+器件技术手册资料74HC595.pdfAD9280.pdfAD9708.pdfAP3216C.pdfdht11-v1_3说明书(详细版).pdfDS18B20.pdfDVI V1.0.pdfHDMI Specification 13a.pdfHS0038B.pdfLAN8720A.pdfm24c64-r.pdfM25P16 datasheet.pdfMAX3232CSE.PDFmax3483-max3491.pdfPart1_Physical_Layer_Simplified_Specification_Ver7.10.pdfPCF8563.pdfPCF8591.pdfThumbs.dbug_altddio.pdfVESA VGA时序标准.pdfw25q16_datasheet.pdfw9825g6kh_a04.pdfwm8978.pdfxapp495_S6TMDS_Video_Interface.pdf硬件PCB封装库列表:32153225AP3216CBUZZERC0603CAP100CON_2PINCON_RA_HDMI_19P_0P5_SMCR1220D1206DB9-FDB15_VGA_S_FDIP-2X4-2P54DIP-2X10_2P54DIP-2X20_2P54DO214EAR_JACKEC6P3F0805FBGA256FJ3661FPC-40S-0P5SVHDR102JACK-2_5MM_BJTAG_5X2_2P54_RL1040L2520LED0603MIC_6X2_2PH-1X2-2P0QFN24QFN32R0603R0805RJ45RM065-V1SIP3-2P54SIP4-2P54SIP6-2P54SMCSOD323SOD523SOIC8-208SOIC8ESOIC16SOIC16W_1R27_10R3X10R33SOP8SOT23SOT23_S6SOT23-6SW4_PB_ESW_SM_P177SWITCH_DDSZT4R2-6R2_BOTSMTT4R2-6R2_TOPSMTTFCARDTSOP54TSOT-23-5TSSOP16TYPE-C-31-M-12WF_PADxtal_SMDxtal-DIP
上传时间: 2021-12-04
上传用户:
EP4CE10F17C8 mini FPGA开发板PDF原理图+原理图库PCB封装库+器件技术手册资料"74HC595.pdfAD9280.pdfAD9708.pdfAP3216C.pdfdht11-v1_3说明书(详细版).pdfDS18B20.pdfDVI V1.0.pdfHDMI Specification 13a.pdfHS0038B.pdfLAN8720A.pdfm24c64-r.pdfM25P16 datasheet.pdfMAX3232CSE.PDFmax3483-max3491.pdfPart1_Physical_Layer_Simplified_Specification_Ver7.10.pdfPCF8563.pdfPCF8591.pdfThumbs.dbug_altddio.pdfVESA VGA时序标准.pdfw25q16_datasheet.pdfw9825g6kh_a04.pdfwm8978.pdfxapp495_S6TMDS_Video_Interface.pdfpcb封装库:Component Count : 37Component Name-----------------------------------------------32153225AP3216CBUZZERC0603CAP100CR1220D1206DO214EC6P3F0805FBGA256FJ3661HDR102L2520LED0603R0603R0805SIP3-2P54SIP4-2P54SIP6-2P54SOD323SOD523SOIC8-208SOIC16SOP8SOT23SOT23_S6SOT23-6SW_3_2X4_2TFCARDTSOP54TSOT-23-5TSSOP16WF_PADxtal_SMDxtal-DIP
上传时间: 2021-12-04
上传用户:d1997wayne
STM32L475开发板PDF原理图+AD集成3D封装库+主要器件技术手册,集成封装库型号列表如下:Library Component Count : 44Name Description----------------------------------------------------------------------------------------------------ANT-2.4G ANT,2.4G,PCB天线ATK-TEST-1*4-2.54mm 测试点ATK_MODULE 单排母,1*6,2.54mmBEEP 3.3V有源蜂鸣器BUTTON_DIP3 拨动开关SS-12F44C-0402-SMD C-0603-SMD C-CAP-SMD-220uF/10V C-CEP-220uF/16V D-1N4148 Header-1*3-2.54mm 单排针-2.54mmHeader-2*10-2.54mm 双排针-2.54mmHeader-2*2-2.54mm 双排针-2.54mmHeader-2*3-2.54mm 双排针-2.54mmHeader-2*4-2.54mm 双排座-2.54mmIR-LED 1206红外发射管(侧)IR-LF0038GKLL-1 红外接收管SMDJ-MICRO-USB-5S Micro USB 5.9有柱脚长1.25加长针L-0420-4.7uH 电感,4.7uH,3ALCD-TFT-H13TS38A LCD,TFT,1.3'240*240,禹龙LED-0603-RED 发光二极管-红色LED-RGB-1615-0603 RGB,共阳,1615,0603MIC-6022 MICMotor-SMD 电机,SMDPhone-3-M 耳机座,三节R-0402-SMD 贴片电阻R-0805-SMD 贴片电阻RT9193-3.3S-KEY-SMD-324225 KEY,SMD,324225S8050-SMD SD-MICRO-TF SD,MICRO,TFU-AHT10 Sensor,温湿度传感器U-AP3216C Sensor.光照/距离U-AP6181 WIFI Module,SDIOU-ES8388 AUDIO,2-ch DAC,2-ch ADCU-ICM-20608 三轴陀螺仪/三轴加速度计,U-L9110S 电机驱动,800mAU-RT9013-3.3 LDO,500mAU-STM32F103C8T6 U-STM32L475VET6 MCU,LQFP100,512K FLASH,128K RAMU-W25Q128 SPI FLASH,16MY-12M-SMD 晶振 - 12M贴片Y-3215-32.768K xtal,3215,32.768KY-3215-8M xtal,3215,8MHz
上传时间: 2021-12-15
上传用户: