It would be interesting to know how the first C program was written for microcontroller. I am curious to know what would be the programmer approach when he is asked to write code for a new microcontroller by looking at the datasheet.
i think like this I would decide to have a header file and main.c file in my code
My real trouble would start when creating the header file for the microcontroller. I know MCU hardware header file will contain addresses of all hardware peripherals, registers, and names of all bits in all registers. All this information was given in the datasheet.
I have seen the header file of other microcontroller's hardware but that is beyond on my understanding. Everyone uses the preprocessor, but everyone's method is different. Overall we want the compiler to identify at which location we want to set the mode
There may be a different opinion here one may ask why you want to create header file when it is already available on internet. The answer is, I don't want to create a header file, I just want to understand how it is created. Why and how different processors are used
What would be your approach if someone ask you to write code including device header file for a new microcontroller by looking at the datasheet.
i think like this I would decide to have a header file and main.c file in my code
My real trouble would start when creating the header file for the microcontroller. I know MCU hardware header file will contain addresses of all hardware peripherals, registers, and names of all bits in all registers. All this information was given in the datasheet.
I have seen the header file of other microcontroller's hardware but that is beyond on my understanding. Everyone uses the preprocessor, but everyone's method is different. Overall we want the compiler to identify at which location we want to set the mode
There may be a different opinion here one may ask why you want to create header file when it is already available on internet. The answer is, I don't want to create a header file, I just want to understand how it is created. Why and how different processors are used
What would be your approach if someone ask you to write code including device header file for a new microcontroller by looking at the datasheet.