Click here to Skip to main content
15,885,839 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to find whether my micro-controller is 8 bit or 16 bit using c or c++ program.
Posted

1 solution

You can't do that using a C program (or any other language and even assembler). Micro controllers have specific command sets. While controllers from one family may have identical or compatible command sets this is not true when the architecture is different. The architecture of 8, 16, and 32 bit controllers is different by design anf have therefore incompatible command sets.

You must always check the used controller type and use a compiler or assembler that supports it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900