Dr. Hoganson CSIS 4381 7-Segment Display and Count by 16 This is our third lab using the 68HC11 microcontroller. We will write a program that counts by.

Slides:



Advertisements
Similar presentations
Microprocessors.
Advertisements

The 8051 Microcontroller and Embedded Systems
MC68HC11 System Overview. System block diagram (A8 version)
Lab7: Introduction to Arduino
Chung-Ta King National Tsing Hua University
EXTERNAL COMMUNICATIONS DESIGNING AN EXTERNAL 3 BYTE INTERFACE Mark Neil - Microprocessor Course 1 External Memory & I/O.
Dr A Sahu Dept of Computer Science & Engineering IIT Guwahati.
Slides created by: Professor Ian G. Harris PIC Development Environment MPLAB IDE integrates all of the tools that we will use 1.Project Manager -Groups.
TK2633 Introduction to Parallel Data Interfacing DR MASRI AYOB.
EET 2261 Unit 8 Seven-Segment Displays; S19 Records; System Clocks
ELEC 330 Digital Systems Engineering Dr. Ron Hayne
68HC11 Polling and Interrupts
7-Segment Displays Module M7.2 Section 6.5. Turning on an LED Common Anode.
IDE for ARM 7 board Tutorial 3 IDE of Keil4 V3.a 1.
Microcontroller Architecture— PIC18F Family
Lab 6 :Digital Display Decoder: 7 Segment LED display Slide #2 Slide #3 Slide #4 Slide #5 Slide #6 Slide #7 Display Decoder Fundamentals LT Control Input.
Microcontrollers: Teaching and Simulators Teufik Tokić, Ivan Milentijević Faculty of Electonic Engineering, Niš.
EEE305 Microcontroller Systems Lecture 5B: Simple I/O Embedded C using PIC microcontrollers Teaching resources on on
Dr. Hoganson CSIS HC11 Demo Program This is our first lab using the 68HC11 microcontroller. We will “talk” to the microcontroller from a PC, run.
1 © Unitec New Zealand Embedded Hardware ETEC 6416 Date: - 10 Aug,2011.
328eForth for Arduino Uno C. H. Ting February 16, 2012 SVFIG.
Lab 1 – Assembly Language and Interfacing Start date: Week 3 Due date: Week 4 1.
Input Laboratory: GPIO Pin control needed to have the Blackfin accept your commands Re-uses information from ENEL353 and ENCM369 courses and text books.
A Simple Tour of the MSP430. Light LEDs in C LEDs can be connected in two standard ways. Active high circuit, the LED illuminates if the pin is driven.
The miniDragon+ Board and CodeWarrior Lecture L2.1.
Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.
1 Introduction to Xilinx ISL8.1i Schematic Capture and VHDL 1.
1 Introduction to Xilinx ISL8.1i & 11.1 Schematic Capture 1.
Dr. Hoganson CSIS 4381 Input from Port D In this project, we will use port D as input and port A as output, by connecting three input bits of port D to.
Timer Timer is a device, which counts the input at regular interval (δT) using clock pulses at its input. The counts increment on each pulse and store.
1 Lecture on Lab 6 Lab 7 Lab 8. 2 Lab 6: Open Loop Controller As you learned in lab 5, there are two kinds of control systems: open loop and closed loop.
ECS642U Embedded Systems Cyclic Execution and Polling William Marsh.
Reaction Timer Project
ELE22MIC Lecture 8 ASll Examples –16 Bit Counters –Buffalo Jump Table Interrupt processing (IRQ/RTI) Stack Frame & Base Pointer Wired OR.
Digital Temperature Gauge Project Proposal ECE 4330 Patricia Kaminski System Overview Hardware Design Software Design Testing.
Projects 8051.
Dr. Hoganson CSIS 4381 Finite State Recognizer In this project, we will use the MicroStamp to function as a Finite State Recognizer (FSR). A FSR is a type.
ECE Lecture 1 1 L15 –I/O Part II Department of Electrical and Computer Engineering The Ohio State University ECE 2560.
Department of Electronic & Electrical Engineering Lecture 2 ● Introduction to IO ● Using a subroutine ● Driving a 7seg display.
EE/CS-352: Embedded Microcontroller Systems Part V The 8051 Assembly Language Interrupts.
Lab. 1 – GPIO Pin control Using information ENEL353 and ENCM369 text books combined with Blackfin DATA manual.
ECE 3450 M. A. Jupina, VU, 2016 Capacitance Sensor Project Goal: Creation of a digital capacitance sensor circuit where a variation in capacitance changes.
Interrupts ELEC 330 Digital Systems Engineering Dr. Ron Hayne
GSM 1308 MODEM CONTROL USING PIC-16F877A MICROCONTROLLER.
Department of Electronic & Electrical Engineering Lecture 3. ● Template program. ● Introduction to IO ● PORTA PORTB TRISA TRISB ● Using a subroutine ●
Tutorial 9 Module 8 – 8.1,8.2,8.3. Question 1 Distinguish between vectored and non-vectored interrupts with an example Build a hardware circuit that can.
Copyright © 2007 by Pearson Education 1 UNIT 6A COMBINATIONAL CIRCUIT DESIGN WITH VHDL by Gregory L. Moss Click hyperlink below to select: Tutorial for.
Programming PIC 16F84A in Assembly. PIC16F84 pin-out and required external components.
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
Programming and Debugging with the Dragon and JTAG Many thanks to Dr. James Hawthorne for evaluating the Dragon system and providing the core content for.
Dr. Iyad Jafar Introducing the PIC 16 Series and the 16F84A.
ECE 3430 – Intro to Microcomputer Systems
Lecture 8: TI MSP430 Interrupts, ISRs
Fundamentals of Computer Engineering
Atmega32 Architectural Overview
The Arduino Microcontroller: Atmel AVR Atmega 328
EET 2261 Unit 11 Controlling LCD and Keypad
ECET 330 Innovative Education--snaptutorial.com
CENG2400 Revision Q1a A system has an ARM processor with a 32-bit General Purpose Input Output (GPIO) module. Two on/off switches are connected to bit-3.
EET 2261 Unit 11 Controlling LCD and Keypad
Microcontroller Labs Lab 1 – The LED Test Mode Dr. Gregg Chapman
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
EET 2261 Unit 8 Seven-Segment Displays
8051 Micro Controller.
ME 4447/6405 Microprocessor Control of Manufacturing Systems and
Lab. 1 – GPIO Pin control Using information ENEL353 and ENCM369 text books combined with Blackfin DATA manual.
Let’s use a PUSH-Button!
ECE 3567 Microcontrollers Lab
Presentation transcript:

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 16 in a loop, using one of the registers to count in. Port A will display the count, and will be connected to the 7- segment LED display. You will need a floppy diskette to hold your programs, for later printing.

