Curriculum Development for ENGR 290 Introduction to Microcontroller

Slides:



Advertisements
Similar presentations
MC68HC11 System Overview. System block diagram (A8 version)
Advertisements

What is Arduino?  Arduino is a ATMEL 168 micro-controller kit designed specially for small projects  User friendly IDE(Integrated Development Environment)
TM Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc.
7/23 CSE 325 Embedded Microprocessor System Design Fall 2010 Computer Science & Engineering Department Arizona State University Tempe, AZ Dr. Yann-Hang.
Microcontroller – PIC – 4 PIC types PIC architecture
ARM development environment Modified Content Philips LPC2106 ARM chip ARM target board PSPad customised development environment Troubleshooting.
Chapter 3 HCS12 Members and Hardware and Software Development Tools.
Introduction to Microprocessors Number Systems and Conversions No /6/00 Chapter 1: Introduction to 68HC11 The 68HC11 Microcontroller.
1 Color Discriminating Tracking System Lloyd Rochester Sam Duncan Ben Schulz Fernando Valentiner.
CMPE 118 MECHATRONICS CMPE 118/L Introduction to Mechatronics Tu-Th 4:00-5:45pm, Jack Baskin Engineering 372 Lab: Jack Baskin Engineering 150, 24/7 Instructor:
DMX512 Programmable Theater Lighting Controller Jeff Sand and Kris Kopel Advisor: Dr. Don Schertz May 8, 2001.
Coordinate Based Tracking System
1-1 Embedded Software Development Tools and Processes Hardware & Software Hardware – Host development system Software – Compilers, simulators etc. Target.
1 ECE 263 Embedded System Design Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System.
AVR 8-bit RISC micro controllers by Atmel Seamk / ICT / Seppo Stenberg General features of AVR family Development tools - board, compiler, simulator etc.
Microcontroller Architecture— PIC18F Family
The 8051 Microcontroller Architecture
ASPPRATECH.
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective.
© 2010 Kettering University, All rights reserved..
Microcontroller Architecture PIC18F Family
BLDC MOTOR SPEED CONTROL USING EMBEDDED PROCESSOR
SKP8CMINI-15,17 Tutorial 1 Software Development Process using HEW4
Embedded System Spring, 2011 Lecture 3: The PIC Microcontrollers Eng. Wazen M. Shbair.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
Fundamental of Microcontrollers
Introduction Purpose Objectives Content Learning Time
Silicon Labs ToolStick Development Platform
The 6713 DSP Starter Kit (DSK) is a low-cost platform which lets customers evaluate and develop applications for the Texas Instruments C67X DSP family.
MICROCONTROLLERS. What is a microcontroller? A microcontroller is a nifty little gadget that houses a microprocessor, ROM (Read Only Memory), RAM (Random.
NetBurner MOD 5282 Network Development Kit MCF 5282 Integrated ColdFire 32 bit Microcontoller 2 DB-9 connectors for serial I/O supports: RS-232, RS-485,
LSU 10/22/2004Serial I/O1 Programming Unit, Lecture 5.
Arduino Josh Villbrandt February 4, Digital Circuits Analog versus digital – What’s the difference? – How to represent an analog signal in a computer?
Slides created by: Professor Ian G. Harris Test and Debugging  Controllability and observability are required Controllability Ability to control sources.
Revised: Aug 1, ECE 263 Embedded System Design Lesson 1 68HC12 Overview.
1 SERIAL PORT INTERFACE FOR MICROCONTROLLER EMBEDDED INTO INTEGRATED POWER METER Mr. Borisav Jovanović, Prof.dr Predrag Petković, Prof.dr. Milunka Damnjanović,
PS - 87C51Mx2 - SLS-1 Philips Semiconductors 87C51Mx2 Microcontroller.
Prepared by Eng. Musa Alyaman1 Chapter Seven Chapter Seven PIC16F87x.
Other Chapters From the text by Valvano: Introduction to Embedded Systems: Interfacing to the Freescale 9S12.
ECE Lecture 1 Microcontroller Concepts. Basic Computer System CPU Memory Program + Data I/O Interface Parallel I/O Device Serial I/O Device Data.
MICROPROCESSOR AND MICRO CONTROLLER
Chapter 2 Introducing the PIC Mid-Range Family and the 16F84A The aims of this chapter are to introduce: The PIC mid-range family, in overview The overall.
25 April 2000 SEESCOASEESCOA STWW - Programma Evaluation of on-chip debugging techniques Deliverable D5.1 Michiel Ronsse.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
Presented by Sadhish Prabhu
Lecture 7: Overview Microprocessors / microcontrollers.
ChibiOS/RT Demo A free embedded RTOS
Features of the PIC18 microcontroller - 8-bit CPU - 2 MB program memory space (internal 32KB to 128KB) bytes to 1KB of data EEPROM - Up to 4096 bytes.
ECE 371 Microprocessor Interfacing
HCS12 Technical Training Module 15 – Break Module Slide 1 MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office. All other.
Submitted by:.  Project overview  Block diagram  Power supply  Microcontroller  MAX232 & DB9 Connector  Relay  Relay driver  Software requirements.
Components of a typical full-featured microcontroller.
Microcontrollers JULES CALELLA. Microcontrollers vs Microprocessors  Microprocessors – do not contain RAM, ROM, I/O  Microcontrollers – The whole package.
NAM S.B MDLAB. Electronic Engineering, Kangwon National University 1.
MICROPROCESSOR INTEL 8086/8088 BY: SERA SYARMILA SAMEON.
CEng3361/18 CENG 336 INT. TO EMBEDDED SYSTEMS DEVELOPMENT Spring 2007 Recitation 01.
USING TV REMOTE AS A CORDLESS MOUSE FOR THE COMPUTER
CORDLESS MOUSE FEATURES BY TV REMOTE USING PIC MICROCONTROLLER
ENERGY METER TO INDICATE BILLING IN RUPEES FOR LOAD WISE OR DAY WISE
Introduction to Microcontroller Technology
The 8051 Microcontroller architecture
ECE 3430 – Intro to Microcomputer Systems
Microcontroller Applications
PC Mouse operated Electrical Load Control Using VB Application
UNIT – Microcontroller.
Project Title EVM IN PIC Under the Guidance of Submitted by.
Chapter 1: The 8051 Microcontrollers
Introduction to Microprocessors and Microcontrollers
AT91RM9200 Boot strategies This training module describes the boot strategies on the AT91RM9200 including the internal Boot ROM and the U-Boot program.
8051 Micro Controller.
Presentation transcript:

Curriculum Development for ENGR 290 Introduction to Microcontroller Behshad Ahmadi

Microcontroller Microcontroller Researched for Course PIC32 32 Bit New Part, Not enough supporting material PIC18 8 Bit Need expensive programmer HC11 8 Bit Old technology HCS12 16 Bit Best option. Free C compiler, good book, No need for external programmer. Very Popular, Lots of universities use it Including UNM, New Mexico Tech. Power PC Also a good choice

Microcontroller

HCS12 Freescale Family MC9S12DG256 : 16-bit CPU12 (Upward compatible with M68HC11 instruction set) Multiplexed bus (Single chip or expanded: External address space 1MByte for Data and Program space) Wake-up interrupt inputs ( for I2c, PWM, CAN, etc.) Memory :256K Flash EEPROM, 4K Byte EEPROM, 12K Byte RAM Analog-to-Digital Converters (two 8-channel modules with 10-bit resolution) Two 1M bit per second, CAN 2.0 Enhanced Capture Timer (16, 8 bit counter) 8 PWM channels with programmable period and duty cycle Serial interfaces Two asynchronous serial communications interfaces (SCI) Two synchronous serial peripheral interfaces (SPI) Iic SAE J1850 Compatible Module (BDLC) Operating frequency :50MHz equivalent to 25MHz Bus Speed for single chip

Evaluation Board & Book The HCS12/9S12: An Introduction to Hardware and Software Interfacing by Han-Way Huang (www.amazon.com) HCS12:  DRAGON12-Plus Development Board ( www.evbplus.com)

HCS12 Members and Hardware and Software Development Tools

The HCS12 Members (1 of 2) Is a redesign of the 68HC12 family The 68HC12 family is an upgrade of the popular 68HC11 8-bit microcontroller family. The 68HC12 has a highest bus clock frequency of 8 MHz. The HCS12 family has a highest bus clock frequency of 32 MHz. The numbering system is shown in Figure 3.1. -

- The HCS12 Members (2 of 2) The HCS12 was initially designed for automotive and process control market. The HCS12 has many features designed for these target markets: Parallel ports Timer functions: input capture, output compare, pulse accumulation, real-time interrupt, pulse width modulation, modulus down counter Serial communication interface (SCI) Serial peripheral interface (SPI) Inter-integrated circuit (I2C) Byte data link control (BDLC) Controller Area Network (CAN) Freescale also included the background debug mode (BDM) in each HCS12 member to facilitate the software debugging activities. Freescale also include special features to target other applications: Ethernet controller: the MC9S12NE64 has an Ethernet controller to facilitate the access of the Internet. USB controller: the MC9S12UF32 has an on-chip USB controller to facilitate the interfacing with USB bus.

Development Tools Software development tools Text editor, terminal program, cross assembler, cross compiler, simulator, source-level debugger, integrated development environment (IDE) Hardware development tools Oscilloscope, function generator, in-circuit emulator, logic analyzer, demo board Only demo boards and BDM kit will be discussed.

Software Development Tools A text editor allows the user to enter and edit the program. A cross assembler allows the user to assemble their assembly programs. A cross compiler allows the user to compile their programs written in high-level languages. A simulator allows the user to run the application program without having the actual hardware. A terminal program allows the PC to communicate with the hardware demo board. A source-level debugger allows the user to set breakpoints in the program, trace program execution, watch program variable values after program execution, and so on. An IDE combines all of the above programs in one package so the user can perform all software debugging activities in one environment without quitting any program. The freeware miniIDE and asmIDE are recommended for assembly program development. The freeware EmbeddedGNU IDE and GNU C compiler are recommended for C program development.

Tools CodeWarrior: AsmIDE MiniIDE: EmbeddedGNU IDE DBug12 Monitor CodeWarrior is a very powerful and professional IDE. The main feature of CodeWarrior IDE is the source level debugger in assembler and C. Free Student version. There is a limited code size AsmIDE AsmIDE is a freeware, Open Source, Integrated Development Environment (IDE) for the 68hc11 and 68hc12 families of embedded microcontrollers. Ability to edit your assembler source code with a syntax-highlighting editor, and it can run a command-line assembler for you. It has a terminal window to let you interact with your microcontroller, and it can download your .S19 files to the microcontroller. MiniIDE: MiniIDE is an integrated development environment running under Windows 95/98/Me/NT/2000/XP MiniIDE incorporates an editor and a serial communication terminal. A command line cross‑assembler, which is seamlessly integrated in the IDE, is included. EmbeddedGNU IDE This is freeware, Open Source, Integrated Development Environment (IDE) for the GNU C cross-compilers. EmbeddedGNU supports the C language (not C++) DBug12 Monitor This is a auxiliary program running on HCS12 which helps with debugging.

Demo Boards Many HCS12-based demo boards are available for learning the HCS12 and debugging the HCS12 application programs. A demo board has an HCS12 MCU and many peripheral chips to help test the HCS12 programs. A demo board often has an on-board monitor program to communicate with a PC or workstation on which the user develops the application program. The monitor program allows the user to display register and memory location contents, setting register and memory location contents, setting program breakpoints, tracing instruction execution, and download programs onto the demo board for execution. The PC or workstation communicates with the demo board using the terminal program. The SSE256 from Shuan Shizu and the Dragon12 from Wytec are recommended for learning the HCS12 microcontroller.

The Dragon12 Demo Board (1 of 2) Infrared transceiver CAN transceiver (Philips PCA82C250) A small breadboard BDM IN and BDM OUT connectors Two RS232 connectors LTC1661 10-bit D/A converter chip with SPI interface 24LC16 serial EEPROM with I2C interface Additional information is available at www.evbplus.com 24-MHz bus speed (generated from a 4-MHz crystal) D-Bug12 monitor 16 x 2 LCD kit (4-bit interface) Eight LEDs Four seven-segment displays Keypad connector Four buttons for input DIP switches for input Buzzer for playing siren and songs (wired to the PT5 pin) Potentiometer for testing A/D function (wired to PAD7 pin)

The Dragon12 Demo Board (2 of 2)

The D-Bug12 Monitor Supports most HCS12 devices with 128KB and 256 KB flash memory Used in many demo boards Requires a host terminal program that supports the Xon/Xoff software handshake for proper operation The HyperTerminal bundled with Windows and the terminal program bundled with asmIDE, miniIDE, and EmbeddedGNU IDE can work with D-Bug12 monitor. Supports four operating modes: EVB mode, Jump to EEPROM mode, POD mode, and Serial Bootloader mode After reset, the D-Bug12 reads the logic levels on the PAD1 and PAD0 pins to decide which of the four D-Bug12 modes to enter.

Terminal Objective Working with microcontrollers to develop applications in the ECE & related fields  Distinguish between the characteristics of a microcontroller, its applications and how it compares to a microprocessor. Understand the relationship between hardware, software as they relate to microcontroller embedded systems and how they work together to solve a problem.  Work with the important features of embedded systems such as timers, interrupts, A/D, serial and parallel communications and their applications. Work with an Integrated Development Environment, an Evaluation Board, and various other tools for project design, troubleshooting and debugging.  Analysis of a given flow chart and hardware schematic to deduce operation and functions of a microcontroller/embedded system.  Synthesis of a microcontroller/embedded system from a real-life problem statement.  Program the MC9S12 microcontroller in assembly language and in C, including use of subroutines and interrupt service routines  Use some of the internal peripherals of the MC9S12.  Interface external hardware to the MC9S12.  Use the Motorola manuals and data sheets to get the information necessary to do the above tasks.