6位7段LED数码管显示(19)
时间:2025-04-20
时间:2025-04-20
/////----- 数码管每一位的控制脚设定 -----///// .DATA PIN_DIG:
.DW 0x0004,0x0008,0x0010,0x0020;
/////----- 数码管所有位的控制脚设定,应等于PIN_DIG所有数之和 -----///// .DEFINE PIN_DIG_ALL 0x003C
//================================================ // 不必修改下面的定义
//================================================ .IF SEG_IO_Port==0
.DEFINE P_SEG_Data 0x7000 .DEFINE P_SEG_Buf 0x7001 .DEFINE P_SEG_Dir 0x7002 .DEFINE P_SEG_Attrib 0x7003 .ELSE
.DEFINE P_SEG_Data 0x7005 .DEFINE P_SEG_Buf 0x7006 .DEFINE P_SEG_Dir 0x7007 .DEFINE P_SEG_Attrib 0x7008 .ENDIF
.IF SEG_IO_HighByte==0
.DEFINE PIN_SEG_ALL 0x00ff .ELSE
.DEFINE PIN_SEG_ALL 0xff00 .ENDIF .IF DIG_IO_Port==0
.DEFINE P_DIG_Data 0x7000 .DEFINE P_DIG_Buf 0x7001 .DEFINE P_DIG_Dir 0x7002 .DEFINE P_DIG_Attrib 0x7003 .ELSE
.DEFINE P_DIG_Data 0x7005 .DEFINE P_DIG_Buf 0x7006 .DEFINE P_DIG_Dir 0x7007 .DEFINE P_DIG_Attrib 0x7008 .ENDIF
//================================================ // 中断常量定义