虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

multi-line

  • 基于单片机的区域交通信号控制系统

    介绍了一种基于单片机的区域交通信号控制系统设计方案,阐述了系统的工作原理及各主要模块的软硬件实现方法。系统能够根据车流量信号动态地改变交通信号灯各状态配时,并通过无线通信技术,有效地解决了特定区域内各路口信号机之间数据的传输,实现了区域交通信号的智能控制。该系统抗干扰能力强,可靠性高,使用非常方便。

    标签: 单片机 交通信号 控制系统

    上传时间: 2013-10-21

    上传用户:kinochen

  • keil编译错误分析

    一、 main.c(35): warning: #128-D: loop is not reachable from preceding code 原因,前面有一个while(1){ …….} 二、 main.c(54): warning: #1-D: last line of file ends without a newline 少了一个回车在}之后  

    标签: keil 编译 错误

    上传时间: 2014-12-26

    上传用户:sjb555

  • 基于CH341A的USB串口通讯设计

    为解决当前计算机串行通讯接口只有USB,难以满足旧型号设备或某些单片机要求RS232通讯的问题,设计出两款RS232/USB电路。采用CH341A与MAX223集成电路芯片构建标准9线RS232/USB通用接口转换器,无需编程。采用CH341A与PIC16F877A构建单片机与计算机之间的USB通讯电路,软件遵循RS232通讯协议,硬件进行电平转换。实际使用表明,这两款产品与计算机端Windows 操作系统下的串口应用程序完全兼容,且通讯过程中无握手失败现象。 Abstract:  To solve the problem that current computer serial communication only with USB interface can not satisfy with the old type equipments or MCU to communicate with RS232, two kinds of RS232/USB circuit were designed.CH341A and MAX223 integrated circuit chips were used to create a standard 9-line RS232/USB universal interface convertor without programme. CH341A and PIC16F877A chips were adopted to build the USB communication circuit between computers and MCU. The software follows RS232 communication protocol, and the hardware converts electrical levels. Actual practices indicate that the two manufactures are compatible with serial application program of Windows operation system completely,and get avoid of handshake lost.    

    标签: 341A 341 USB CH

    上传时间: 2013-11-03

    上传用户:siying

  • 基于凌阳单片机的步进电机加减速的控制方法

    提出一种基于凌阳单片机的步进电机加减速的控制方法。采用凌阳科技推出的16位结构工控单片机SPMC75F2413A为控制器,由Allegro公司生产的两相步进电机专用驱动器件SLA7042M构成步进电机的驱动电路,在传统的3段直线加减速控制算法基础上增加至7段S形曲线加减速过程,控制步进电机的启动和停止。实验结果表明,该控制方法克服了直线加减速中不连续、易造成系统冲击的问题,整个系统实现柔性控制,电机启动、停止连续性能提高30%。 Abstract:  The method of controlled stepping motor is referred based on SPMC75F2413A MCU, which adopts the 16 knots SPMC75F2413A MCU as the controller. The special-purpose actuation chip SLA7042M of two stepping motor produced by Allegro Corporation constituted to actuation electric circuit. The purpose of increasing to seven section of S shape curve based on the traditional three sections of straight line is to control the start and stop process of stepping motor. The experimental results show that the control method solves easy to pull-out and overshot problems. The overall system realizes flexible control, and the performance of motor start or stop continuity is increased 30%

    标签: 凌阳单片机 步进电机 控制方法

    上传时间: 2013-12-08

    上传用户:jiangfire

  • 单片机P0口的片外数据存储器扩展

    单片机作为一种微型计算机,其内部具有一定的存储单元(8031除外),但由于其内部存储单元及端口有限,很多情况下难以满足实际需求。为此介绍一种新的扩展方法,将数据线与地址线合并使用,通过软件控制的方法实现数据线与地址线功能的分时转换,数据线不仅用于传送数据信号,还可作为地址线、控制线,用于传送地址信号和控制信号,从而实现单片机与存储器件的有效连接。以单片机片外256KB数据存储空间的扩展为例,通过该扩展方法,仅用10个I/O端口便可实现,与传统的扩展方法相比,可节约8个I/O端口。 Abstract:  As a micro-computer,the SCM internal memory has a certain units(except8031),but because of its internal storage units and the ports are limited,in many cases it can not meet the actual demand.So we introduced a new extension method,the data line and address lines combined through software-controlled approach to realize the time-conversion functions of data lines and address lines,so the data lines not only transmited data signals,but also served as address lines and control lines to transmit address signals and control signals,in order to achieve an effective connection of microcontroller and memory chips.Take microcontroller chip with256KB of data storage space expansion as example,through this extension method,with only10I/O ports it was achieved,compared with the traditional extension methods,this method saves8I/O ports.

    标签: 单片机 P0口 数据存储器 扩展

    上传时间: 2014-12-26

    上传用户:adada

  • 微处理器dsPIC33F在微机保护装置中的应用

    数字信号处理器dsPIC33F集多通道高精度A/D转换、多通讯模式、看门狗、CMOS Flash技术等于一体,其内部可完成所有数据操作,实现总线不出芯片技术。将该处理器应用于微机保护装置,提出基于dsPIC33F微处理器的微机保护装置的设计方案,给出相应的接口电路与软件流程。该设计方案结构简单,性价比及可靠性高,开发周期短,具有一定的实用推广价值。所研制的微机保护装置现场运行效果良好。 Abstract:  The dsPIC33F microprocessor has a plentiful interior resource which contains multi-channel,high precision A/D converters,multi-communication module,watchdog,CMOS Flash technology,and so on.All data manipulations is accomplished interiorly.What is more,it makes the technology that bus does not go beyond the chip comes into practice.The paper put forwards a design scheme based on dsPIC33F microprocessor.The scheme has the advantages of simple structure,high reliability and shortened exploitation cycle.What is more,it has definite practicality and reference.The microcomputer protection device has been put into operation with excellent effects.

    标签: dsPIC 33F 33 微处理器

    上传时间: 2013-11-16

    上传用户:开怀常笑

  • 基于单片机和FPGA的多功能计数器的设计

    以89S52单片机和EP1C6Q240C8型FPGA为控制核心的多功能计数器,是由峰值检波、A/D转换、程控放大、比较整形、移相网络部分组成,可实现测量正弦信号的频率、周期和相位差的功能。多功能计数器采用等精度的测量方法,可实现频率为1Hz~10MHz、幅度为0.01~5Vrms的正弦信号的精确测频,以及频率为10Hz~100kHz、幅度为0.5~5Vrms的正弦信号精确测相。液晶显示器能够实时显示当前信号的频率、周期和相位差。该多功能计数器精度高,界面友好,实用性强。 Abstract:  A multi-function counter,which uses89S52MCU and EP1C6Q240C8FPGA as a control core,consists of peak detector,A/D conversion,program-controlled amplification,compared shaping and phase-shifting network part.The counter measures the frequency,period and phase of sinusoidal signal.With the equal precision method,the multi-function counter achieves the precise frequency measurement of the sinusoidal signal which its frequency is from1Hz to10MHz,its amplitude is from0.01Vrms to5Vrms,as well as the accurate phase measurement of the sinusoidal signal which its frequency is from10Hz to100kHz,its amplitude is from0.5Vrms to5Vrms.The LCD monitor real-time displays the frequency,period and phase difference of current signal.The multi-function counter features high precision,friendly interface,and strong practical.

    标签: FPGA 单片机 多功能 计数器

    上传时间: 2013-11-15

    上传用户:gy592333

  • 基于C8051F020单片机的多路压力测量仪

    介绍了一种基于C8051F020单片机的多路压力测量仪。该测量仪选用电阻应变式压力传感器采集压力信号,并经放大电路处理后送入C8051F020单片机,再由C8051F020单片机内部的A/D转换器将采集到的压力信号进行模数转化,然后分别对数据进行存储和显示。该测量仪能测量6路压力信号,并且各测量点都能单独检测和设置。由于采用了C8051F020单片机,简化了硬件电路,增强了抗干扰能力,使得测量仪具有测量精度高,冲击小等特点。 Abstract:  A measurement apparatus for multi-channel pressure based on single chip microcomputer is introduced.It can measure 6 channels signal of the pressure,and the pressure measure points can be detection and located individually.The pressure signal sampling is obtained by resistor stress-type pressure sensors,the digital signals of 6 channels are collected through amplifying and adjustment circuit of pressure signals and internal integrated A/D converter of MCU.Finally,and it realizes the function to store and display data separately.C8051F020 was used to made hardware circuit simple,and it also enhanced the anti-interference ability.It features high precision and little impact.

    标签: C8051F020 单片机 多路 压力

    上传时间: 2013-11-16

    上传用户:yare

  • 多音频讯号的量测及分析系统--DAQ Card的应用

    量测/测试所面临之问题 此测试验证上,要使用NI公司之LAB VIEW及DAQ CARD来取代AUDIO PRECISION及其所附软体ATS。首先需克服硬体解析度上的差异,再来是FFT(FAST FOURIER TRANSFORM,快速传立业转换)演算未予的撰写,这将会影响MULTI-TONE讯号上PEAK值的侦测。另外,以RS-232为I/O介面,并呼叫客户所提供之DLL档来与DUT内的IC沟通,但因LAB VIEW无法直接呼叫其STRUCTURE,故需用VC++再编译一层新的DLL来供LAB VIEW使用。

    标签: Card DAQ 音频讯号

    上传时间: 2013-12-13

    上传用户:longlong12345678

  • 基于AVR单片机Mega16的电子时钟设计

    Mega16是一款采用先进RISC精简指令,内置A/D的8位单片机,可支持低电压联机 Flash和EEPROM 写入功能;同时还支持 Basic和C 等高级语言编程。用它设计电子时钟不仅成本低,硬件简单,而且很容易实现系统移植。介绍了如何利用AVR系列单片机Mega16及1602字符液晶来设计电子时钟的方法,同时给出了相应的电路原理及部分语言程序。 Abstract:  ?Mega16 is a high-performance, low power consumption, the use of advanced RISC concise instructions, built-in A/D 8-bit microcontrollers, the on-line support for low-voltage Flash, EEPROM write function. Except Mega16 also support the Basic, C, and other high-level language programming.The electronic clock which is deisgned by Mega16 is not only low-cost, simple hardware, but easy to achieve system migration.The design method of electrioic clock based on the AVR Mega16 and character LCD1602 is introduced in this paper,and the corresponding circuit electrionic and some language program are given.

    标签: Mega AVR 16 单片机

    上传时间: 2014-12-27

    上传用户:zl5712176