How do I determine in code which micro is being used

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

How do I determine in code which micro is being used

ソリューションへジャンプ
1,230件の閲覧回数
larrydemuth
Contributor III

With the disaster with getting NXP (and others) micros, I'm looking into switching to one that is available. But in my code I need to be able to tell which one I'm using. 

Is there a register or set of registers that would tell me if I'm using a MK66FN2M, or other micro?

ラベル(1)
0 件の賞賛
返信
1 解決策
1,219件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi larrydemuth,

You can check the value of System Device Identification Register (SIM_SDID).

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,208件の閲覧回数
larrydemuth
Contributor III

Thats what I was looking for! Thanks!

0 件の賞賛
返信
1,220件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi larrydemuth,

You can check the value of System Device Identification Register (SIM_SDID).

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 件の賞賛
返信