|
![](static/image/common/ico_lz.png)
楼主 |
发表于 2005-11-10 16:26:34
|
显示全部楼层
// 控制引脚定义moto
DS_CS ----- /CS
DS_AS ----- AS
DS_READ(DS_WRITE) ----- R//W
DS_DS ----- DS
#define DS_CS0 cbi(PORTC,PC0)
#define DS_CS1 sbi(PORTC,PC0)
#define DS_AS0 cbi(PORTC,PC1)
#define DS_AS1 sbi(PORTC,PC1)
#define DS_READ sbi(PORTC,PC2)
#define DS_WRITE cbi(PORTC,PC2)
#define DS_DS0 cbi(PORTC,PC3)
#define DS_DS1 sbi(PORTC,PC3)
// 控制引脚定义intel
DS_CS ----- /CS
DS_ALE ----- AS
DS_WR ----- R//W
DS_RD ----- DS
#define DS_CS0 cbi(PORTC,PC0)
#define DS_CS1 sbi(PORTC,PC0)
#define DS_ALE0 cbi(PORTC,PC1)
#define DS_ALE1 sbi(PORTC,PC1)
#define DS_WR1 sbi(PORTC,PC2)
#define DS_WR0 cbi(PORTC,PC2)
#define DS_RD0 cbi(PORTC,PC3)
#define DS_RD1 sbi(PORTC,PC3)
贴好了! |
|