ECE362_Exam_1_Review

ECE362_Exam_1_Review - This is a review session; you may be...

Info iconThis preview shows pages 1–12. Sign up to view the full content.

View Full Document Right Arrow Icon
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is a review session; you may be familiar with some of the material. If you don’t understand something, speak up! Other people will have the same question, don’t worry. If I make a mistake, point it out ! There’s no use in people learning the wrong thing.
Background image of page 2
I’m going to talk for ~1 hour about things that I think will be helpful for the exam. We’ll take a quick stretch break (~5 minutes). We can go over clicker quiz questions (and answers) Also, homework problems and practice exam questions.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
When: 30-minutes after the start of your scheduled lab (7:30 -> 8:00 , 11:30 -> 12:00 , 2:30 -> 3:00 ) Where: 362 Lab (EE 069) What: 30 multiple choice questions (75% of exam grade) Programming section (25% of exam grade) 2 hours to complete entire test Allot enough time to complete programming section successfully!
Background image of page 4
These are places to store values into that you want to operate on. 16-bit registers PC (Program Counter) SP (Stack Pointer) D (A:B) X, Y (Index Registers) 8-bit registers A, B (Accumulator Registers) Condition Code Register (CCR) Contains N,V,Z,C flags (among others) 8-bits
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
We have two different types of memory on the 9S12 SRAM (2 kilobytes) Read/Write Volatile storage space (erase on power loss) Flash (32 kilobytes) Read-only! Non-volatile storage space (doesn’t get erased on power loss) Register Space 2KB of SRAM 32KB of Flash
Background image of page 6
Flash is where you can store data that will not be modified during runtime For example, a program (this will be important next module) You cannot write to flash memory space (for all practical purposes) Flash is mapped to addresses $8000-$FFFF (32K of address space) Think of it as:
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
SRAM is write- modifiable (you can store to it) SRAM is mapped to addresses $0800- $0FFF “The stack” exists at the top of SRAM Anything you store in SRAM will not persist Think of it as:
Background image of page 8
Notice the SP is pointing to an invalid address. Will this work? Yes! The SP gets pre- incremented before a store (PSH instruction) Why would we want originate the stack at this address? It allows for maximum utilization of the memory between the stack and the program. $0FFA $0FFB $0FFC $0FFD $0FFE $0FFF $1000 Decreasin g Addresse s S P
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
PSH (push) instruction SP pre-decrement Store to SP PUL (pull) instruction Load from SP SP post-increment $0FFA $0FFB $0FFC $0FFD $0FFE $0FFF $1000 Decreasin g Addresse S P Question: What happens to the value in memory after something is “deallocated” LDD #$3456 (D) <= $3456 PSHD PSHA PULD (D) <= $3434 PULB (B) <= $56 S P S P S P
Background image of page 10
Don’t forget! 800h == $800
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 12
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 39

ECE362_Exam_1_Review - This is a review session; you may be...

This preview shows document pages 1 - 12. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online