Dr. Hoganson CSIS 4381 Lab Preparation A: – simp3v2.asm 1.Examine simp2v2.asm to determine how the LEDs are being controlled in the loop. 2.Determine the changes needed to modify the program, so that Port A will contain and display the contents of a register (bits 4,5,6 on pins 4,5,6). 3.Determine the changes needed to make your register count up by 16s. 4.Since you will be displaying only 3-bits (4,5,6) of an 8-bit number in the register, explain in your notebook, how counting by 16 will work and what it will show on the 7- segment LED. 5.During the lab, you will edit and modify a copy of simp2v2.asm to create count-16.asm. You will assemble count16.asm and download it into the MicroStamp board, for execution and testing.

Dr. Hoganson CSIS 4381 MODIFIED simp2v2.asm **************************************************************** *file: simp2v2.asm *This program illustrates flashing PA6.. *Dr. Hoganson, 10/2/02 **************************************************************** org$e000;beginning of EEPROM (68HC811E2) rbaseequ$0000;beginning of register/memory port_aequrbase+0;port A is the first register h_secequ$ffff;delay loop value (about 1/2 second) **************************************************************** begin: ldaa #$04;value to disable timed interrupt staa$3f;disables the timed interrupt lds#$ff;set stack start loop:ldaa#$40;write logic high to PA6 (turn on LED) staaport_a ;$0 is location of Port A bsrdelay clrport_a ;clear PortA bsr delay braloop Continued next slide

Dr. Hoganson CSIS 4381 MODIFIED simple2.asm **************************************************************** * delay loop subroutine **************************************************************** delay: ldy#h_sec;delay loop (about 1/2 second) dloop:dey iny;extra iny,dey add delay time dey bnedloop rts **************************************************************** org$fffe;define the reset vector to point to start of program fdbbegin;begin is the start of the program

Dr. Hoganson CSIS 4381 Part B: The Lab Record in your lab notebook, your observations for each of the following steps. 1.Wire the 68HC11 as we did in the last lab, with power and ground, and LEDs connected to Port A bits 4,5,6. 2.Wire three PortA outputs to the inputs to the decoder for the 7-segment display. Also wire a ground from one of the 7- seg displays. 3.Verify correct operation by running the demo program, but also checking the wiring to the 7-segment display. 4.Edit, assemble, download, and test your count16.s19 program, and verify correct operation. 5.You will need to save your program on your floppy diskette, and print out a listing of each program, which you will insert into your lab notebook.