代码搜索:Timer0
找到约 1,870 项符合「Timer0」的源代码
代码结果 1,870
www.eeworm.com/read/317262/13506758
c ledscan.c
#include "reg52.h"
unsigned char code led[]={0x3f,0x06,0x5b,0x4f};
unsigned char i=0;
unsigned char code1;
void initTimer(void)
{
TMOD=0x01;
TH1=0x15;
TL1=0xa0;
}
void timer0(v
www.eeworm.com/read/304476/13793441
txt 中断程序框架.txt
ORG 0000H
LJMP START
ORG 0003H ;外部中断0
LJMP INT0_ISR
ORG 000BH ;定时器中断0
LJMP TIMER0 ;
ORG 0013H ;?
LJMP INT1_ISR ;外部中断1
ORG 001BH ;
LJMP TIMER1 ;定时器中断1
ORG 0023H ;串行口中断
LJMP
www.eeworm.com/read/303280/13819003
txt 新建 文本文档.txt
#include "reg51.h"
sbit P10=P1^0;
void main(void)
{
TMOD=00H;
TH1= F0H;
TL0=0CH;
EA=1;
ET0=1;
TR0=1;
}
timer0() interrupt 1
{
TH1= F0H;
TL0=0CH;
P10=~P10;
}
www.eeworm.com/read/152021/5677582
c 4-8.c
#include
unsigned int interruptcnt;
unsigned char second;
void timer0 (void) interrupt 1 using 2
{
if (++interruptcnt == 4000)
{
second
www.eeworm.com/read/151225/5685224
c int2ms.c
/*fosc=12MHz,要求P1.0输出T=2ms的方波.*/
/*使用中断方式*/
#include
sbit p2_0=P2^0;
timer0() interrupt 1 using 1
{p2_0=!p2_0;
TH0=0xff;TL0=0xce;
}
main()
{TMOD=0X01;
P1=0x00;
P2=0x00;
P0=0x00;
www.eeworm.com/read/142200/5765827
c int2ms.c
/*fosc=12MHz,要求P1.0输出T=2ms的方波.*/
/*使用中断方式*/
#include
sbit p2_0=P2^0;
timer0() interrupt 1 using 1
{p2_0=!p2_0;
TH0=0xff;TL0=0xce;
}
main()
{TMOD=0X01;
P1=0x00;
P2=0x00;
P0=0x00;
www.eeworm.com/read/257819/6336827
c time.c
#include
unsigned int timeerout=0;
void DelayMs( unsigned int ms )
{
StartTimer( ms );
while( timeerout );
StopTimer( );
}
void timer0 (void) interrupt 1
{
if( timeerout
www.eeworm.com/read/257819/6336841
lst time.lst
C51 COMPILER V8.02 TIME 07/25/2007 14:04:25 PAGE 1
C51 COMPILER V8.02, COMPILATION OF MODULE TIME
OBJECT MODULE PLACED IN ti
www.eeworm.com/read/493039/6405235
asm min30.asm
.include "c:\appnotes\2333def.inc"
.org $000
rjmp main
.org $006
rjmp timer0
.org $008
rjmp SPI_TXC
www.eeworm.com/read/478036/6718461
asm exec066.asm
ORG 0000H
AJMP START
ORG 000BH
AJMP TIMER0 ;定时器0的中断处理
ORG 30H
START:
MOV SP,#5FH
MOV TMOD,#00000101B ;定时/计数器1作计数用,模式1,0不用全置0
MOV TH0,#0FFH
MOV TL0,#0FAH ;预置值,要求每计到6个脉冲即为一个事件
SETB EA
S