试目的LPC1114在深度睡眠模式下,采用低频看门狗时钟作为系统,开启定时器,实现控制器的周期性唤醒,以及此方案下的功耗测试。注:由于LPC1114在深度睡眠模式下只能通过13个GPIO引脚进行唤醒(PIO0_0 ~ PIO0_11和PIO1_0),但是在很多应用场合需要使用定时器周期性唤醒CPU,本测试既是针对此需求提出一种解决方案。
上传时间: 2013-11-08
上传用户:mqien
SL811开发资料_包含源程序_电路图_芯片资料:SL811HS Embedded USB Host/Slave Controller.The SL811HS is an Embedded USB Host/Slave Controller capable of communicate with either full-speed or low-speed USB peripherals. The SL811HS can interface to devices such as microprocessors, microcontrollers, DSPs, or directly to a variety of buses such as ISA, PCMCIA, and others. The SL811HS USB Host Controller conforms to USB Specification 1.1.The SL811HS USB Host/Slave Controller incorporates USB Serial Interface functionality along with internal full-/low-speed transceivers.The SL811HS supports and operates in USB full-speed mode at 12 Mbps, or at low-speed 1.5-Mbps mode.The SL811HS data port and microprocessor interface provide an 8-bit data path I/O or DMA bidirectional, with interrupt support to allow easy interface to standard microprocessors or microcontrollers such as Motorola or Intel CPUs and many others. Internally,the SL811HS contains a 256-byte RAM data buffer which is used for control registers and data buffer.The available package types offered are a 28-pin PLCC (SL811HS) and a 48-pin TQFP package (SL811HST-AC). Both packages operate at 3.3 VDC. The I/O interface logic is 5V-tolerant.
上传时间: 2013-12-22
上传用户:a82531317
温湿度传感器 sht11 仿真程序 sbit out =P3^0; //加热口 //sbit input =P1^1;//检测口 //sbit speek =P2^0;//报警 sbit clo =P3^7;//时钟 sbit ST =P3^5;//开始 sbit EOC =P3^6;//成功信号 sbit gwei =P3^4;//个位 sbit swei =P3^3;//十位 sbit bwei =P3^2;//百位 sbit qwei =P3^1;//千位 sbit speak =P0^0;//报警音 sbit bjled =P0^1;//报警灯 sbit zcled =P0^2;//正常LED int count; uchar xianzhi;//取转换结果 uchar seth;//高时间 uchar setl;//低时间 uchar seth_mi;//高时间 uchar setl_mi;//低时间 bit hlbz;//高低标志 bit clbz; bit spbz; ///定时中断程序/// void t0 (void) interrupt 1 using 0 { TH0=(65536-200)/256;//5ms*200=1000ms=1s TL0=(65536-200)%256; clo=!clo;//产生时钟 if(count>5000) { if(hlbz) { if(seth_mi==0){seth_mi=seth;hlbz=0;out=0;} else seth_mi--; } if(!hlbz) { if(setl_mi==0){setl_mi=setl;hlbz=1;out=1;} else setl_mi--; } count=0; } else count++; } ///////////// ///////延时/////// delay(int i) { while(--i); } ///////显示处理/////// xianshi() { int abcd=0; int i; for (i=0;i<5;i++) { abcd=xianzhi; gwei=1; swei=1; bwei=1; qwei=1; P1=dispcode[abcd/1000]; qwei=0; delay(70); qwei=1; abcd=abcd%1000; P1=dispcode[abcd/100]; bwei=0; delay(70); bwei=1; abcd=abcd%100; P1=dispcode[abcd/10]; swei=0; delay(70); swei=1; abcd=abcd%10; P1=dispcode[abcd]; gwei=0; delay(70); gwei=1; } } doing() { if(xianzhi>100) {bjled=0;speak=1;zcled=1;} else {bjled=1;speak=0;zcled=0;} } void main(void) { seth=60;//h60秒 setl=90;//l90秒 seth_mi=60;//h60秒 setl_mi=90;//l90秒 TMOD=0X01;//定时0 16位工作模式 TH0=(65536-200)/256; TL0=(65536-200)%256; TR0=1; //开始计时 ET0=1; //开定时0中断 EA=1; //开全中断 while(1) { ST=0; _nop_(); ST=1; _nop_(); ST=0; // EOC=0; xianshi(); while(!EOC) { xianshi(); } xianzhi=P2; xianshi(); doing(); } }
上传时间: 2013-10-16
上传用户:黄蛋的蛋黄
这是PC机间相互通信的例子,程序“require”为用查询方式实现,程序“interrupt”为用中断方式实现
上传时间: 2013-12-19
上传用户:Pzj
汇编作业:sound,hentobia,interrupt, countnumber,count_numberandtel
上传时间: 2013-11-25
上传用户:1101055045
这是PC机间相互通信的例子,程序“require”为用查询方式实现,程序“interrupt”为 用中断方式实现
上传时间: 2015-03-28
上传用户:yyq123456789
REMOVE removes a TSR. It takes two command line arguments. The first is the name of TSR to be removed (or an * to remove the last one), and the second is a file name which MUST contain the interrupt vectors to be loaded when the TSR is removed.
标签: TSR arguments removes command
上传时间: 2013-12-09
上传用户:wys0120
增加ASCII.C的一个ASCI码(7F),用于虚拟按键用 修改UART串口的命令解析程序,修改RTC的pcf8563中断部分。 精简IIC和smart_timer代码,添加define.h的宏定义。 修改system.c里的消息堆栈的宏定义 增加ii.c函数,支持对eeprom的打包 增加由PLD或者GPIO输出的模拟UART,在6个CLOCK下速度为57.6K 增加消息的优先级功能,消息类型的前4位为消息的优先级,后4位为消息的类型 试用于初学单片机并且想更上一层楼的,或者有些基础,想减少工作量的。
上传时间: 2015-04-10
上传用户:athjac
8259A中断控制器实验 253A的计数器0为工作方式0,装入时间常数FFFFH,结束中断时显示信息:8253A INTERRUPT EXPERIMENT!
上传时间: 2015-04-15
上传用户:fhzm5658
CBC下写的串口编程,API函数实例 I wish this site had been around when I was trying to figure out how to make serial communications work in Windows95. I, like many programmers, was hit with the double-whammy of having to learn Windows programming and Win95 serial comm programming at the same time. I found both tasks confusing at best. It was particularly frustrating because I had, over the years, written so much stuff (including lots of serial comm software) for the DOS environment and numerous embedded applications. Interrupt driven serial comm, DMA transfer serial comm, TSR serial comm, C, assembler, various processors... you name it, it had written it. Yet, everything I knew seemed upside-down in the message-driven-callback world of Windows.
上传时间: 2014-06-20
上传用户:cccole0605