资料介绍
单片机资料
#include
/**************************************************
* HardDisk Control Demo
* Power BY DDDLZHU
* 编译环境 : KEIL C51 V7.07 支持器件 : AT89C51
* COPYRIGHT (C) 2004
***************************************************/
#define byte unsigned char
#define uint unsigned int
/*************************************************
//线路连接定义。如电路有变直接修改就可以了
*************************************************/
#define DataH P1
#define DataL P0
#define RegAddr P2
#define Read P3_4
#define Write P3_3
#define Rst P3_2
/*************************************************
//线路连接定义。如电路有变直接修改就可以了
*************************************************/
//寄存器地址定义
#define _Status_Control 0x16
#define _Data 0x8
#define _Err