代码搜索结果
找到约 10,000 项符合
Timer 的代码
timer(soft).asm
ORG 00H
START: MOV DPTR,#TABLE ;设置段码表首地址
MOV R0,#00H ;计数值初始化
S1: MOV P3,#00H
MOV P2,#00H ;数码显示初始化
S2: MOV R1,#10
MOV A,R0
MOV B,R1
DIV AB ;分离计数值的十位和个位
timer.h
/*
Copyright (C)2003 Barry Dunne (http://www.emule-project.net)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as publi
timer.cpp
/*
Copyright (C)2003 Barry Dunne (http://www.emule-project.net)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as publi
timer.cls
VERSION 1.0 CLASS
BEGIN
MultiUse = -1 'True
Persistable = 0 'NotPersistable
DataBindingBehavior = 0 'vbNone
DataSourceBehavior = 0 'vbNone
MTSTransactionMode = 0 'NotAnMTSObject
timer.bas
Attribute VB_Name = "MTimer"
Option Explicit
' declares:
Private Declare Function SetTimer Lib "user32" (ByVal hwnd As Long, ByVal nIDEvent As Long, ByVal uElapse As Long, ByVal lpTimerFunc As Lo
timer.h
extern u32 TM_CN;//时钟遍数器
extern void TMstart();//开时钟
extern void TMend();//停止时钟
extern u32 get_time();//取得当前时钟
extern void wait(u8 count);//等待count秒
timer.c
#include
#include
#define RB_TM3D *(u16*)0x400010C//时钟
#define RB_TM3C *(u16*)0x400010E//时钟属性
#define RB_IME *(u16*)0x4000208//中断开关
#define TM_ON 128//开时钟
#define TM_BR
timer.c
//**********************************************************************
// Clock Start
//**********************************************************************
void ClkStart( void )
{
//BTCTL
timer.c
// 以下是有外时钟
#ifdef I2C_RX8025
#else
const unsigned char HowDay[]={
0x31, 0x28, 0x31,
0x30, 0x31, 0x30,
0x31, 0x31, 0x30,
0, 0, 0,
0, 0, 0,
0x31, 0x30, 0x31,
};
#endif
void ClkIn