Interrupts.#3
上传用户:gxz1972
上传日期:2019-09-13
资源大小:323k
文件大小:1k
- //-----------------------------------------------------------------------------
- // Interrupts.c
- //-----------------------------------------------------------------------------
- // Copyright 2007 Vson Technology, Inc.
- // http://www.usbmcu.com
- //
- // Program Description:
- //
- //
- //
- //
- //
- // MCU: C8051F347
- // Tool chain: Keil C51 7.50 / Keil EVAL C51
- // Silicon Laboratories IDE version 2.6
- // Command Line:
- // Project Name: TR1000
- //
- //
- // Release 1.0
- // -All changes by Brin Cai
- // -24 JUL 2007
- //
- //
- //-----------------------------------------------------------------------------
- // Includes
- //-----------------------------------------------------------------------------
- #include "Include_H.h"
- //---------------------------------------------
- void TIMER2_ISR () interrupt 5 //10ms interrupt
- {
- TF2H = 0;
- if(gwDelayCnt>0)
- {
- gwDelayCnt--;
- }
- if (gwDelayCnt==0)
- {
- bitClearStudentIdBuffer = 1;//clr Student Id buffer
- }
- }
- /*
- void TIMER3_ISR () interrupt 14 //10ms interrupt
- {
- TF3H = 0;
- if(gwDelayCnt>0)
- {
- gwDelayCnt--;
- }
- }
- */
- //-----------------------------------------------------------------------------
- // End Of File
- //-----------------------------------------------------------------------------