代码搜索:Timer0
找到约 1,870 项符合「Timer0」的源代码
代码结果 1,870
www.eeworm.com/read/108111/15594291
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
www.eeworm.com/read/190295/8444977
c timer0.c
/* ------------------------------------------------------------------------
File : timer0.c
Descr : ATMEL AVR microcontroller Timer/Counter0 routines.
History: 23MAR.01; Henk B&B; Timer0 use
www.eeworm.com/read/290829/8458824
c f02x_timer0_13bittimer.c
//-----------------------------------------------------------------------------
// F02x_Timer0_13bitTimer.c
//-----------------------------------------------------------------------------
//
// Co
www.eeworm.com/read/290829/8458827
c f02x_timer0_8bitreloadtimer.c
//-----------------------------------------------------------------------------
// F02x_Timer0_8bitReloadTimer.c
//-----------------------------------------------------------------------------
// C
www.eeworm.com/read/286264/8775885
c c2.c
/**************************************************************
* 平凡单片机工作室
* http://www.mcustudio.com
* Copyright 2003 pingfan's mcustudio
* All rights Reserved
*作者:周坚
*C2.c 对外部信号计数
www.eeworm.com/read/365092/9879747
txt 新建 文本文档.txt
#include
void timer0(void) interrupt 1 using 1{
P3_2=!P3_2;
TH0=(65536-50000)/256;//50MS定时 (用12M的晶振)---高8位
TL0=(65536-50000)%256;//低8位
}
void main (void){
TMOD=0x01;
P3_2=0;
www.eeworm.com/read/168861/9891254
c time31.c
#include
sbit P1_0=P1^0;
void timer0(void) interrupt 1 using 1{
P1_0=!P1_0;
TH0=(65536-1000)/256;
TL0=(65536-1000)%256;
}
void main(void) {
TMOD=0x01;
P1_0=0;
TH0=(65
www.eeworm.com/read/168861/9891259
c time33.c
#include
sbit P1_0=P1^0;
sbit P1_7=P1^7;
timer0() interrupt 1 using 1 {
P1_0=!P1_0;
TH0=(65536-50000)/256;
TL0=(65536-50000)%256;
}
timer1() interrupt 3 using 2 {
P1_7=!P1_7
www.eeworm.com/read/163253/10168394
c int2s.c
/*fosc=12MHz,要求P1.0输出T=200ms的方波,P1.7输出T=2s的方波.*/
/*使用两个定时中断*/
#include
sbit p1_0=P1^0;
sbit p1_7=P1^7;
unsigned char i=0;
timer0()interrupt 1 using 1
{p1_0=!p1_0;
TH0=-50000/256;
TL0
www.eeworm.com/read/351556/10640293
lst t0_m1_t_gh.lst
A51 MACRO ASSEMBLER T0_M1_T_GH 04/16/2004 11:26:26 PAGE 1
MACRO ASSEMBLER A51 V7.07
OBJECT MODULE PLACED IN t0_m1_t_gh.OBJ
ASSEMBL