随笔分类 -  单片机

8位,16位单片机
摘要:定时器模块1:输出比较#include <hidef.h> /* common defines and macros */#include <mc9s12db128.h> /* derivative information *///void interrupt 8 aabreak(void); //此行可以注释掉*******unsigned int flag=0;void main(void) { EnableInterrupts; TFLG1=0x01; //清中断标志位 DDRB=0xff; PORTB=0xff; //将B口定义为输出,首先输出全0 TS... 阅读全文
posted @ 2011-08-23 11:11 Orig 阅读(630) 评论(0) 推荐(0)
摘要:/ Net ETH.C//// This module is the Ethernet layer//----------------------------------------------------------------------------#include#include#include "C8051f.h"#include "net.h"#include "serial.h"#include "arp.h"#include "ip.h"#include "eth.h&q 阅读全文
posted @ 2011-08-23 10:52 Orig 阅读(561) 评论(0) 推荐(0)