Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/24/08 00:41
Read: times


 
#159291 - Detecting MCU Model in code
Hi all

I have identical hardware with different MCUs on it. (I suppose it is not technically identical then - but you get the idea)

The MCUs are C8051F041 and C8051F047 both from Silabs and only slightly different in specs, I am using the ADC's on them and one of them is 12bit and the other 10bit,


I scale the code differently dependant on the resolution however I have to have 2 different compilations as this is done using #define(s)

I also use the upper limit of the flash for a little bit of "EEPROM" but this upper limit changes dependant on the processor type.

I would like to know if there is a way to determine what the processor is from the code. (i.e. an internal memory address I can read) so that I can make the code more dynamic and therefore accommodate both MCU types with a common code base.

I know that the information must be in there somewhere as it appears on the flash programmer application from Silabs.

I suppose this also raises the question, what else is in there that might be useful????


Will cross post this at Silabs.

Regards

Marshall



List of 11 messages in thread
TopicAuthorDate
Detecting MCU Model in code            01/01/70 00:00      
   you can't get it, what I do is            01/01/70 00:00      
   Another Way....            01/01/70 00:00      
   Different micros            01/01/70 00:00      
      That's a good idea.            01/01/70 00:00      
         Reading Flash doesn't work            01/01/70 00:00      
            Definitely not reliable!            01/01/70 00:00      
               do not know, but guess that ...            01/01/70 00:00      
   Detecting MCU            01/01/70 00:00      
   Why need to identify?            01/01/70 00:00      
      ADC noise            01/01/70 00:00      

Back to Subject List