导航: 老古网老古论坛XMOS公共讨论区XMOS开源项目区单片机程序设计嵌入式系统广告区域
→# include < reg52.h>
 typedef

* 61238: [求助]请高手帮忙修改程序

   guest 
guest发表的帖子 

 
# include   < reg52.h>  
 typedef unsigned char byte
 byte count.low
byte count.high
int count_value
 void clock0_initial ( ) reentrant using 0
{ TCON=0X00;
   TH0=0X00;
   TL0=0X00;
   TR0=1;
}
 void count_module (byte a )
{do
{ count_high=TH0;count_low=tl0;RESETCS=1;
} while (count_high!=TH0);
 }
   Void main ()
{ TMOD=0x05;
  clock0_initial ( );
  ET0=1;
  EA=1;
  do { count_module (1); } P1=CNT=>  8;P2=CNT;
while (1); }
  void clk_int(void) interrupt 1 using 0
  { count_value=count_value+1;
    clock1_initial (1);
   }



发表时间:2004年8月28日16:49:14

  
回复该帖

本主题共有 2 帖,分页:>>>>>该主题的所有内容[2]条

 *树形目录 只列出部分跟帖的标题以及简单的摘要信息 该主题的部分跟帖如下:

[上一篇帖子]:老古的L32K拜托了,楼主,您在老古的网站上竟然还问这个问题,看看老古的L32K吧,唯一支持串口调试
[下一篇帖子]:已经回复了吧?九个“1”at0592@tom.com