Please anyone explain the meaning of this...

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Please anyone explain the meaning of this...

1,429件の閲覧回数
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,395件の閲覧回数
TomE
Specialist II
0 件の賞賛
返信

1,406件の閲覧回数
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,399件の閲覧回数
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,401件の閲覧回数
SBK_SBK_SBK_SBK
Contributor I

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

0 件の賞賛
返信