Download presentation
Presentation is loading. Please wait.
1
Programming Examples Lecture L2.2
2
References S12CPUV2 Reference Manual S12CPUV2.pdf(in.zip file) CML-12C32 Manual Development Board for Motorola MC9S12C32 from Axiom (www.axman.com)
3
Programming Examples Assemblers MON12 Operation –Memory Map –Monitor Commands Example programs
4
Assemblers AxIDE –Comes with the CML-12C32 board –Integrated Development Environment AX12 –Older DOS version of HC12 assembler –Comes with the CML-12C32 board MiniIDE –My favorite IDE HC12 assembler –Available FREE from www.mgtek.com/miniide/www.mgtek.com/miniide/
5
MON12 Memory Map AddressMemory typeMemory Application $0000-$03FFMCU RegistersControl registers $0800-$0DFFInternal RAMUser RAM $0E00-$0F8BInternal RAMMonitor RAM $0F8A-$0FFFInternal RAMInterrupt Vectors $4000-$7FFFExternal RAMUser RAM $8000-$BFFFFLASH EEPROMUser Program $C000-$FFFFFLASH EEPROMMonitor Space
7
Open file Example1.asm Connect terminal
8
Assemble Example1.asm
9
Produces listing file, Example1.lst Type load, and then download file
10
Select Example1.s19 and click Open
11
Program downloads Type md 800 810
12
Type md 4000 4010 Type br 4012 to set breakpoint at $4012
13
Type rm (register modify) and change Program counter to 4000 Type g 4000 to execute program at $4000 Type rd (register display) to see new register values
14
Type md 800 810
15
What values will be in $800 - $80F after all instructions are executed?
16
What values will be in $800 - $80F after all instructions are executed?
17
What values will be in $800 - $80F after all instructions are executed?
18
What values will be in $800 - $80F after all instructions are executed?
19
What values will be in $800 - $80F after all instructions are executed?
20
What values will be in $800 - $80F after all instructions are executed?
21
What values will be in $800 - $80F after all instructions are executed?
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.