Question: Read Chapter 2 1 of the HCS 1 2 Microcontroller data sheet MC 9 S 1 2 C Family. And program 4 0 bytes of

Read Chapter 21 of the HCS12 Microcontroller data sheet MC9S12C Family. And program 40 bytes of data to the flash memory starting at $4800.
Instruction
Finish reading Chapter 21128Kbyte Flash Module of the HCS12 Microcontroller data sheet.
Study the sample Flash Memory program to store a short program in flash memory:
sample Flash Memory program for HCS12C128 board
Write your Flash Memory program to write 40 bytes to flash memory starting at $4800.
First 4 bytes of the 40 byte data must be your student ID number (last 4 digits) in ASCII code. For example, my ID will be $33, $34, $35, $36(that is '3456'). The remaining data must be an exact copy of the data block given in the sample Flash Memory program.
The sample Flash Memory program shows flash memory writing subroutine. You must write flash memory sector erase subroutine.
Flash memory must be erased before the data can be written. Because you will be writing only 40 bytes, erase only one sector (1024 bytes) starting at $4800.
Design the program to start at $3100 and data to start at $3000 as usual.
Be sure to put much comments so that you and others can clearly and quickly understand your program later. Comments are very important in assembly language programs.
Do NOT Turn-in your project source code file for this homework. This homework will not be counted as a homework, it is an exercise.
Congratulations on your CMPEN 472 Course completion!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!