标题: N76E003 SFR_Macro.h 問題 .長月 [打印本页] 作者: 匿名 时间: 2020-5-1 14:07 标题: N76E003 SFR_Macro.h 問題 .長月 N76E003的SFR_Macro.h裡面關於P0S的描述如下
//**** P0S B2H PAGE1 **** SFRS must set as 1 to modify this register
#define set_P0S_7 BIT_TMP=EA;TA=0xAA;TA=0x55;SFRS=0x010S|=SET_BIT7;TA=0xAA;TA=0x55;SFRS=0x00;EA=BIT_TMP
關於P0SR的描述如下
//**** P0SR B0H PAGE1 **** SFRS must set as 1 to modify this register
#define set_P0SR_7 BIT_TMP=EA;TA=0xAA;TA=0x55;SFRS=0x010SR|=SET_BIT7;TA=0xAA;TA=0x55;SFRS=0x00;EA=BIT_TMP