在Keil u4 for ARM 下增加 C51支持的扩展包
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3097 2009-05-07 14:36 C51ASM89c51ic2.inc
文件 3097 2009-05-07 14:36 C51ASM89c51ix2.inc
文件 2919 2009-05-07 14:36 C51ASM89c51RB2.inc
文件 2919 2009-05-07 14:36 C51ASM89c51RC2.inc
文件 2919 2009-05-07 14:36 C51ASM89c51Rx2.inc
文件 9567 2009-05-07 14:36 C51ASMat83C5123.inc
文件 3281 2009-05-07 14:36 C51ASMAT898252.INC
文件 3551 2009-05-07 14:36 C51ASMat89c5114.inc
文件 4054 2009-05-07 14:36 C51ASMat89c51cc03.inc
文件 3156 2009-05-07 14:36 C51ASMat89c51xd2.inc
文件 5812 2009-05-07 14:36 C51ASMAT89S53.INC
文件 2403 2009-05-07 14:36 C51ASMAT8xc5103.inc
文件 12738 2009-05-07 14:36 C51ASMat8xC5122.inc
文件 9599 2009-05-07 14:36 C51ASMC8051F000.INC
文件 6671 2009-05-07 14:36 C51ASMC8051F200.INC
文件 28161 2009-10-05 17:31 C51ASMC8051F580.INC
文件 3363 2009-05-07 14:36 C51ASMREG152.INC
文件 3317 2009-05-07 14:36 C51ASMREG320.INC
文件 2513 2009-05-07 14:36 C51ASMREG410.INC
文件 2025 2009-05-07 14:36 C51ASMREG451.INC
文件 2851 2009-05-07 14:36 C51ASMREG452.INC
文件 1955 2009-05-07 14:36 C51ASMREG453.INC
文件 3072 2009-05-07 14:36 C51ASMREG504.INC
文件 3037 2009-05-07 14:36 C51ASMREG505C.INC
文件 2668 2009-05-07 14:36 C51ASMREG505L.INC
文件 4684 2009-05-07 14:36 C51ASMREG509.INC
文件 1705 2009-05-07 14:36 C51ASMREG51.INC
文件 2813 2009-05-07 14:36 C51ASMREG515.INC
文件 2833 2009-05-07 14:36 C51ASMREG515A.INC
文件 3216 2009-05-07 14:36 C51ASMREG515C.INC
............此处省略2108个文件信息
#include
/*
* the following timer interrupt routine increments TimerTick and sets a global flag to blink the LED
*/
#define PERIOD -250 // 250 clock cycles interrupt period
unsigned int TimerTick; // variable to count interrupts
bit TimeOver; // flag for main function to toggle port pin
void timer0 (void) interrupt 1 using 1{ // Int Vector at 000BH Reg Bank 1
TimerTick++; // increment interrupt counter
if (TimerTick > 200) {
TimeOver = 1; // set event
TimerTick = 0;
}
}
/*------------------------------------------------
The main C function. Program execution starts
here after stack initialization.
------------------------------------------------*/
void main (void) {
/* setup the timer 0 interrupt */
TH0 = (unsigned char) PERIOD; // set timer period
TL0 = (unsigned char) PERIOD;
TMOD |= TMOD | 0x02; // select mode 2
TR0 = 1; // start timer 0
ET0 = 1; // enable timer 0 interrupt
EA = 1; // global interrupt enable
while (1) {
while(!TimeOver); // wait until interrupt service routine sets flag
P3 ^= 0x10; // blink LED on board
TimeOver = 0;
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3097 2009-05-07 14:36 C51ASM89c51ic2.inc
文件 3097 2009-05-07 14:36 C51ASM89c51ix2.inc
文件 2919 2009-05-07 14:36 C51ASM89c51RB2.inc
文件 2919 2009-05-07 14:36 C51ASM89c51RC2.inc
文件 2919 2009-05-07 14:36 C51ASM89c51Rx2.inc
文件 9567 2009-05-07 14:36 C51ASMat83C5123.inc
文件 3281 2009-05-07 14:36 C51ASMAT898252.INC
文件 3551 2009-05-07 14:36 C51ASMat89c5114.inc
文件 4054 2009-05-07 14:36 C51ASMat89c51cc03.inc
文件 3156 2009-05-07 14:36 C51ASMat89c51xd2.inc
文件 5812 2009-05-07 14:36 C51ASMAT89S53.INC
文件 2403 2009-05-07 14:36 C51ASMAT8xc5103.inc
文件 12738 2009-05-07 14:36 C51ASMat8xC5122.inc
文件 9599 2009-05-07 14:36 C51ASMC8051F000.INC
文件 6671 2009-05-07 14:36 C51ASMC8051F200.INC
文件 28161 2009-10-05 17:31 C51ASMC8051F580.INC
文件 3363 2009-05-07 14:36 C51ASMREG152.INC
文件 3317 2009-05-07 14:36 C51ASMREG320.INC
文件 2513 2009-05-07 14:36 C51ASMREG410.INC
文件 2025 2009-05-07 14:36 C51ASMREG451.INC
文件 2851 2009-05-07 14:36 C51ASMREG452.INC
文件 1955 2009-05-07 14:36 C51ASMREG453.INC
文件 3072 2009-05-07 14:36 C51ASMREG504.INC
文件 3037 2009-05-07 14:36 C51ASMREG505C.INC
文件 2668 2009-05-07 14:36 C51ASMREG505L.INC
文件 4684 2009-05-07 14:36 C51ASMREG509.INC
文件 1705 2009-05-07 14:36 C51ASMREG51.INC
文件 2813 2009-05-07 14:36 C51ASMREG515.INC
文件 2833 2009-05-07 14:36 C51ASMREG515A.INC
文件 3216 2009-05-07 14:36 C51ASMREG515C.INC
............此处省略2108个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)