此题目是通过键盘来实现密码输入是否正确,正确的时候数码管亮,否则发出报警声。 判断是按键还是干扰是非常有用的,它体现了一个系统的抗干扰能力。高低电平在瞬间的变换是很正常的,如果没有这条语句,系统很容易出错。 其中2秒是由定时器0来完成的。 在程序的定时器中断中,用switch代替了if else结构,使得程序的可读性大大增强。 TH0 = (65536-50000) / 256 TL0 = (65536-50000) 256 使得TH0 = 3CH, TL0 = B0H,由于该单片机的晶振为12MHz 因此定时时间就为0.05ms.在定时器中断服务程序中用FLASH计数,当计数达到40时正好是2秒。
上传时间: 2014-01-21
上传用户:caozhizhi
This software is developed to provide ease with controller design. For PID control, options are given to design and analyse the compensated and uncompensated system. You are free to choice among Proportional PI, PD and PID mode of control. Both frequency and time domain characteristics can be observed. Special Menus are given to observe time and frequency response plots. For Statefeedback controller similar options are given. But this is limited to second order system only.
标签: controller developed software control
上传时间: 2017-07-25
上传用户:aysyzxzm
RS_latch using vhdl, When using static gates as building blocks, the most fundamental latch is the simple SR latch, where S and R stand for set and reset. It can be constructed from a pair of cross-coupled NOR (Not OR) logic gates. The stored bit is present on the output marked Q. Normally, in storage mode, the S and R inputs are both low, and feedback maintains the Q and Q outputs in a constant state, with Q the complement of Q. If S (Set) is pulsed high while R is held low, then the Q output is forced high, and stays high when S returns to low similarly, if R (Reset) is pulsed high while S is held low, then the Q output is forced low, and stays low when R returns to low.
标签: using fundamental the RS_latch
上传时间: 2017-07-30
上传用户:努力努力再努力
hese are the zip files that are associated with application note ADSP-BF533 Blackfin Booting Process (EE-240) example.zip: Used throughout the EE-note to explain in detail the various booting modes. BF533 Ez Kit Multiple DXE Boot.zip: Multi-DXE Boot Example used with the ADSP-BF533 Ez-Kit Lite. Host Boot.zip: Example Host code to demonstrate SPI Slave Mode Booting Program_Atmel.zip: Example code that programs the Atmel DataFlashes via an ADSP-BF532 Processor All programs have been written for VisualDSP++ 3.5
标签: application associated are Blackfin
上传时间: 2017-07-30
上传用户:tonyshao
矩阵键盘程序,主要教会初学者练习switch语句,同时练习条件语句,用于键盘扫描
标签: 矩阵键盘程序
上传时间: 2014-01-24
上传用户:wanqunsheng
视频质料 在matlab环境中如何使用radiobutton,switch语句,边缘检测
标签: radiobutton matlab 视频 环境
上传时间: 2017-08-15
上传用户:thesk123
Complete coverage of all four CCNP exams: ? EIGRP, OSPF, IS-IS, and BGP ? Optimizing routing ? IP multicast ? IPv6 ? VLAN implementation ? Spanning Tree ? InterVLAN routing ? Layer 3 redundancy ? Wireless LANs ? VoIP in campus networks ? Campus network security ? Frame-mode MPLS ? IPsec ? Cisco device hardening ? Cisco IOS? threat defenses ? Cisco VoIP ? QoS and AutoQoS ? Wireless scalability
标签: Optimizing Complete coverage routing
上传时间: 2017-09-26
上传用户:cuibaigao
The TJA1040 is an advanced high speed CAN transceiver for use in automotive and general industrial applications. It supports the differential bus signal representation described in the international standard for in-vehicle high speed CAN applications (ISO11898). CAN (Controller Area Network) is the standard protocol for serial in-vehicle bus communication, particularly for Engine Management and Body Multiplexing. The TJA1040 provides a Standby mode, as known from its functional predecessors PCA82C250 and PCA82C251, but with significantly reduced power consumption. Besides the excellent low-power behavior the TJA1040 offers several valuable system improvements. Highlights are the absolute passive bus behavior if the device is unpowered as well as the excellent EMC performance.
标签: CAN
上传时间: 2015-03-23
上传用户:Yuan Lo
第一章关键字...................................................................................................................................9 1.1,最宽恒大量的关键字----auto..........................................................................................11 1.2,最快的关键字---- register............................................................................................... 11 1.2.1,皇帝身边的小太监----寄存器............................................................................. 11 1.2.2,使用register 修饰符的注意点.............................................................................11 1.3,最名不符实的关键字----static........................................................................................12 1.3.1,修饰变量...............................................................................................................12 1.3.2,修饰函数...............................................................................................................13 1.4,基本数据类型----short、int、long、char、float、double........................................... 13 1.4.1,数据类型与“模子”............................................................................................... 14 1.4.2,变量的命名规则...................................................................................................14 1.5,最冤枉的关键字----sizeof...............................................................................................18 1.5.1,常年被人误认为函数...........................................................................................18 1.5.2,sizeof(int)*p 表示什么意思?........................................................................18 1.4,signed、unsigned 关键字................................................................................................19 1.6,if、else 组合.................................................................................................................... 20 1.6.1,bool 变量与“零值”进行比较...............................................................................20 1.6.2, float 变量与“零值”进行比较.................................................................................21 1.6.3,指针变量与“零值”进行比较...............................................................................21 1.6.4,else 到底与哪个if 配对呢?...............................................................................22 1.6.5,if 语句后面的分号............................................................................................... 23 1.6.6,使用if 语句的其他注意事项.............................................................................. 24 1.7,switch、case 组合........................................................................................................... 24 1.7.1,不要拿青龙偃月刀去削苹果.............................................................................. 24 1.7.2,case 关键字后面的值有什么要求吗?.............................................................. 25 1.7.3,case 语句的排列顺序...........................................................................................25 1.7.4,使用case 语句的其他注意事项..........................................................................27 1.8,do、while、for 关键字................................................................................................... 28 1.8.1,break 与continue 的区别.....................................................................................28 1.8.2,循环语句的注意点...............................................................................................29 1.9,goto 关键字......................................................................................................................30 1.10,void 关键字....................................................................................................................31 1.10.1,void a?............................................................................................................31 1.10,return 关键字................................................................................................................. 34 1.11,const 关键字也许该被替换为readolny....................................................................... 34 1.11.2,节省空间,避免不必要的内存分配,同时提高效率.................................... 35 1.12,最易变的关键字----volatile.......................................................................................... 36 1.13,最会带帽子的关键字----extern.................................................................................... 37 1.14,struct 关键字..................................................................................................................38
标签: c语言深度剖析
上传时间: 2015-05-01
上传用户:cascas
制作驱动程序的好工具.支持 ISA,EISA,PCI,Plug&Play 和 DMA.不需要牵涉到很低层的东西即可在很短的时间里编出驱动程序.内含教程.使用WinDriver的优点是:开发者并不需要熟悉任何内部操作系统或kernel programming或DDK及任何驱动程式.WinDriver同时允许开发者能在自己所熟悉的开发环境下,利用使用者模式(User Mode)如使用MSDEV Visual C/C++,Borland C++Builder,Delphi或任何Win32编译器.使用WinDriver所开发的驱动程式均可用于Windows 9x,NT/2000,NT Embedded,CE Linux and Solaris等平台.
上传时间: 2015-06-02
上传用户:1663066023