代码搜索:光子计数
找到约 7,260 项符合「光子计数」的源代码
代码结果 7,260
www.eeworm.com/read/286264/8775797
c t3.c
#include "reg51.h"
sbit P1_0=P1^0;
void Timer0() interrupt 1
{ static Count=0;/*静态变量计数器*/
Count++; /*每次中断计数器加1*/
if(Count>=20) /*如果计数器超过20*/
{ P1_0=!P1_0; /*取返P1.0*/
Count=0; /*计数器清零*/
www.eeworm.com/read/286264/8775828
lst t4.lst
C51 COMPILER V7.06 T4 02/28/2006 10:24:35 PAGE 1
C51 COMPILER V7.06, COMPILATION OF MODULE T4
OBJECT MODULE PLACED IN t4.O
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*