代码搜索:Timer0
找到约 1,870 项符合「Timer0」的源代码
代码结果 1,870
www.eeworm.com/read/286264/8775837
c t4.c
#include "reg51.h"
sbit P1_0=P1^0;
sbit P1_1=P1^1;
void Timer0() interrupt 1
{ static Count1=0;
static Count2=0;/*静态变量计数器*/
Count1++; /*每次中断计数器加1*/
Count2++;
if(Count1>=10) /*如果计数器超过20*
www.eeworm.com/read/428838/8836336
asm n10-2-1.asm
;N10-2-1.ASM
;XTAL=11.0592MHz
$MOD51
RESET EQU 0000H
ENTRY_T0 EQU 000BH
P_START EQU 0030H
SCOPE_CH1 EQU P1.0
MS10 EQU -9217 ;10ms
V_H EQU HIGH(MS10)
V_L EQU LOW(MS10)
;
ORG RESET
www.eeworm.com/read/428838/8836350
asm 9-7-2.asm
;9-7-2.ASM
$MOD51
ORG 0000H
START: MOV TMOD,#11H ; SET TIMER0 TO MODE1
MOV TH0,#0FEH ; (65536-461) / 256
MOV TL0,#33H ; (65536-461) % 256
SETB TR0 ; START TIMER0
;
LOOP: JNB TF0,LOOP ; WA
www.eeworm.com/read/428838/8836355
asm 9-4-1.asm
;9-4-1.ASM
$MOD51
ORG 0000H
START: MOV TMOD,#11H ; TIMER0 = MODE1 (1)
MOV TH0,#0D8H ; (65536-10000) / 256 (2)
MOV TL0,#0F0H ; (65536-10000) % 256
SETB TR0 ; START TIMER0 (3)
;
L
www.eeworm.com/read/428838/8836359
asm 9-6-1.asm
;9-6-1.ASM
$MOD51
ORG 0000H
START: MOV R0,#100 ; TIMER BUFFER (1)
MOV TMOD,#11H ; SET TIMER0 TO MODE1
MOV TH0,#0D8H ; (65536-10000) / 256
MOV TL0,#0F0H ; (65536-10000) % 256
SETB TR0 ;
www.eeworm.com/read/428838/8836366
asm 9-8-2.asm
;9-8-2.ASM
$MOD51
ORG 0000H
START: MOV TMOD,#11H ; SET TIMER0 TO MODE1
MOV TH0,#0FEH ; (65536-461) / 256
MOV TL0,#33H ; (65536-461) % 256
SETB TR0 ; START TIMER0
;
LOOP: JNB TF0,LOOP ; WA
www.eeworm.com/read/428838/8836374
asm 9-4-2.asm
;9-4-2.ASM
$MOD51
ORG 0000H
START: MOV TMOD,#11H ; SET TIMER0 TO MODE1
MOV TH0,#0D8H ; (65536-10000) / 256
MOV TL0,#0F0H ; (65536-10000) % 256
SETB TR0 ; START TIMER0
;
LOOP: JNB TF0,LOOP
www.eeworm.com/read/428838/8836429
asm 10-3-1.asm
;10-3-1.ASM
$MOD51
ORG 0000H ; PROGRAM START POINT (1)
LJMP START ; GOTO MAIN PROGRAM (2)
ORG 000BH ; TIMER0 INTERRUPT POINT (3)
LJMP T0_ISR ; GOTO TIMER0 INTERRUPT PROGRAM (4)
;
www.eeworm.com/read/285157/8864458
c timer0.c
// timer0
#include "at17c.h"
extern volatile unsigned char t0_timed_out;
interrupt [TIMER0_OVF0_vect] void TIMER0_OVF0_interrupt(void) {
t0_timed_ou
www.eeworm.com/read/186636/8921416
lst timer0.lst
C51 COMPILER V7.01 TIMER0 07/29/2006 11:05:16 PAGE 1
C51 COMPILER V7.01, COMPILATION OF MODULE TIMER0
OBJECT MODULE PLACED IN