登录
首页 » Others » 串口调试助手 vc 源代码

串口调试助手 vc 源代码

于 2020-12-09 发布
0 181
下载积分: 1 下载次数: 1

代码说明:

配套书本学习更快,初学者 可以借鉴本代码学校到串口编程的方法。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 蚁群算法求解旅行商最优路径
    利用MATLAB语言实现蚁群算法求解旅行商最优路径问题
    2020-12-07下载
    积分:1
  • 多自由度体系中心差分法matlab
    多自由度,中心差分法,采用matlab软件编写的程序
    2020-12-06下载
    积分:1
  • 浪潮存储系统AS5300G2配置手册
    浪潮存储系统AS5300G2配置手册
    2020-12-11下载
    积分:1
  • K60的中文资料
    此文档介绍了K60单片机的一些结构功能,纯中文。K60P144M1OOSF2RM. pdfK60 Sub-Family Reference Manual, Rev. 6. Nov 201夲部分讲解如何配置芯片上的嵌套向量中断控制器。完整信息清参阅htp/www.arm.com。InterruptsModulePPBNested VectoredModuleInterrupt Controller(NVIC)Module图32嵌套向量中断控制器题日相关模块参考链接套问量中断控制器http://www.arm.com系统内存映System memory map时钟Clock distribution电源管理Power management专用外设总线ARM Cortex-M4核心 ARM Cortex-M43.22.1中断优先级器件支持16级中断优先级,因此在嵌套向量中断控制器中,每一个中断源在优先级控制寄存器IP中都有4个位。例如IPRO中3302928a7262524232221a019181716|151413121110976543210R0000006000600000W3.22.2非可屏蔽中断非可屏蔽中断的中断源来自于外部的NM引脚。此引脚是多路复用引脚,必须要配置他的功能,使其成为外部不可屏蔽中断功能引脚。322.3中断分配中断默认按照下表分配向量号:当中断使用时,此值储存在栈中。IRQ号:非核心中断源,对应的编号为终端号减16。IRQ号在ARM的NVC文档中有描述表34中断号分配址址中断编号IRQ号非优先级编中断伏先溟模块描述(1)号(2)级编号(3)ARM核心中析源0x00000000ARM内核切始牟栈指针0x00000004ARM内核初始程序计数器Editbylie:soonli@qq.comK60P144M100SF2RM. pdfK60 Sub-Family Reference Manual, Rev. 6 NoV 2010x00000082AHM内核非可屏蔽中断x00000c3ARM内核哽件故障0x000000101ARM内核存储控制器故障0x0000145ARM内核总线故障0x000000186ARM内核用故障0x000001C70x00002080x0000219x00028100x000002C11ARM内核管理程序调入0x000003012ARM内核周试监控0x000034130x0000003814ARM内核0x0000315ARM内核系统往拍定时器非核心中新源0x00000040160DMADA通道0发送完成0x000000141DMADMA通道⊥发送完成0×00004818DMAD)MA通道2发送完成000401DMA通道3发送完成0x0000020DA通道4发送完成0300052DMA通道5发送完成0x00000582DMADMA通道6发送完成0x000_005C2sDMADMA通道7发送完成0x0000006021DMA通道8发送完成0x0000006425DMADMA通道9发送完成0x0000006826⊥0DMADMA通道10发送完成0x000006C27DMADMA通道11发送完成0x00007028DMA通道12发送完成0x000007429DMA通道13发送完成0x0000087314DMA通道1发送完成0x00007C3IMA通道15发送完成0x00000803216DMADMA通道0-15故障0x00000081MCM0x00000883184闪存命令执行完成0x000008C35闪存读取冲突0x0000009036模式控制掉电中断,电检测低澌喚醒单兀注意:在需要使用低漏检测0x00000094370低漏唤醒|的时候不要禁止这个中断0x000009838看门狗看门狗中断0x0000009c39230x00000A441IICIEditbylie:soonli@qq.com4K60P144M100SF2RM. pdfK60 Sub-Family Reference Manual, Rev. 6 NoV 2010x0000A84SPD所有中断源使用一个向量x0000AC4SPI1所有中断源使用一个向量0x000000B014SPI2所有中断源使用一个向量CR’ ed Message bufi0x000000B44529CANO(0-15)0x00000846CAND总线关闭0x0000BC47错误0x000000C048CANO发送报警x00000C449CANO接收报整0x000000C850CAND唤帼0x00000CC50x0000000520x000000D1537CAN⊥5)0x000000D8CANI总线关闭0x00000DC5CAN⊥错误0x000000E05610发送报警0x0000C457接收报警0x0000E858唤醒0x0000EC59100x0000F06011l⊥0000F461JJARTO串口0状态中新源0x00000F862UARTO串口0错误中新源0y000000FC11UARTI串口1状态中断源0x00010064UARTI串口1错昃中源x0000010465UART2串口2状态中新源000001085650UART2串口2错昃中粉溴0x000067UaRT串口3状态中新源0x000011068UART串口3错误中析源0x0001146gUART4串口4状态中析源00011870UART串口4错误中析源0x0000011C715513UART串口5状态中新源0x0000120721111111UART5串5错误中析源0x00001247370x000128740x00012c75CMPO0x00003076CMPI0x000013476115CMP20x000001387815FTM0所有中断源使一个向量0x000013C7963FTM1所有中断源使用一个向量0x00001408064FTM2所有中断源使用一个向量000014481160x0000014816报警中断Editbylie:soonli@qq.comK60P144M100SF2RM. pdfK60 Sub-Family Reference Manual, Rev. 6 NoV 2010x00014C8x0001508PITPIT通道00x000001518517PITPIT通道10x0000015886017PITPIT通道20x0000015C81PITPIT通道30x0000160882180x000016489USB OTx001689074充电检测0x0000016C|91Ethernet macIEEE1588定时器中断0x000017092Ethernet mac发送中断0x0000017497719Ethernet mac接收中断0x00001789EtherneL mac错误和其他中断0x00017C950x00000180|96SDH0x00184978120DACO0x000001889DACI0x0001899TsT所有中断源使用一个向量0x0000901008120x0000194101低功耗定时器00001981020x000019c10321引因控制模块PORTA引脚中断000001A0104引却控制模块PORTB引脚中断00004105引脚控制模块PORTC引脚中断0x0001AB106引閎控制模块PORTD引脚中断0x00000⊥AC10791引脚控制模块P0RTE引脚中断0×001B01080x000011090×00010701094软中断软件中断(4)(1)表示嵌套向量中断控制器的中断源号(2)表示嵌套向量中断控制器对于响应中断的ISER,ⅠCER,ISPR,ICPR和IABR寄存器的值,计算方法是IRQ的值除以32。(3〕表示嵌套向量中断控制器对于响应中断的IPR寄存器的值,计算方法是IRQ的值狳以4(4)此中断只能被NVC寄存器置位或者清零。3.2.2.3.1确定位域和寄存器的位置,来配置一个特定的中断如果你需要配置低功耗寄存器中断,下面的表格自“中断号分配”地址中断编号1RQ号非优先级编中断优先源模块描述号(2)级编号(3)0x0000019410」2⊥低功耗定时器译者注:下面角标的注解没有被列出,请看上表末尾。1)在NⅥC寄存器中,你需要配置关于中断的信息Editbylie:soonli@qq.comK60P144M100SF2RM. pdfK60 Sub-Family Reference Manual, Rev. 6 NoV 201· NVICISER2NVICICER2· NVICISPR2· NVICICPE2NVICIABR2NVICIPR212)确定特定中淅在相对应的寄存器中的特定位域(汗,这句话怎么这么别扭)。NVICISER2, NVICICER2, NVICISPR2, NVICICPR2, NVICIABR2 7位置=IRQ/32=21NⅥCIPR21位域的起始地址=8*(IRQ/4)+4=12因为 NVICIPR的位域的4位宽,所以 NVICIPR21的范围是12-15。因此,下列的位域的位是用来配置低功耗定时器的中断的。NVICISER2[21]NVICICER2[21NVICISPR2(21NVICICPR2[21NVICIABR2[211NVICIPR21[15: 123.2.3异步唤醒中断的配置夲节概述如何配置芯片中的相应模垬。在AM的文档中有更加完整的描述信息www.armcomClock logicWake-upquesynchronousModuleWake-up InterruptController(AWIC)Module图3-3异步唤醒单元主题相关模块参考链接系统存储映射System memory mat时钟Clock distribution电源管理Powcr managcmcnt嵌套向量中断控制器NVIC唤醒请求AWIC wake-up sources3.2.3.1唤醒源器件使用一下的内部或者外部异步唤醒输入模块Editbylie:soonli@qq.comK60P144M100SF2RM. pdfK60 Sub-Family Reference Manual, Rev. 6 NoV 201唤醒源描述可用的系统复位复位引脚和看门狗(当使用LPO时钟源吋),JTAG接口低电压检测模块控制器低电压警告模块控制器引脚中断引脚控制模块,任何一个中断使能的引胭都可以吹醒系统ADC「当使用内部时钟源的时候可是实现这个功能CMP由于没有系统时钟可以使用,所以此时是无效的LIC地址匹配唤醒接收眺变唤醒USB唤醒功能唤醒低功耗定时器在Stop/ⅥPS模式下有效实时时钟在Stop/ⅦLPS模式卜有效以太网魔法包唤醒SDIIC唤陧功能唤醒IIS唤醒功能唤醒1588时钟唤醒功能唤醒TSICAN3.2.3JTAG控制器配置本节概述如何配置芯片中的相应模块。在后面专门的章节中有更全面的介绍。JTAG controller图3-4JTAG控制器表38相关信息的参考链接题相关模块参考链接仝面介绍JT△GCJTAGC信号传输设置引脚控制Signal multiplexing3.3系统模块3.3.1系统集成控制模块(SIM)配置Editbylie:soonli@qq.comK6OP144M100SF2RM. pdf K60 Sub-Family Reference Manual, Rev. 6 Nov 201本节概述如何配置芯片中的相应模块。在后面专门的章节中有更全面的介绍PeripheralbridgeegisteracceSSResetsMode controller图35系统集成控制模块表39相关信息的参考链接主题相关模块参考链接全面介绍系统集成控制模块系统存储映射Systcm memory maj时钟Clock distribution电源管理Power management3.3.2模式控制器模块本节概述如何配置芯片中的相应模块。在后面专门的章节中有更全面的介绍。PeripheralbridgeRegistResetsMode controller图3-6模式控制模块表3-10相关信息的参考链接题相关模块参考链接全面介绍模式控制模块Mode controllerEditbylie:soonli@qq.comK60P144M100SF2RM. pdfK60 Sub-Family Reference Manual, Rev. 6 NoV 201系统存储映射System memory map电源管理Power management电源管理控制器PMO3.3.3电源管理控制模块本节概述如何配置芯片中的相应模块。在后面专门的章节中有更仝面的介绍PeriphebridgeRegisteraccessPower managementcontroller(PMC)图37电源管理控制模块表3-11相关信息的参考链接主题相关模块参考链接全面介绍PMCPMC系统存储映射System memory map电源管理Powcr managcmcnt面介绍Mode controller低漏唤醒单元LLWU3.3.4低漏唤醒单元节概述如何配置芯片中的相应模块。在后面专门的章节中有更全面的介绍。Editbylie:soonli@qq.com
    2020-12-03下载
    积分:1
  • MDK5软件注册机
    F103开发板-霸道 MDK软件 注册机
    2021-05-07下载
    积分:1
  • CMW500仪器手册
    CMW500的资料不多,这是非常不错的参考资料R&s CMW 500Contents overviewContents overview1 Preparing the Instrument for Use2 Getting Started3 System Overview4 Basic Instrument functions5 Remote Control6 System Command Reference7 General Purpose RF Applications8 GSM Applications9 WCDMA Applications10 WiMAX Applications11 AnnexesNote about Faceless InstrumentsChapter 1 of this manual gives an overview of the front panel controls and connectorsof the R&s CMW 500 Wideband Radio Communication Testers with display and givesall information that is necessary to put the instrument into operation and connectexternal devices. The application examples in Chapter 2 and the following chapters arealso based on a r&S CMW 500 with displayThe measurement functionality of the two instrument types is identical. You can test allmeasurement examples reported in this manual using an r&S CMW 500 withoutdisplay that is controlled from the Graphical User Interface displayed on an externalmonitor or pcFor specific information concerning faceless instruments refer to your quick start guide.Operating Manual 1202. 3986.32-03R&s CMW 500ContentsContents1 Preparing for Use…日日画1.1 Front Panel Tour1.1.1 Utility Keys…1.1.2 Status LEDs and Standby Key1.1.3 Display…1.1.4 Softkeys and Hotkeys1.1.5 Setup Keys1.1.6 Data Entry Keys223334561.1.7 Rotary Knob and Navigation Keys1.1.8 Front panel connectors1.1.8. 1 RF Connectors1.1.8.2 LAN Connector1.183 SENSOR Connector1.184 USB Connectors1.1.8.5 AF Connectors888881.2 Rear panel tour:::::B:1.3 Putting the Instrument into Operation1.3.1 Unpacking the instrument and checking the shipment1.3.2 Instrument Setup...............001.3.3 Bench Top Operation1.3.4 Mounting in a 19 Rack121.3.5 EMI Protective measures131.3.6 Connecting the Instrument to the AC Supply131.3.7 Power on and off…131.3.8 Replacing Fuses141.3.9 Standby and ready state141.4 Maintenance15Operating manual 1202.3986.32-03R&s CMW 500Contents1.4.1 Storing and Packing151.5 Connecting External Accessories…………,…,…,…,…,…,…,………,……….151.5.1 Connecting a mouse161.5.2 Connecting a Keyboard161.5.3 Connecting a Printer1.5. 4 Connecting a monitor1.5.5 Connecting a LAN Cable788916 Starting the R&scMW500 and Shutting D。wn…,.....,.,…,,,191.7 Remote Operation in a LAN...........-.201.7.1 Assigning an IP Address201.7.2 Remote Desktop Connection221.8 Windows xP国国国面1.9 Firmware Update…,,…,,,,,,,,,",…,…222 Getting Started,…,…,…252.1 Basic tasks.…252.1.1 Accessing Dialogs252.1.2 Using Keyboard Shortcuts272.1.3 Data entr272.14 Using Front Panel Keys.……282.1.5 Using an External Keyboard2.1.6 Task bar302.2 Sample Session…312.2.1 Generating an rf signal312.2.1.1 GPRF Generator2.2.2 Measuring an RF Signal332.2.2.1 GPRE Power333 System Overview…363.1 Generators363.1.1 Generator Control363.1.2 RF Path Settings(Generators)37Operating manual 1202.3986.32-03R&s CMW 500Contents3.2 Measurements383.2.1 Measurement control383.2.2 Connection Control(Measurements393.2.3 Statistical Settings3. 2. 4 Statistical Results3.2.4.1 Statistics Type423.2.4.2 Detectors433.2.4.3Peak∨ alues.433244 Averaging…443.245 Standard deviation143.2.5 Trigger Settings453.2.6 TX Measurements453.2.6.1 Power results463.2.6.2 Modulation accuracy3.2.6.3 Adjacent Channel Power(Spectrum)493.2.6.4 Spectrum Emission Mask493.2. 6.5 Code domain power503.2.6.6 Multi-Evaluation measurements4 Basic Instrument Functions534.1.1 Startup Dialog534.2 Utility Dialogs544.2.1 Reset Dialog..4.2.2 Print Dialog554.2.3 Save/Recall Dialog564.3 Setup Dialog…,,,,…574.3.1 Activating Options584.3.2 Selftests…594.3.2.1 General test features604.3.2.2 Board Tests614.3.23 System Tests…62Operating Manual 1202.3986.32-03R&s CMW 500Contents4.3.2.4 Performing Selftests24.3.25 Selftest Parameters634.3.3 Reference Frequency654.3.3.1 Reference Frequency Settings654.3.4 Measurement Controller Dialog664.3.5 Generator Controller Dialog665 Remote Control685.1 Remote Control Operation685.1.1 Establishing and Testing a LAN Connection705.1.2 Switchover to remote control5.1.3 Return to Manual Operation715.2 Messages国国国面…725.2.1 VXI-11 Interface Messages725.2.2 GPIB Bus Interface Messages..725.2.3 Device Messages(Commands and Device Responses)735.2. 4 SCPl Command structure and syntax735.2.4.1 Common commands745.2.4.2 Instrument-Control Commands5.2.4,3 Structure of a command line765.2.4.4 Responses to Queries5.2.45 SCPI Parameters,775.2.4.6 Use of SCPl Subsystems95.3 R&s CMW Software and command structure5.3.1 General command structure5.3.2 Firmware applications815.3.3 Measurement Contexts and views5.4 Control of the instrument825.4.1 Measurement Control825.4.1.1 Measurement states and measurement control commands835.4.1.2 INITiate: : MEASurement84Operating manual 1202.3986.32-03R&s CMW 500Contents5.4.1.3 ABORt: MEASurement 8554.14sTOP:< Application> MEASurement>.,……855.4.1.5 Measurement substates855.4.2 Statistical Settings865.4.3 Retrieving Measurement Results885.4,3. FEtCh.? Command885.4.3.2 READ.? Command∴8954.33 Retrieving Single∨ alues and traces.…5.4.4 Reliability Indicator5.4.4.1 Common Reliability Indicator……5.4.5 Multi-Evaluation Measurements5.4.6 Generator control925. 4.7 RF Path Settings945.4.8 Resource and path Management∴945.4.8. 1 Basic RPM Principles5.4.8.2 Queuing of Measurements∴9654.83 Causes for task Conflicts5.4.8.4 Monitoring Measurement and Generator States995.5 Command Processing...:::::B:995.5.1 Input Unit1005.5.2 Command Recognition1005.5.3 Data base and instrument hardware1015.5.4 Status Reporting System1015.5.5 Output Un1025.6 Status Reporting System1025.6.1 Overview of status Registers1035.6.2 Structure of an SCPl Status Register…1035.6.2.1 Description of the five status register parts1045.6.3 Contents of the Status Registers1055.6.3.1 STB and sre.105Operating manual 1202.3986.32-03R&s CMW 500Contents5.6.3.2 IST Flag and pPe.1065.6. 3.3 EsR and ese∴1075.6.3 4 STATus: OPERation1085.6.3.5 STATus QUEStionable1085.6.4 Application of the status reporting s ystem1085.6.4.1 Service Request1085.6.4.2 Serial poll1095.6.4.3 Parallel poll1095.6.4.4 Query of an Instrument Status1105.64.5 Error queue.….115.6.5 Reset Values of the Status Reporting System1116 Command reference∴∴11361 Special Terms and Notation…,…………,…,…,………,…,…,,…,………………1136.2 Common commands1156.3 Instrument-Control commands.117631 MMEMory Commands…..,,,…,,……1176.3.2 Ref Frequency Commands1206.3.3 STATus Commands1216.3.4 SYSTem Commands1256.3.5 LAN Services1256.3.6 Miscellaneous Instrument Settings1286. 4 Alphabetical List of Commands System)1317 GPRF Applications1337.1 GPRF Measurements and generators1337.1.1 General Purpose RF Generato.1337.1.1.1 GPRF Generator(Constant Frequency)1337.1.1.2 Arbitrary RF Generator(Option R&S CMW-B110 A)1347.1.13 List Mode∴1357.1.2 Power measurement1357.1.2.1 Test Setup…135Operating manual 1202.3986.32-03
    2020-12-05下载
    积分:1
  • 计步器设计报告
    自己做的计步器设计报告、包含电路截图、VHDL代码和仿真截图
    2020-12-01下载
    积分:1
  • 格子Boltzmann方法学习资料和常用链接
    资源里包含学习格子Boltzmann方法的经典论文《A 3D Lattice Boltzmann Code for Modeling Flow and Multi-Component Dispersion》和《Lattice Boltzmann Method for Thermal Compressible Flows》及OpenLB软件库源代码,以及几篇中文硕士论文推荐
    2020-06-19下载
    积分:1
  • Mecury晶体工具
    剑桥的著名软件,可用于观察晶体结构,了解晶体中的结构排列,相互作用等等,还能用于画图
    2020-12-10下载
    积分:1
  • UKF 无迹卡尔曼滤波源序 matlab
    UKF 无迹卡尔曼滤波源程序 matlab 自己跑过,据对没问题
    2020-11-30下载
    积分:1
  • 696518资源总数
  • 105584会员总数
  • 19今日下载