Introduction to the ATmega 16 Microcontroller
|
|
- Wilfred Maxwell
- 7 years ago
- Views:
Transcription
1 Introduction to the ATmega 16 Microcontroller
2 STK500 Development Board
3 Description of STK500 A row of eight pushbutton switches, each of which has a small LED lamp above it. These can be connected to the microcontrollers using the array of connectors just above. There is then a large white area, which is where the AVR chips to be programmed are inserted. Usually, a STK500 comes with a Atmega 16L chip mounted in the large socket on the right. The green area at the top contains the programming electronics, and the connectors for power and communications.
4 Atmega 16 bit Microcontroller
5 ATmega 16 Micro Controller ATmega 16
6 Atmega16 Features Features High-performance, Low-power AVR 8-bit Microcontroller Advanced RISC Architecture 131 Powerful Instructions Most Single-clock Cycle Execution 32 x 8 General Purpose Working Registers Fully Static Operation Up to 16 MIPS Throughput at 16 MHz On-chip 2-cycle Multiplier High Endurance Non-volatile Memory segments 16K Bytes of In-System Self-programmable Flash program memory 512 Bytes EEPROM 1K Byte Internal SRAM Write/Erase Cycles: 10,000 Flash/100,000 EEPROM Data retention: ti 20 years at 85 C/100 years at 25 C(1) Optional Boot Code Section with Independent Lock Bits In-System Programming by On-chip Boot Program True Read-While-Write Operation Programming Lock for Software Security
7 complementary metal oxide semiconductor (CMOS)
8 Memory ROM=Read Only Memory Called nonvolatile because it does not require power to retain memory RAM=Random Access memory Read and write Volatile=loses loses memory when power removed SRAM=Static RAM: retains data in flip flops DRAM=Dynamic RAM: data has to be refreshed because capacitors hold charge (i.e. values) Many other variations on RAM Battery backed up RAM Use a small battery (calculator size) to maintain charge to RAM after power is removed. The power required to maintain data in a RAM chip is incredibly small so that this little battery can easily maintain data for years (maybe 5 under optimal conditions).
9 Memory EPROM=erasable programmable ROM Use a special box that t shines UV light into window on chip to erase contents. Can take up to 30 minutes. Removing too early results in only partially erased memory No need to ever use this, a relic of the past. EEPROM=electrically erasable programmable ROM Uses a special programming pin (usually uses higher voltage) to erase then write new program. Development boards often setup so EEPROM does not have to be removed (like EPROM does) Flash ROM Like EEPROM but faster and cheaper Limited write cycles (but in the several thousands)
10 How to use Memory RAM-this is where the program resides SRAM-this is your scratch pad for intermediate results or anything that you want to save during operation (remember you lose it when power goes). It s also the stack (discussed later). EEPROM permanent storage of data like constants something gyou save during gprogram execution you want to be used during the next run.
11 Registers Register-a generic term with many meanings. At the top level, it s a group of bits (like a byte). I/O registers are set to configure the microcontroller 1 =Output 0=Input General Purpose Registers are used to perform calculations
12 Internal Memory Map
13 Flash and EEPROM Map Line 0 1 byte EEPROM Line 4095 In programming g world, 4K does not equal 4000, it equals 4096=2^12. And we would address 4096 bytes starting from zero and going up to 4095 The Atmega16 is called so because it has 16 kb of Flash RAM,
14 Addressing How many bytes can I address with an 8 or 16 bit register? 8 bits=2^8=256 (0-255) 16 bits=2^16=65,536 (0-65,535) =refer to Line 0 1 byte Remember, everything starts with zero. So we have 65,536 elements that range from 0 to 65,535 SRAM 4Kbytes x =0xFFF Line 4095
15 Program Flow A special register called the program counter keeps track of the address in the Flash RAM to be executed. On each clock cycle, that address is decoded and the appropriate values are taken from memory and passed into the Arithmetic Logic Unit (ALU) to be processed. The value to be processed (operands) must come from a special set of 32 registers called the General Purpose Registers. To access SRAM or I/O, they must be brought in/out of the registers.
16 Atmega 16 Core ( The Brain ) General Purpose Register ( The Interface ) Everything going in/out must touch the registers Program Memory: ( The Planning Center ) ALU: Arithmetic and Logic Unit ( The Calculator ) Input/Output: Eyes, ears, and other senses
17 Program Counter What element holds the address of the next line to be executed in program memory? The program counter When an interrupt or subroutine occurs, the current address in the program counter is copied into SRAM. The program counter then jumps to the address of the subroutine. When completed, the address in SRAM can be restored to the program counter so that it can jump back. The stack pointer is a special register that contains the address (points to) the location in SRAM where the Program counter address is located. Note: Some microcontrollers use EEPROM for program memory.
18 Program Counter/Stack Pointer Program Counter (16 bit) BD BE Program Memory (Flash RAM) Restore Program counter using SP as address to retrieve value from stack Stack Point (16 bit) 10 FE FF Internal Memory (Gen. Purpose Registers, I/O registers, SRAM) 0x0000 0x0001 0x0002 0x0003 0x0004 0x01BD 0x01BE rjmp Main ldi R9, 0xFF ; (main label) ldi R10, 0x34 call MySubroutine;.more code MySubroutine:.subroutine code here Call Subroutine jumps Program counter and stores return address in stack ret ; jump back to Main loop 0x0100 0x x10FD 0x10FE x10FF Stack Pointer Initialized
19 Why the stack pointer? We want to restore a value to the program counter that we stored in SRAM, but where did we put it? The stack pointer gives us the address in SRAM where the Program counter value is saved. If we had a subroutine or interrupt occur within another subroutine, we would shove another program counter value onto the stack (SRAM). The stack pointer allows us to retrace our steps, and exit out of each subroutine in the proper order. The stack pointer can also be written to at any time and allows us to track address in the stack (SRAM) to do other fancy things Current Program Counter 0100 About to jump here e 1 byte SRAM 4Kbytes x 8 10FF Stack Pointer 0007 Store Copy here
20 Timing (the heartbeat) Microprocessors uses oscillator (a quartz crystal) which can produce a constant t square wave to provide the synchronization of everything on the chip. Each rising edge of the square wave allows an operation to take place such as loading instructions, executing instructions, and saving results. Different operations take a different amount of cycles (one period of the square wave). See Instruction set summary for cycles. The oscillator source can be external or internal (on some chips). The Atmega16 can be set to have a clock frequency of 8MHz. With many of the operations taking only 1 cycle, that is approaching 8 million operations per second! You could add the numbers from 1 to a million in.125 seconds!
21 Rising/Falling Edge Everything in a microcontroller happens on the rising or falling edge of a signal. Most components with in the microcontroller allow you to choose which h edge but default is rising. The edge is the signal for a component to take in new information and output the just processed information. It also allows for registers, components, etc. to be synchronized.
22 Prescale for a Timer Main Clock (1 MHz) Prescale=8, Divides Timer clock to 125 khz Each Rising (or falling) edge of timer clock increments the timer count If I had only a 3 bit timer (2^3=8 positions), I would overflow at 7 (starts at 0) and wrap back to zero
23 Why the prescale is so important! For timers, the prescale allows me to set how fast the timer counts and thus the resolution of time that t can be measured For the fastest count, set prescale to 1 (default). The timer will count at the same rate as main clock and have a resolution equal to the period (1/frequency) of the main clock What if I were using an eight bit timer (max count=255, 2^8-1). The counter would quickly fill up and overflow. I may decide to either: Increase prescale so that it counts slower Switch over to a 16 bit timer (max count=65,535) Remember: Timers actually hold a count, but knowing the prescale and main clock, we know what that count means in time. Actual Time= Counts*TimerPeriod TimerPeriod TimerPeriod=MainclockPeriod*prescale
24 More prescale For devices like the A/D, the prescale will determine how fast you sample (if in freerunning mode). You want to sample fast enough so that you do not alias (refer to Alias lecture). But you may want to not set the prescale too small (too fast sampling) because it wastes power For small systems running on battery power, reduction of power is critical.
25 Timing Most items have prescalers that divide the frequency of the clock down
26 I/O ports Input and Output ports are the way the uc interfaces with other components. Each port contains 8 pins. Ports can be input only, output only, or bi-directional. The ATmega has all bi-directional ports. Bi-directional ports means they have the capability to be both, but you must choose one or the other at any given time. The direction of each pin is set through a special register for each port. Several ports have dual functionality. With the proper register setting, they can be used for special operations such as A/D, external interrupts, SPI, etc.
27 I/O ports Inputs External connections determine pin voltage Outputs Microcontroller sets pin voltage Controlled by three corresponding registers(memory locations) Direction set by Data Direction Register (DDRx) bi-dir. 1 =Output 0=Input Pins are set to be inputs on reset Data Register (PORTx) As an output, write signal here Writing to PORTxwhen a pin is configured as an input turns on internal pull up resistor (will read as logic 1 until pulled low) Port input pins (PINx) Note: read only
28 Serial communication USART=Universal Synchronous and Asynchronous serial Receiver and Transmitter Serial communication Communicate serially back to a PC SPI=Serial Peripheral Interface Allows us to communicate to other devices using serial data. The SPI controls allow us to enable certain devices, send and receive serial data. Examples of things you might control with SPI: Other microprocessors, external memory, A/D, LCD display, other specialized chips. Advantage of using SPI is that you can control a device with a single pin as opposed to connecting in parallel (using 8 pins to send8bits) bits).
29 A/D and D/A Analog to Digital Converter Converts analog input signals (typically 0 to 5 volts) to a digital it (binary) representation that the mp can use. The Atmega128 has a 10 bit A/D. That means it can represent our analog voltage with a 10 bit number. So what is our resolution? Resolution=5 volts/2^10= volts Digital to Analog Converter Allows the mp to specify a voltage with a binary number and then output that analog voltage (like 3.25 volts) Atmega 128 doesn t have one and most mp don t. Most often, we create an analog voltage by using pulse width modulation (PWM). We ll learn more about the specific operation of A/D and D/A later in the course
30 Timers Timers are really just counters A register that counts (up or down depending on settings) The time runs using the main system clock and a prescaler. A prescaler divides the main system clock. Each of the four timers in the Atmega128 has its own prescaler. So, if the system clock runs at 1 MHz, and I set the prescaler to 1024, then my clock frequency will be ~1 khz. In other words, I get 1 count every ~.001 seconds.
31 Pulse Width Modulation Pulse Width Modulation A method by which devices can be sent a voltage that is equivalent to an analog voltage If I have a device that I want to give 2.5 volts, I could use and D/A or I could use a 5 volt PWM signal with a 50% duty cycle. The effective voltage seen by the device is equal to the peak value * the duty cycle (0-1) V effective =5 volts*.5=2.5 volts The key is that the frequency of the PWM wave must be faster than the device can respond too. If I have a small motor, and I suddenly step the voltage to 5 volts and record the time it takes to come to steady state speed. And I find that it takes.1 seconds to reach 63% of the steady state value, this is called one time constant (1-e -1 ). Then, following a good rule of thumb, I should make my PWM frequency at least 10 time faster than it can react..1 second=10 hz 100 Hz (minimum)
32 PWM
33 Atmega 16 Circuit Diagram
34 Status Register Bit 7 I: Global Interrupt Enable Bit 6 T: Bit Copy Storage Bit 5 H: Half Carry Flag Bit 4 S: Sign Bit, S = N V Bit 3 V: Two s Complement Overflow Flag Bit 2 N: Negative Flag Bit 1 Z: Zero Flag Bit 0 C: Carry Flag Must set this to enable interrupts
35 Interrupts Interrupts are similar to subroutines except that you don t call interrupts, they happen whenever a particular event happens. Internal interrupts are generated from several sources like timer/counters. I could set up a counter to interrupt when it reaches a certain value. When it interrupts, the main program would stop and the interrupt t routine would be executed. After completion, the reti command (return from interrupt) would load our return location into the program counter where it was stored from the stack. External interrupts have a similar operation except that their source is from pins on the mp. I could set an interrupt to occur when a certain pin on the chip went high. You must set the Global Interrupt Enable in the SREG register to allow interrupts. This is easily done with the sei command. Further, you usually will need to clear the GIE when executing an interrupt. Why? Because you don t want another interrupt to interrupt you while executing the first interupt s code. Clearing GIE is done with the cli.
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC6504 - Microprocessor & Microcontroller Year/Sem : II/IV
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC6504 - Microprocessor & Microcontroller Year/Sem : II/IV UNIT I THE 8086 MICROPROCESSOR 1. What is the purpose of segment registers
More information8051 MICROCONTROLLER COURSE
8051 MICROCONTROLLER COURSE Objective: 1. Familiarization with different types of Microcontroller 2. To know 8051 microcontroller in detail 3. Programming and Interfacing 8051 microcontroller Prerequisites:
More informationMICROPROCESSOR. Exclusive for IACE Students www.iace.co.in iacehyd.blogspot.in Ph: 9700077455/422 Page 1
MICROPROCESSOR A microprocessor incorporates the functions of a computer s central processing unit (CPU) on a single Integrated (IC), or at most a few integrated circuit. It is a multipurpose, programmable
More information2.0 Command and Data Handling Subsystem
2.0 Command and Data Handling Subsystem The Command and Data Handling Subsystem is the brain of the whole autonomous CubeSat. The C&DH system consists of an Onboard Computer, OBC, which controls the operation
More informationMICROPROCESSOR AND MICROCOMPUTER BASICS
Introduction MICROPROCESSOR AND MICROCOMPUTER BASICS At present there are many types and sizes of computers available. These computers are designed and constructed based on digital and Integrated Circuit
More information150127-Microprocessor & Assembly Language
Chapter 3 Z80 Microprocessor Architecture The Z 80 is one of the most talented 8 bit microprocessors, and many microprocessor-based systems are designed around the Z80. The Z80 microprocessor needs an
More informationMemory Basics. SRAM/DRAM Basics
Memory Basics RAM: Random Access Memory historically defined as memory array with individual bit access refers to memory with both Read and Write capabilities ROM: Read Only Memory no capabilities for
More informationA+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware
A+ Guide to Managing and Maintaining Your PC, 7e Chapter 1 Introducing Hardware Objectives Learn that a computer requires both hardware and software to work Learn about the many different hardware components
More informationMicrocontroller Basics A microcontroller is a small, low-cost computer-on-a-chip which usually includes:
Microcontroller Basics A microcontroller is a small, low-cost computer-on-a-chip which usually includes: An 8 or 16 bit microprocessor (CPU). A small amount of RAM. Programmable ROM and/or flash memory.
More informationModule 2. Embedded Processors and Memory. Version 2 EE IIT, Kharagpur 1
Module 2 Embedded Processors and Memory Version 2 EE IIT, Kharagpur 1 Lesson 5 Memory-I Version 2 EE IIT, Kharagpur 2 Instructional Objectives After going through this lesson the student would Pre-Requisite
More informationChapter 13. PIC Family Microcontroller
Chapter 13 PIC Family Microcontroller Lesson 01 PIC Characteristics and Examples PIC microcontroller characteristics Power-on reset Brown out reset Simplified instruction set High speed execution Up to
More informationThe Programming Interface
: In-System Programming Features Program any AVR MCU In-System Reprogram both data Flash and parameter EEPROM memories Eliminate sockets Simple -wire SPI programming interface Introduction In-System programming
More informationLogical Operations. Control Unit. Contents. Arithmetic Operations. Objectives. The Central Processing Unit: Arithmetic / Logic Unit.
Objectives The Central Processing Unit: What Goes on Inside the Computer Chapter 4 Identify the components of the central processing unit and how they work together and interact with memory Describe how
More informationETEC 421 - Digital Controls PIC Lab 10 Pulse Width Modulation
ETEC 421 - Digital Controls PIC Lab 10 Pulse Width Modulation Program Definition: Write a program to control the speed of a dc motor using pulse width modulation. Discussion: The speed of a dc motor is
More informationCHAPTER 7: The CPU and Memory
CHAPTER 7: The CPU and Memory The Architecture of Computer Hardware, Systems Software & Networking: An Information Technology Approach 4th Edition, Irv Englander John Wiley and Sons 2010 PowerPoint slides
More information8-Bit Flash Microcontroller for Smart Cards. AT89SCXXXXA Summary. Features. Description. Complete datasheet available under NDA
Features Compatible with MCS-51 products On-chip Flash Program Memory Endurance: 1,000 Write/Erase Cycles On-chip EEPROM Data Memory Endurance: 100,000 Write/Erase Cycles 512 x 8-bit RAM ISO 7816 I/O Port
More informationMicrotronics technologies Mobile: 99707 90092
For more Project details visit: http://www.projectsof8051.com/rfid-based-attendance-management-system/ Code Project Title 1500 RFid Based Attendance System Synopsis for RFid Based Attendance System 1.
More informationAVR Timer/Counter. Prof Prabhat Ranjan DA-IICT, Gandhinagar
AVR Timer/Counter Prof Prabhat Ranjan DA-IICT, Gandhinagar 8-bit Timer/Counter0 with PWM Single Compare Unit Counter Clear Timer on Compare Match (Auto Reload) Glitch-free, Phase Correct Pulse Width Modulator
More informationLab Experiment 1: The LPC 2148 Education Board
Lab Experiment 1: The LPC 2148 Education Board 1 Introduction The aim of this course ECE 425L is to help you understand and utilize the functionalities of ARM7TDMI LPC2148 microcontroller. To do that,
More information8-bit Microcontroller with 1K Bytes In-System Programmable Flash. ATtiny13V ATtiny13
Features High Performance, Low Power AVR 8-Bit Microcontroller Advanced RISC Architecture 120 Powerful Instructions Most Single Clock Cycle Execution 32 x 8 General Purpose Working Registers Fully Static
More informationCHAPTER 11: Flip Flops
CHAPTER 11: Flip Flops In this chapter, you will be building the part of the circuit that controls the command sequencing. The required circuit must operate the counter and the memory chip. When the teach
More informationAtmel Norway 2005. XMEGA Introduction
Atmel Norway 005 XMEGA Introduction XMEGA XMEGA targets Leadership on Peripheral Performance Leadership in Low Power Consumption Extending AVR market reach XMEGA AVR family 44-100 pin packages 16K 51K
More informationRAM & ROM Based Digital Design. ECE 152A Winter 2012
RAM & ROM Based Digital Design ECE 152A Winter 212 Reading Assignment Brown and Vranesic 1 Digital System Design 1.1 Building Block Circuits 1.1.3 Static Random Access Memory (SRAM) 1.1.4 SRAM Blocks in
More informationET-BASE AVR ATmega64/128
ET-BASE AVR ATmega64/128 ET-BASE AVR ATmega64/128 which is a Board Microcontroller AVR family from ATMEL uses MCU No.ATmega64 and ATmega128 64PIN. Board ET-BASE AVR ATmega64/128 uses MCU s resources on
More informationHandout 17. by Dr Sheikh Sharif Iqbal. Memory Unit and Read Only Memories
Handout 17 by Dr Sheikh Sharif Iqbal Memory Unit and Read Only Memories Objective: - To discuss different types of memories used in 80x86 systems for storing digital information. - To learn the electronic
More informationA 5 Degree Feedback Control Robotic Arm (Haptic Arm)
A 5 Degree Feedback Control Robotic Arm (Haptic Arm) 1 Prof. Sheetal Nirve, 2 Mr.Abhilash Patil, 3 Mr.Shailesh Patil, 4 Mr.Vishal Raut Abstract: Haptics is the science of applying touch sensation and control
More informationAVR Butterfly Training. Atmel Norway, AVR Applications Group
AVR Butterfly Training Atmel Norway, AVR Applications Group 1 Table of Contents INTRODUCTION...3 GETTING STARTED...4 REQUIRED SOFTWARE AND HARDWARE...4 SETTING UP THE HARDWARE...4 SETTING UP THE SOFTWARE...5
More informationChapter 2 Logic Gates and Introduction to Computer Architecture
Chapter 2 Logic Gates and Introduction to Computer Architecture 2.1 Introduction The basic components of an Integrated Circuit (IC) is logic gates which made of transistors, in digital system there are
More informationPART B QUESTIONS AND ANSWERS UNIT I
PART B QUESTIONS AND ANSWERS UNIT I 1. Explain the architecture of 8085 microprocessor? Logic pin out of 8085 microprocessor Address bus: unidirectional bus, used as high order bus Data bus: bi-directional
More informationMACHINE ARCHITECTURE & LANGUAGE
in the name of God the compassionate, the merciful notes on MACHINE ARCHITECTURE & LANGUAGE compiled by Jumong Chap. 9 Microprocessor Fundamentals A system designer should consider a microprocessor-based
More informationLecture N -1- PHYS 3330. Microcontrollers
Lecture N -1- PHYS 3330 Microcontrollers If you need more than a handful of logic gates to accomplish the task at hand, you likely should use a microcontroller instead of discrete logic gates 1. Microcontrollers
More informationPHYS 2P32 Project: MIDI for Arduino/ 8 Note Keyboard
PHYS 2P32 Project: MIDI for Arduino/ 8 Note Keyboard University April 13, 2016 About Arduino: The Board Variety of models of Arduino Board (I am using Arduino Uno) Microcontroller constructd similarly
More informationBuilding A RISC Microcontroller in an FPGA
Building A RISC Microcontroller in an FPGA Name : Yap Zi He Course : 4 SEL Supervisor : PM Muhammad Mun im Ahmad Zabidi Introduction Reduce Instruction Set Computer (RISC) is a new trend on computer design.
More informationADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-17: Memory organisation, and types of memory
ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-17: Memory organisation, and types of memory 1 1. Memory Organisation 2 Random access model A memory-, a data byte, or a word, or a double
More informationMODULE BOUSSOLE ÉLECTRONIQUE CMPS03 Référence : 0660-3
MODULE BOUSSOLE ÉLECTRONIQUE CMPS03 Référence : 0660-3 CMPS03 Magnetic Compass. Voltage : 5v only required Current : 20mA Typ. Resolution : 0.1 Degree Accuracy : 3-4 degrees approx. after calibration Output
More informationComputers. Hardware. The Central Processing Unit (CPU) CMPT 125: Lecture 1: Understanding the Computer
Computers CMPT 125: Lecture 1: Understanding the Computer Tamara Smyth, tamaras@cs.sfu.ca School of Computing Science, Simon Fraser University January 3, 2009 A computer performs 2 basic functions: 1.
More informationMemory. The memory types currently in common usage are:
ory ory is the third key component of a microprocessor-based system (besides the CPU and I/O devices). More specifically, the primary storage directly addressed by the CPU is referred to as main memory
More informationC8051F020 Utilization in an Embedded Digital Design Project Course. Daren R. Wilcox Southern Polytechnic State University Marietta, Georgia
C8051F020 Utilization in an Embedded Digital Design Project Course Daren R. Wilcox Southern Polytechnic State University Marietta, Georgia Abstract In this paper, the utilization of the C8051F020 in an
More informationSerial Communications
Serial Communications 1 Serial Communication Introduction Serial communication buses Asynchronous and synchronous communication UART block diagram UART clock requirements Programming the UARTs Operation
More informationAUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR
AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR INTRODUCTION This Project "Automatic Night Lamp with Morning Alarm" was developed using Microprocessor. It is the Heart of the system. The sensors
More informationTimer A (0 and 1) and PWM EE3376
Timer A (0 and 1) and PWM EE3376 General Peripheral Programming Model Each peripheral has a range of addresses in the memory map peripheral has base address (i.e. 0x00A0) each register used in the peripheral
More informationPACKAGE OUTLINE DALLAS DS2434 DS2434 GND. PR 35 PACKAGE See Mech. Drawings Section
PRELIMINARY DS2434 Battery Identification Chip FEATURES Provides unique ID number to battery packs PACKAGE OUTLINE Eliminates thermistors by sensing battery temperature on chip DALLAS DS2434 1 2 3 256
More informationChapter 6. Inside the System Unit. What You Will Learn... Computers Are Your Future. What You Will Learn... Describing Hardware Performance
What You Will Learn... Computers Are Your Future Chapter 6 Understand how computers represent data Understand the measurements used to describe data transfer rates and data storage capacity List the components
More information================================================================
==== ==== ================================================================ DR 6502 AER 201S Engineering Design 6502 Execution Simulator ================================================================
More informationComputer Architecture
Computer Architecture Random Access Memory Technologies 2015. április 2. Budapest Gábor Horváth associate professor BUTE Dept. Of Networked Systems and Services ghorvath@hit.bme.hu 2 Storing data Possible
More informationThe components. E3: Digital electronics. Goals:
E3: Digital electronics Goals: Basic understanding of logic circuits. Become familiar with the most common digital components and their use. Equipment: 1 st. LED bridge 1 st. 7-segment display. 2 st. IC
More informationExperiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa
Experiment # 9 Clock generator circuits & Counters Eng. Waleed Y. Mousa 1. Objectives: 1. Understanding the principles and construction of Clock generator. 2. To be familiar with clock pulse generation
More information8-bit Microcontroller. Application Note. AVR134: Real-Time Clock (RTC) using the Asynchronous Timer. Features. Theory of Operation.
AVR134: Real-Time Clock (RTC) using the Asynchronous Timer Features Real-Time Clock with Very Low Power Consumption (4µA @ 3.3V) Very Low Cost Solution Adjustable Prescaler to Adjust Precision Counts Time,
More informationMICROPROCESSOR BCA IV Sem MULTIPLE CHOICE QUESTIONS
MICROPROCESSOR BCA IV Sem MULTIPLE CHOICE QUESTIONS 1) Which is the microprocessor comprises: a. Register section b. One or more ALU c. Control unit 2) What is the store by register? a. data b. operands
More informationAVR131: Using the AVR s High-speed PWM. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE
AVR 8-bit Microcontrollers AVR131: Using the AVR s High-speed PWM APPLICATION NOTE Introduction This application note is an introduction to the use of the high-speed Pulse Width Modulator (PWM) available
More informationGETTING STARTED WITH PROGRAMMABLE LOGIC DEVICES, THE 16V8 AND 20V8
GETTING STARTED WITH PROGRAMMABLE LOGIC DEVICES, THE 16V8 AND 20V8 Robert G. Brown All Rights Reserved August 25, 2000 Alta Engineering 58 Cedar Lane New Hartford, CT 06057-2905 (860) 489-8003 www.alta-engineering.com
More informationKeil C51 Cross Compiler
Keil C51 Cross Compiler ANSI C Compiler Generates fast compact code for the 8051 and it s derivatives Advantages of C over Assembler Do not need to know the microcontroller instruction set Register allocation
More informationDigital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill
Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill Objectives: Analyze the operation of sequential logic circuits. Understand the operation of digital counters.
More informationAPPLICATION NOTE. Atmel AVR134: Real Time Clock (RTC) Using the Asynchronous Timer. Atmel AVR 8-bit Microcontroller. Introduction.
APPLICATION NOTE Atmel AVR134: Real Time Clock (RTC) Using the Asynchronous Timer Introduction Atmel AVR 8-bit Microcontroller This application note describes how to implement a real time counter (RTC)
More informationAccurate Measurement of the Mains Electricity Frequency
Accurate Measurement of the Mains Electricity Frequency Dogan Ibrahim Near East University, Faculty of Engineering, Lefkosa, TRNC dogan@neu.edu.tr Abstract The frequency of the mains electricity supply
More informationAVR151: Setup and Use of the SPI. Introduction. Features. Atmel AVR 8-bit Microcontroller APPLICATION NOTE
Atmel AVR 8-bit Microcontroller AVR151: Setup and Use of the SPI APPLICATION NOTE Introduction This application note describes how to set up and use the on-chip Serial Peripheral Interface (SPI) of the
More informationSerial port interface for microcontroller embedded into integrated power meter
Serial port interface for microcontroller embedded into integrated power meter Mr. Borisav Jovanović, Prof. dr. Predrag Petković, Prof. dr. Milunka Damnjanović, Faculty of Electronic Engineering Nis, Serbia
More informationAdvanced Computer Architecture-CS501. Computer Systems Design and Architecture 2.1, 2.2, 3.2
Lecture Handout Computer Architecture Lecture No. 2 Reading Material Vincent P. Heuring&Harry F. Jordan Chapter 2,Chapter3 Computer Systems Design and Architecture 2.1, 2.2, 3.2 Summary 1) A taxonomy of
More informationChapter 4 System Unit Components. Discovering Computers 2012. Your Interactive Guide to the Digital World
Chapter 4 System Unit Components Discovering Computers 2012 Your Interactive Guide to the Digital World Objectives Overview Differentiate among various styles of system units on desktop computers, notebook
More informationDS1307ZN. 64 x 8 Serial Real-Time Clock
DS137 64 x 8 Serial Real-Time Clock www.maxim-ic.com FEATURES Real-time clock (RTC) counts seconds, minutes, hours, date of the month, month, day of the week, and year with leap-year compensation valid
More informationDisplay Board Pulse Width Modulation (PWM) Power/Speed Controller Module
Display Board Pulse Width Modulation (PWM) Power/Speed Controller Module RS0 Microcontroller LEDs Motor Control Pushbuttons Purpose: To demonstrate an easy way of using a Freescale RS0K2 microcontroller
More informationFreescale Semiconductor, Inc. Product Brief Integrated Portable System Processor DragonBall ΤΜ
nc. Order this document by MC68328/D Microprocessor and Memory Technologies Group MC68328 MC68328V Product Brief Integrated Portable System Processor DragonBall ΤΜ As the portable consumer market grows
More informationController for AD9850 DDS Modules Andy Talbot G4JNT 2012-12-06
Controller for AD9850 DDS Modules Andy Talbot G4JNT 2012-12-06 Latest Comments. Construction notes and feedback from builders at the end The low cost ( 3) Chinese made modules available via Ebay contain
More informationAm186ER/Am188ER AMD Continues 16-bit Innovation
Am186ER/Am188ER AMD Continues 16-bit Innovation 386-Class Performance, Enhanced System Integration, and Built-in SRAM Problem with External RAM All embedded systems require RAM Low density SRAM moving
More informationComputer Systems Structure Main Memory Organization
Computer Systems Structure Main Memory Organization Peripherals Computer Central Processing Unit Main Memory Computer Systems Interconnection Communication lines Input Output Ward 1 Ward 2 Storage/Memory
More informationPulse Width Modulation
Pulse Width Modulation Pulse width modulation (PWM) is a powerful technique for controlling analog circuits with a microprocessor's digital outputs. PWM is employed in a wide variety of applications, ranging
More informationMicrocontrollers in Practice
M. Mitescu I. Susnea Microcontrollers in Practice With 117 Figures, 34 Tables and CD-Rom 4y Springer Contents Resources of Microcontrollers, 1 1.1 In this Chapter 1 1.2 Microcontroller Architectures 1
More informationThe Central Processing Unit:
The Central Processing Unit: What Goes on Inside the Computer Chapter 4 Objectives Identify the components of the central processing unit and how they work together and interact with memory Describe how
More informationTechnical Note. Micron NAND Flash Controller via Xilinx Spartan -3 FPGA. Overview. TN-29-06: NAND Flash Controller on Spartan-3 Overview
Technical Note TN-29-06: NAND Flash Controller on Spartan-3 Overview Micron NAND Flash Controller via Xilinx Spartan -3 FPGA Overview As mobile product capabilities continue to expand, so does the demand
More informationDisplay Message on Notice Board using GSM
Advance in Electronic and Electric Engineering. ISSN 2231-1297, Volume 3, Number 7 (2013), pp. 827-832 Research India Publications http://www.ripublication.com/aeee.htm Display Message on Notice Board
More information1/22/16. You Tube Video. https://www.youtube.com/watch?v=ympzipfabyw. Definitions. Duty Cycle: on-time per period (specified in per cent)
Definition Pulse Width Modulation (PWM) is simply a way of getting the micro-controller to manage pulsing a pin on and off at a set period and duty cycle. The LPC11U24 has four timers with four match registers
More informationNTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter
NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter Description: The NTE2053 is a CMOS 8 bit successive approximation Analog to Digital converter in a 20 Lead DIP type package which uses a differential
More informationSmall Hardware Development and Prototyping Board for the SX28
Project Report: Small Hardware Development and Prototyping Board for the SX28 Project Number: PR57 1. Project Description 2. Schematic Diagram 3. Physical Diagram 4. Component Layout Diagram 5. Bill of
More information(Refer Slide Time: 00:01:16 min)
Digital Computer Organization Prof. P. K. Biswas Department of Electronic & Electrical Communication Engineering Indian Institute of Technology, Kharagpur Lecture No. # 04 CPU Design: Tirning & Control
More informationBIOS and CMOS. Overview. The Function of BIOS. The Bus
Overview BIOS and CMOS In this chapter, you will learn to Explain the function of BIOS Distinguish among various CMOS setup utility options Describe BIOS and device drives Troubleshoot the Power-On Self
More informationData Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide
Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide Sensors LCD Real Time Clock/ Calendar DC Motors Buzzer LED dimming Relay control I2C-FLEXEL PS2 Keyboards Servo Motors IR Remote Control
More informationDecimal Number (base 10) Binary Number (base 2)
LECTURE 5. BINARY COUNTER Before starting with counters there is some vital information that needs to be understood. The most important is the fact that since the outputs of a digital chip can only be
More informationPalaparthi.Jagadeesh Chand. Associate Professor in ECE Department, Nimra Institute of Science & Technology, Vijayawada, A.P.
Patient Monitoring Using Embedded Palaparthi.Jagadeesh Chand Associate Professor in ECE Department, Nimra Institute of Science & Technology, Vijayawada, A.P Abstract The aim of this project is to inform
More informationChapter 6: From Digital-to-Analog and Back Again
Chapter 6: From Digital-to-Analog and Back Again Overview Often the information you want to capture in an experiment originates in the laboratory as an analog voltage or a current. Sometimes you want to
More informationThe Motherboard Chapter #5
The Motherboard Chapter #5 Amy Hissom Key Terms Advanced Transfer Cache (ATC) A type of L2 cache contained within the Pentium processor housing that is embedded on the same core processor die as the CPU
More informationIntroduction the Serial Communications Huang Sections 9.2, 10.2 SCI Block User Guide SPI Block User Guide
Introduction the Serial Communications Huang Sections 9.2, 10.2 SCI Block User Guide SPI Block User Guide Parallel Data Transfer Suppose you need to transfer data from one HCS12 to another. How can you
More informationInterfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C Protocol
RESEARCH ARTICLE OPEN ACCESS Interfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C Protocol Arnab G. Samanta (Electronics Design technology (EDT) department, R.C.O.E.M, RTM Nagpur University,
More informationHello and welcome to this training module for the STM32L4 Liquid Crystal Display (LCD) controller. This controller can be used in a wide range of
Hello and welcome to this training module for the STM32L4 Liquid Crystal Display (LCD) controller. This controller can be used in a wide range of applications such as home appliances, medical, automotive,
More informationImplementing a Digital Answering Machine with a High-Speed 8-Bit Microcontroller
Implementing a Digital Answering Machine with a High-Speed 8-Bit Microcontroller Zafar Ullah Senior Application Engineer Scenix Semiconductor Inc. Leo Petropoulos Application Manager Invox TEchnology 1.0
More informationCentral Processing Unit (CPU)
Central Processing Unit (CPU) CPU is the heart and brain It interprets and executes machine level instructions Controls data transfer from/to Main Memory (MM) and CPU Detects any errors In the following
More informationAVR134: Real Time Clock (RTC) using the Asynchronous Timer. 8-bit Microcontrollers. Application Note. Features. 1 Introduction
AVR134: Real Time Clock (RTC) using the Asynchronous Timer Features Real Time Clock with Very Low Power Consumption (4 μa @ 3.3V) Very Low Cost Solution Adjustable Prescaler to Adjust Precision Counts
More informationUsing Arduino Microcontrollers to Sense DC Motor Speed and Position
ECE480 Design Team 3 Using Arduino Microcontrollers to Sense DC Motor Speed and Position Tom Manner April 4, 2011 page 1 of 7 Table of Contents 1. Introduction ----------------------------------------------------------
More informationInterrupts and the Timer Overflow Interrupts Huang Sections 6.1-6.4. What Happens When You Reset the HCS12?
Interrupts and the Timer Overflow Interrupts Huang Sections 6.1-6.4 o Using the Timer Overflow Flag to interrupt a delay o Introduction to Interrupts o How to generate an interrupt when the timer overflows
More information[F/T] [5] [KHz] [AMP] [3] [V] 4 ) To set DC offset to -2.5V press the following keys [OFS] [+/-] [2] [.] [5] [V]
FG085 minidds Function Generator Manual of Operation Applicable Models: 08501, 08501K, 08502K, 08503, 08503K Applicable Firmware Version: 1 ) 113-08501-100 or later (for U5) 2 ) 113-08502-030 or later
More informationHello, and welcome to this presentation of the STM32L4 reset and clock controller.
Hello, and welcome to this presentation of the STM32L4 reset and clock controller. 1 The STM32L4 reset and clock controller manages system and peripheral clocks. STM32L4 devices embed three internal oscillators,
More informationAVR1321: Using the Atmel AVR XMEGA 32-bit Real Time Counter and Battery Backup System. 8-bit Microcontrollers. Application Note.
AVR1321: Using the Atmel AVR XMEGA 32-bit Real Time Counter and Battery Backup System Features 32-bit Real Time Counter (RTC) - 32-bit counter - Selectable clock source 1.024kHz 1Hz - Long overflow time
More informationDS1621 Digital Thermometer and Thermostat
Digital Thermometer and Thermostat www.dalsemi.com FEATURES Temperature measurements require no external components Measures temperatures from 55 C to +125 C in 0.5 C increments. Fahrenheit equivalent
More informationIntroduction to Microcontrollers
Introduction to Microcontrollers Motorola M68HC11 Specs Assembly Programming Language BUFFALO Topics of Discussion Microcontrollers M68HC11 Package & Pinouts Accumulators Index Registers Special Registers
More informationAN3252 Application note
Application note Building a wave generator using STM8L-DISCOVERY Application overview This application note provides a short description of how to use the STM8L-DISCOVERY as a basic wave generator for
More informationDiscovering Computers 2011. Living in a Digital World
Discovering Computers 2011 Living in a Digital World Objectives Overview Differentiate among various styles of system units on desktop computers, notebook computers, and mobile devices Identify chips,
More informationATtiny4 / ATtiny5 / ATtiny9 / ATtiny10. Introduction. Feature. Atmel 8-bit AVR Microcontroller with 512/1024 Bytes In-System Programmable Flash
Atmel 8-bit AVR Microcontroller with 512/1024 Bytes In-System Programmable Flash ATtiny4 / ATtiny5 / ATtiny9 / ATtiny10 DATASHEET COMPLETE Introduction The Atmel ATtiny4/5/9/10 is a low-power CMOS 8-bit
More informationModeling Sequential Elements with Verilog. Prof. Chien-Nan Liu TEL: 03-4227151 ext:34534 Email: jimmy@ee.ncu.edu.tw. Sequential Circuit
Modeling Sequential Elements with Verilog Prof. Chien-Nan Liu TEL: 03-4227151 ext:34534 Email: jimmy@ee.ncu.edu.tw 4-1 Sequential Circuit Outputs are functions of inputs and present states of storage elements
More informationMicrocontroller Based Low Cost Portable PC Mouse and Keyboard Tester
Leonardo Journal of Sciences ISSN 1583-0233 Issue 20, January-June 2012 p. 31-36 Microcontroller Based Low Cost Portable PC Mouse and Keyboard Tester Ganesh Sunil NHIVEKAR *, and Ravidra Ramchandra MUDHOLKAR
More informationComputer Performance. Topic 3. Contents. Prerequisite knowledge Before studying this topic you should be able to:
55 Topic 3 Computer Performance Contents 3.1 Introduction...................................... 56 3.2 Measuring performance............................... 56 3.2.1 Clock Speed.................................
More informationThe modular concept of the MPA-3 system is designed to enable easy accommodation to a huge variety of experimental requirements.
HARDWARE DESCRIPTION The modular concept of the MPA-3 system is designed to enable easy accommodation to a huge variety of experimental requirements. BASE MODULE GO LINE Digital I/O 8 Analog Out AUX 1
More information