Please anyone explain the meaning of this...

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Please anyone explain the meaning of this...

1,422 次查看
SBK_SBK_SBK_SBK
Contributor I

#define testReg8Bits(RegName, GetMask) (RegName & (GetMask))
#define clrReg8Bits(RegName, ClrMask) (RegName &= (byte)(~(byte)(ClrMask)))
#define setReg8Bits(RegName, SetMask) (RegName |= (byte)(SetMask))
#define invertReg8Bits(RegName, InvMask) (RegName ^= (byte)(InvMask))
#define clrSetReg8Bits(RegName, ClrMask, SetMask) (RegName = (RegName & ((byte)(~(byte)(ClrMask)))) | (byte)(SetMask))
#define seqClrSetReg8Bits(RegName, BitsMask, BitsVal) ((RegName &= (byte)~((byte)~((byte)(BitsVal)) & ((byte)(BitsMask)))),\

can anyone please explain the meaning of this............

0 项奖励
回复
4 回复数

1,388 次查看
TomE
Specialist II
0 项奖励
回复

1,399 次查看
vicentegomez
NXP TechSupport
NXP TechSupport

Can you tell me the part number that you are using? 

 

this is part of a sample code? Processor expert?

 

 

0 项奖励
回复

1,392 次查看
TomE
Specialist II

If you look in the other THREE unrelated forums they're posting related questions to, the part is "MC9S08PT8".

I think the "the meaning of this" is that they don't know anything about C programming or the preprocessor. The ProcessorExpert system assumes you have experience with C Programming, the language before being able to use what it produces.

I'd suggest downloading as many App Notes with sample code as you can to get an idea of how these functions are used to make the CPU do what you want. Interrupts are really tricky (you don't call them, they call you).

Tom

 

0 项奖励
回复

1,394 次查看
SBK_SBK_SBK_SBK
Contributor I

yes. it is in IO MAP file. i am facing issue with the processor expert. 

0 项奖励
回复