Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell EEPROM -- 9S12DP256 EETS4K Block Guide.

Slides:



Advertisements
Similar presentations
EE 362 Microprocessor Systems and Interfacing © 1-1 Lecture 1: Introduction to Microprocessor Based Systems Microprocessor Architecture Microprocessor.
Advertisements

HCS12 Arithmetic Lecture HC12 Arithmetic Addition and Subtraction Shift and Rotate Instructions Multiplication Division.
The 68HC11 Microcontroller Minnesota State University, Mankato
H. Huang Transparency No.1-1 The 68HC11 Microcontroller Chapter 1: Introduction to 68HC11 The 68HC11 Microcontroller.
Chapter 14 Memory System.
Non-Volatile Memory Jeremy Searle Feb. 4 th, 2004 Tech Topic Presentation.
Introduction to Computer Engineering by Richard E. Haskell 8086 Tutor Monitor Module M14.3 Section 9.3 Appendix B.
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell WHYP -- An Extensible Language Chapter 4.
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell Introducing the 68HC12 Chapter 1.
Subroutines and Stacks Lecture L3.1. Subroutine and Stacks The System Stack Subroutines A Data Stack.
Chapter 1 Introduction to HCS12/MC9S12. Computer Hardware Organization What is a Computer? Software Hardware.
Programming the HC12 in C. Some Key Differences – Note that in C, the starting location of the program is defined when you compile the program, not in.
1 ECE 372 – Microcontroller Design Basic Assembly Programming for(j=0; j
Micro-controller or embedded controller
1 ECE 263 Embedded System Design Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System.
1-1 Ramesh Yerraballi EE 319K Introduction to Microcontrollers Lecture 1: Introduction, Embedded Sys, Product Life- Cycle, 9S12 Programming.
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell 68HC12 Arithmetic Chapter 3.
The Serial Communication Interface (SCI) MC9S12-DP256 Chapter 11.
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell Subroutine and Stacks Chapter 2.
The Serial Peripheral Interface (SPI)
MICRO-CONTROLLER MOTOROLA HCS12 Addressing Modes Mechatronics Department Faculty of Engineering Ain Shams Univeristy.
HCS12 Technical Training Module 14-NVM, Slide 1 MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office. All other product.
Dr. Hoganson CSIS Segment Display and Count by 16 This is our third lab using the 68HC11 microcontroller. We will write a program that counts by.
Emulated EEPROM Function for Data storage (ref. 908LJ12)
Revised: Aug 1, ECE 263 Embedded System Design Lesson 1 68HC12 Overview.
ME4447/6405 The George W. Woodruff School of Mechanical Engineering ME4447/6405 Microprocessor Control of Manufacturing Systems and Introduction to Mechatronics.
EECC250 - Shaaban #1 Lec # 20 Winter Microcontroller Basics A microcontroller is a small, low-cost computer-on-a-chip which usually includes:
HC08 ARCHITECTURE DETAILS
ECE Lecture 1 Microcontroller Concepts. Basic Computer System CPU Memory Program + Data I/O Interface Parallel I/O Device Serial I/O Device Data.
ECE Lecture 13 Motorola 68HC11. Resources 68HC11 E-series Reference Guide and if necessary 68HC11 E-series Technical Data 68HC11 Reference Manual.
ELECTRICAL ENGINEERING: PRINCIPLES AND APPLICATIONS, Third Edition, by Allan R. Hambley, ©2005 Pearson Education, Inc. Chapter 8 Microcomputers.
Princess Sumaya University
George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction.
Flash Memory. Points of Discussion  Flash Memory Generalities  Construction & Properties  History of Flash Memory  NOR & NAND Architectures  Optimizations.
6-1 EE 319K Introduction to Microcontrollers Lecture 6: Indexed Addressing Mode and Variants, Functional Debugging, Arrays, Strings.
3-1 EE 319K Introduction to Microcontrollers Lecture 3: Addressing modes, Memory Operations, Subroutines, I/O, Logical/Shift Operations.
Q1 Assume that we determine 2 virtual sectors, and each sectors contain 8 data blocks. If we want to store 9 data in VS0, then this VS0 is insufficient.
1 ECE 372 – Microcontroller Design Assembly Programming HCS12 Assembly Programming Addressing Modes Stack Operations Subroutines.
EE 345 Class Notes EE345 Midterm Review Dr. Jane Dong.
1 Introduction to Microcontroller Microcontroller Fundamentals & Programming.
8-1 EE 319K Introduction to Microcontrollers Lecture 8:Fixed Point Numbers, Local Variables, Binding, Allocation, Access, Deallocation.
The Serial Communication Interface (SCI) MC9S12-C32
1 Microcontroller Fundamentals & Programming Addressing Modes.
ECE 371 Microprocessor Interfacing
ECE 447: Lecture 2 Internal Input/Output Devices A/D Converter.
Subroutines and Stacks. Stack The stack is a special area in memory used by the CPU to store register information or general data information during program.
1 Bringing it all together: Exploring the EVB Today: First Hour: Bringing it all together by exploring the EVB –Section of Huang’s Textbook.
1 Subroutines Advanced Programming. 2 Top-Down approach to problem solving Algorithm step by step description of how to solve a problem Divide and Conquer.
George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction.
EE345 Chapter 2 Lecture 3 April 4. Quiz every Wednesday 1 quiz = 1% extra credit five quizzes before midterm  5% for midterm. five quizzes before final.
1 ECE 372 – Microcontroller Design Basic Assembly Programming for(j=0; j
ECE 447: Lecture 3 Microcontroller Programming in C.
Revised: Aug 1, EE4390 Microprocessors Lessons 11, 12 Advanced Assembly Programming.
George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction.
EE345 Chapter 2 Lecture 3 April Instruction and addressing modes 1.Extended Addressing 2.Direct Addressing 3.Inherent Addressing 4.Immediate Addressing.
HCS 335 Complete Class To purchase this material click below link 335-Complete-Class-Guide For more classes.
Fundamentals of Computer Engineering
Place your image on top of this gray box. If no graphic is
ECE 3430 – Intro to Microcomputer Systems
Presented By: Rob Douglas, Alex Alexandrov
ECE 3430 – Intro to Microcomputer Systems
General Purpose I/O.
Fuzzy Control Design of Embedded Systems
ME4447/6405 Microprocessor Control of Manufacturing Systems and
The CPU12 Microprocessor Core
ME 4447/6405 Microprocessor Control of Manufacturing Systems and
STORE MANAGER RESPONSIBILITIES.
Place your image on top of this gray box. If no graphic is
ME 4447/6405 Microprocessor Control of Manufacturing Systems and
Flash & EEPROM Module NVM.
Presentation transcript:

Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell EEPROM -- 9S12DP256 EETS4K Block Guide

Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell EEPROM MC12S-DP256 –4 Kbytes of EEPROM –$ $0FFF –$FEC – FFF used for autostart in CML 12S-DP256

Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell

; STORE WORD D AT ADDRESS Y AND Y+1 EESTD TSTESTAT BPLEED3 STD0,Y LDAA#$20;program word STAAECMD LDAA#$80 STAAESTAT;launch the command LDAAESTAT BITA#$20;test PVIOL BNEEED1 LDAA#$20 STAAESTAT;clear PVIOL BRAEED3 EED1BITA#$10;test ACCERR BNEEED2 LDAA#$10 STAAESTAT;clear ACCERR BRAEED3 EED2LDAAESTAT;wait for command to finish BPLEED2 EED3RTS

Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell ; ERASE 2 WORDS AT ADDRESS Y to Y+3 ERASE TSTESTAT BPLERS3 LDD#0 STD0,Y;address in sector LDAA#$40;erase sector STAAECMD LDAA#$80 STAAESTAT;launch the command LDAAESTAT BITA#$20;test PVIOL BNEERS1 LDAA#$20 STAAESTAT;clear PVIOL BRAERS3 ERS1BITA#$10;test ACCERR BNEERS2 LDAA#$10 STAAESTAT;clear ACCERR BRAERS3 ERS2LDAAESTAT;wait for command to finish BPLERS2 ERS3RTS

Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell ; EE! ( n addr -- ) EEST LDY 2,X+ LDD0,Y CPD#$FFFF;if not FFFF BEQEES1 JSRERASE;erase sector EES1LDD 2,X+ JSR EESTD;program D RTS

Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell ; ERASE.BULK ( -- ) BULKE TSTESTAT BPLERB3 LDD#0 STDEESTART;write anything to EEPROM LDAA#$41;erase bulk STAAECMD LDAA#$80 STAAESTAT;launch the command LDAAESTAT BITA#$20;test PVIOL BNEERB1 LDAA#$20 STAAESTAT;clear PVIOL BRAERB3 ERB1BITA#$10;test ACCERR BNEERB2 LDAA#$10 STAAESTAT;clear ACCERR BRAERB3 ERB2LDAAESTAT;wait for command to finish BPLERB2 ERB3RTS