随笔分类 - 单片机
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...
        阅读全文
            
摘要:/ 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
        阅读全文
            
 
                    
                     
                    
                 
                    
                 
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号