??? 11/04/08 12:08 Modified: 11/04/08 12:17 Read: times |
#159621 - Why need to identify? Responding to: ???'s previous message |
Actually, do you need to identify the MCU type for these two chips?
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) Set the ADC left-justified. Then, you get (almost) same ADC result for the same input voltage, either on 10bit/12bit ADC. Just the resolution is different. 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. Use the same FLASH address for both type. You don't need to stick to "upper most" address. No need to identify the types, just for above two reasons. Any other? Tsuneo |
Topic | Author | Date |
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 |