A Facilitated Learning Environment for Mentally Disabled Children

Size: px
Start display at page:

Download "A Facilitated Learning Environment for Mentally Disabled Children"

Transcription

1 A Facilitated Learning Environment for Mentally Disabled Children Jeanette Chan Massachusetts Institute of Technology Microprocessor Lab May 14, 2002

2 Contents 1 Introduction Overview BlockDiagram FlowChart Audio Subsystem Function Implementation The Filtering Low-PassFilter Non-invertingAmplifier AudioAmplifier AudioCode Visual Subsystem Function Implementation i

3 List of Figures 1.1 BlockDiagramoftheSystem FlowChartoftheSystem AudioImplementation FlowChartoftheSystem... 7 ii

4 List of Tables 2.1 TableofNoteConversions... 8 iii

5 Abstract This project was designed to involve both audio and visual aspects. It is a writing program that produces sounds and images correlating to the words entered by the user on the keyboard. The sounds and images are determined by the quantity of letters entered and what letters are actually entered. It is intended to help develop writing skills for children who may have mental retardation.

6 Chapter 1 Introduction The following project was not created simply as a final project but rather as an idea with a goal in mind. However, due to circumstances with time, it was never fully realized. The idea was a program where sounds and images were created based on the work a student typed. This idea was formulated from the goal of helping autistic children. Music therapy is the application of music to enhance personal lives by creating a positive change in the environment. In addition to this, it can be used as a tool to develop cognitive and learning areas and facilitate increased language comperhension. Studies have shown that music therapy is useful with autistic children ecause of this nonverbal, non theatening nature of it. Parallel music activities are designed to support the objectives of the child. The idea of the project is to create a writing program where musical and visual outputs are produced in response to a child producing a sentence. It was created in an attempt to produce some mechanism to encourge autistic childern to write. Many autistic children have little motivation to sit and write a simple story or anything at all. This program was designed to capture their attention and create a desire to write something. 1.1 Overview The design is simple. A child would type a sentence into the program. Upon hitting the period, most likely marking the end of the sentence, the program would generate sounds and images simultaneously on the screen. Each letter corresponds to a specific musical note. The rhythm is determined by 2

7 Jeanette Chan 3 KEYBOARD R31JP 8051 EXTENAL RAM AUDIO CIRCUIT RAM VISUAL CIRCUIT SPEAKER MONITOR Figure 1.1: Block Diagram of the System the number of notes per word. Orignally, the design was to play the notes in a chord but because of the many possible combination of letters (358,800 combinations), too many dissonant sounds would be produced. Only a maximum of four notes per word would actually be produced. At a young age, most words are at maximum five letters. The notes generated from the D above middle C and the F, two octaves higher. The visual images were displaying in sync with the audio output. Each note, at each rhythm was generated on the screen at the same rate that it was heard. That is, a faster note moved more quickly across the screen. Notes that were natural or sharp was also differentiated in appearance. However, due to the time constrictions, only one note was displayed at a given time. 1.2 Block Diagram Below is a block represenation of the implemenation of the project. The first block represents the input from the keyboard over the serial port. From there, the information is stored in the external RAM of the 8051, recording both the letter typed and the number of letters per word. After all the information is stored,

8 4 A Facilitated Learning Environment for Mentally Disabled Children Initialiaztion Recording Playback Exit Figure 1.2: Flow Chart of the System this information is sent to both the audio and visual blocks, whose main components are the 8254 and MC6847, respectively. From those subsystems, the audio signal is sent through a series of OP-AMPs which manipulate the signal. The signal is filtered to generate a better tone and through an amplifier to create a usable signal for the output speaker. The three main output signals from the MC6847 are sent through some logic circuits to produce the proper signal for the TV input. 1.3 Flow Chart The code flow in this system is an initialization block, a recording block, a series of loops and an exit block. In the initialization block, the peripherals utitlized are enabled and variables are set to some inital value. The interrupts (serial and external) along with the timers are also turned on, the components that run the whole system. The final function of this block is to store the first image, the staff lines, in the RAM and displayed this image on the screen. The recording block does as its name implies. It waits for a user input from the keyboard and displays it on the monitor. At the same time, the information needed to generate the audio and visual signals are stored in the 8051 s external RAM. The series of loops is the code that generates all the output signal from the stored information in the RAM. It runs through all the stored bytes until it reaches the end marker. From the stored bytes, it plays a tone and decides which type of note to play on a certain position on the staff. This series of loops is mainly implemented through an interrupt service program, or ISR. The final loop, the exit block, resets the screen and shuts off the music. It then

9 Jeanette Chan 5 loops back to the recording stage, at the initial value, overwriting old values. On the monitor, it sends a carriage return and a line feed to await the next sentence and the process is then repeated.

10 Chapter 2 Audio Subsystem 2.1 Function The audio subsystem works independently of the visual subsystem in generating tones to produce the music for the program. It generates the tone at the rhythm determined by the number of letters per word. The notes generated are a signal chord within a 16-note range. It responds automatically to changes in frequency so that the sound is continuous. 2.2 Implementation This part of the project was implemented mainly by use of the 8254, the programmable interval timer. From commands sent to it by the R31JP, signals of different frequencies are produced. The 8254 is selected by the LS138 in case multiple chips would be used simultanesouly, sharing the same lines. However, the 8254 can only generate square waves whose tonality is not as nice. It is then sent through a 4th-order filter to produce a sine wave. This sine wave, after processed by an audio amplifier, is heard through a set of speakers on the kit itself. This configuration is shown in Figure The 8254 The 8254 is a programmable interval timer that is capable of producing square waves at different frequencies and different duty cycles. It has three 16-bit counters which 6

11 Jeanette Chan 7 R31JP CLK LM th-order filter OP-AMP Audio Amp Speaker Figure 2.1: Audio Implementation D7-> D0 from R31JP NC #WR from R31JP #RD from R31JP A1 A0 NC Y0 from LM138 10MHz clk output Figure 2.2: Flow Chart of the System can be set in one of five different modes. It runs off of a 10MHz clock and as stated in the previous section, is selected by the LM138. For the purposes of this project, the 8254 was set to run in Mode 3, the square wave generator. The setup for the 8254 is shown in Figure 4. When the 8254 is initializes, the control word 76h is written to it. This selects counter/timer 1 to be in Mode 3, with two bytes being written to it, with the least significant byte written first. This allows the 8254 to generate tones from 152.6Hz to 10MHz. After the control word has been written, the output is set high. Once the full count has been written to the 8254, it remains high for half the count and then falls low for the remaining half. One way to stop the production of the square wave is to write another or the same control word to the For this lab, to stop the square wave, and hence the sound, the control word 76h will be rewritten to the Although the 8254 is capable of producing a wide range of frequencies, onyl frquencies in the range of Hz to Hz, which will produce a range of notes from

12 8 A Facilitated Learning Environment for Mentally Disabled Children Letter Note Frequency Count a, q D Hz 8504h b D# Hz 7D8Ch c, r E Hz 8504h d, s F Hz 8504h e F# Hz 7D8Ch f, t G Hz 8504h g G# Hz 7D8Ch h, u A Hz 8504h i A# Hz 7D8Ch j, v B Hz 8504h k, w C Hz 8504h l C# Hz 7D8Ch m, x D Hz 8504h n D# Hz 7D8Ch o, y E Hz 8504h p, z F Hz 8504h Table 2.1: Table of Note Conversions the D above middle C to the F, two octaves above. Below is a chart of the note to be produced, its frequencies and the count written to the 8254 to produce that note. However, the main problem with the 8254 is that although it is easily controlled (as opposed to sine wave generator chips), it only generates square waves whose tonality is much sharper and less pleasing to the human ear. This problem can be solved by sending the signal through filters to create a wave close to a sine wave. 2.4 Filtering Although digital signals are more easily manipulated, it has major constraints upon it since it can only obtain voltage levels of 0 Volts or 5 Volts. In order to make these signals more useful, analog circuits such as filters, are extremely useful. For this project, the square wave produced by the 8254 must be sent through three analog circuits before outputting it to the speaker.

13 Jeanette Chan Low-Pass Filter Any oscillating wave would be usable to produce a sound through a speaker. However, a sine wave usually produces the best sounding output. Converting a square wave to a sine wave is usually accomplished with either a low pass or bandpass filter and a resistor network to achieve the desired impedance. A low pass filter will remove unwanted harmonics in the input signal. Using a higher order filter will produce a cleaner output signal. For the design of this low-pass filter, a 4th-order lows-pass filter with a cutoff frequency of 1Khz was used. Since the highest frequency that will be passed through this filter is 700Hz, 1 KHz was a safe cutoff level. [image] The values of the resistor and capacitors were chosen by the following equations. The vaules basically depended on the wanted gain and cutoff frequency. [equations] Non-inverting Amplifier The result of this filter is a close approximation of the desired sine wave. But it is important not to overload the audio amplifier with a signal that is too large. In order to prevent this, the sine wave can be processed through a simple non-inverting amplifier with a varying gain. The gain of this op-amp will be reducing the value and varied by implementing the design with a potentiometer. [image] Audio Amplifier Finally, appropiate circuitry must be added before the signal is fed to a speaker. The LM386 is an audio power amplifier and was configured to be an amplifier with gain of 20 and volume control. The LM386 is used to drive a speaker so that an analog signal can be listened to. The configuration is shown is Figure X. Lastly, this signal is sent to a set of speakers on thi kit. [image]

14 10 A Facilitated Learning Environment for Mentally Disabled Children 2.5 Audio Code To test the design of the audio part of the project, test code was written to play notes of different frequency. Later, this code will be used in programming the end system. This test program initializes the parts of the system, the 8254, the interrput service routines and whatever constants that are needed. It then waits for input from the user over the serial port and displays that character. It then stores the letters entered and the number of letters that word contains. To make the system somewhat more simple, only the first four letters of a word was recorded if the total number exceeds four. After the user completes the sentence (upon entering a period), the program jumps into playback made through use of the interrupt service routine. Interrupts were used to playback the recording since it uses timers and is capable of running routines at a desired rate. The notes were played back in a rhythm which was determined by the number of letters of the word entered. For example, a word of three letters would have its notes played back three times faster than a word with only one letter. The code below implements the above program. org 00h ljmp start org 0bh ljmp play_back org 100h start: lcall init lcall init_tone lcall init_sp lcall init_int type: lcall getchr lcall sndchr mov r2, a cjne a, #20h, per_check mov a, r0 mov dpl, r6 mov dph, r7 a mov r0, #00h inc r4 mov a, r4 mov r6, a ljmp type

15 Jeanette Chan 11 per_check: cjne a, #2Eh, check_num mov a, r0 mov dpl, r6 mov dph, r7 a mov r0, #00h mov dpl, r4 inc dptr mov a, #0FFh a setb p3.2 mov r4, #0FFh mov r7, #0Fh play_loop: jb p3.3, play_loop mov dph, r7 mov dpl, r4 inc dptr movx mov r0, a inc r0 mov r4, dpl mov r7, dph lcall get_val mov r1, a mov r2, #01h mov a, r0 cjne a, #00h, do_rest ljmp exit_play do_rest: setb p3.3 jb p3.2, play_loop exit_play: lcall init mov a, #0Ah lcall sndchr mov a, #0Dh lcall sndchr mov dptr, #0FE03h mov a, #76h a ljmp type check_num: cjne r0, #04h, note_conv ljmp type

16 12 A Facilitated Learning Environment for Mentally Disabled Children note_conv: mov dpl, r4 mov dph, r7 inc dptr a mov r4, dpl inc r0 ljmp type play_back: jnb p3.2, exit_isr djnz r2, exit_isr djnz r0, play_note clr p3.3 ljmp exit_isr play_note: mov a, r1 mov r2, a mov dph, r7 mov dpl, r4 inc dptr movx mov r5, a lcall get_freq_low mov r4, dpl mov dptr, #0FE01h a mov a, r5 lcall get_freq_high a ljmp exit_isr exit_isr reti get_val: inc a movc ret db 0h, 12h, 09h, 06h, 04h, 0h, 0h, 0h, 0h, 0h, 0h, 0h, 0h, 0h, 0h, 0h get_freq_low: inc a movc ret db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;00-0F db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;10-1f db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;20-2f db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;30-3f

17 Jeanette Chan 13 db 0, 04h, 8Ch, 81h, 0DAh, 93h, 0A6h, 0Eh, 0C7h, 0CBh, 17h, 0A7h, 76h, 82h, 0C6h, 40h ;40 db 0EDh, 04h, 81h, 0DAh, 0A6h, 0C7h, 17h, 0A7h, 82h, 40h, 0EDh, 0, 0, 0, 0, 0 ;50 db 0, 04h, 8Ch, 81h, 0DAh, 93h, 0A6h, 0Eh, 0C7h, 0CBh, 17h, 0A7h, 76h, 82h, 0C6h, 40h ;60 db 0EDh, 04h, 81h, 0DAh, 0A6h, 0C7h, 17h, 0A7h, 82h, 40h, 0EDh, 0, 0, 0, 0, 0 ;70 db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;80 db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;90 db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;A0 db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;B0 db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;C0 db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;D0 db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;E0 db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;F0 get_freq_high: inc a movc ret db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;00-0F db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;10-1f db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;20-2f db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;30-3f db 0, 85h, 7Dh, 76h, 6Fh, 69h, 63h, 5Eh, 58h, 53h, 4Fh, 4Ah, 46h, 42h, 3Eh, 3Bh ;40 db 37h, 85h, 76h, 6Fh, 63h, 58h, 4Fh, 4Ah, 42h, 3Bh, 37h, 0, 0, 0, 0, 0 ;50 db 0, 85h, 7Dh, 76h, 6Fh, 69h, 63h, 5Eh, 58h, 53h, 4Fh, 4Ah, 46h, 42h, 3Eh, 3Bh ;60 db 37h, 85h, 76h, 6Fh, 63h, 58h, 4Fh, 4Ah, 42h, 3Bh, 37h, 0, 0, 0, 0, 0 ;70 db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;80 db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;90 db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;A0 db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;B0 db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;C0 db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;D0 db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;E0 db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;F0 init: mov r0, #00h mov r4, #00h mov r7, #10h mov r6, #00h clr p3.3 clr p3.2 ret init_tone:

18 14 A Facilitated Learning Environment for Mentally Disabled Children mov dptr, #0FE03h mov a, #76h a ret init_sp: mov tcon, # b mov th1, #0fdh mov scon, # b ret init_int: mov tmod, # b setb ea setb tr0 setb et0 ret getchr: jnb ri, getchr mov a, sbuf anl a, #7fh clr ri ret sndchr: clr scon.1 mov sbuf,a mov p1, a txloop: jnb scon.1, txloop ret

19 Chapter 3 Visual Subsystem 3.1 Function The function of the visual subsystem is to generate the images in sync with the audio subsystem. The visual subsystem is responsible for generation the proper image at the right location in the staff. It is also responsible for moving the images at the rate determined by the user input. It is interfaced to a simple monitor, using only black and white colors. 3.2 Implementation 15

How to use the PSoC based 16C450 Replacement

How to use the PSoC based 16C450 Replacement How to use the PSoC based 16C450 Replacement Matthew Burns Eric Ponce August 2017 (Updated April 2018) 1 Overview The PSoC based 16C450 Replacement is intended to replace the 16C450 serial communication

More information

8051 Single Board Monitor Programming. Minmon - Yeralan & Ahluwalia. PaulMon1 & PaulMon2 - Paul Stoffregen

8051 Single Board Monitor Programming. Minmon - Yeralan & Ahluwalia. PaulMon1 & PaulMon2 - Paul Stoffregen 8051 Single Board Monitor Programming Monitor Program Available Monitor Program Minmon - Yeralan & Ahluwalia Programming and Interfacing the 8051 Microcontroller PaulMon1 & PaulMon2 - Paul Stoffregen http://www.pjrc.com/tech/8051

More information

MCS-51 Serial Port A T 8 9 C 5 2 1

MCS-51 Serial Port A T 8 9 C 5 2 1 MCS-51 Serial Port AT89C52 1 Introduction to Serial Communications Serial vs. Parallel transfer of data Simplex, Duplex and half-duplex modes Synchronous, Asynchronous UART Universal Asynchronous Receiver/Transmitter.

More information

CoE3DJ4 Digital Systems Design. Chapter 6: Interrupts

CoE3DJ4 Digital Systems Design. Chapter 6: Interrupts CoE3DJ4 Digital Systems Design Chapter 6: Interrupts Interrupts An interrupt is the occurrence of an event that causes a temporary suspension of a program while the condition is serviced by another program.

More information

Department of EIE / Pondicherry Engineering College. Timer/Counters. Department of EIE / Pondicherry Engineering College 1

Department of EIE / Pondicherry Engineering College. Timer/Counters. Department of EIE / Pondicherry Engineering College 1 Timer/Counters Department of EIE / Pondicherry Engineering College 1 The 8051 has two internal sixteen bit hardware Timer/Counters. Each Timer/Counter can be configured in various modes, typically based

More information

ELEG3923 Microprocessor Ch.9 Timer Programming

ELEG3923 Microprocessor Ch.9 Timer Programming Department of Electrical Engineering University of Arkansas ELEG3923 Microprocessor Ch.9 Timer Programming Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 Programming 8051 Timers Counter programming Timer programming

More information

FACULTY OF ENGINEERING LAB SHEET

FACULTY OF ENGINEERING LAB SHEET FACULTY OF ENGINEERING LAB SHEET MICROCONTROLLER AND MICROPROCESSOR SYSTEMS ECE2216 TRIMESTER 1 (2017/2018) MP2: Construction and programming of a basic electronic piano *Note: On-the-spot evaluation may

More information

The 8000 Series Swiss Army Knife Manual

The 8000 Series Swiss Army Knife Manual The 8000 Series Swiss Army Knife Manual Matthew Burns Eric Ponce miburns@mit.edu August 2017 1 Overview The 8000 Series Swiss Army Knife is intended to be a user configurable replacement to most 8000 series

More information

Chapter Family Microcontrollers Instruction Set

Chapter Family Microcontrollers Instruction Set Chapter 4 8051 Family Microcontrollers Instruction Set Lesson 5 Program Flow Control and Interrupt Flow Control Instructions 2 Branch instructions- Jump to new value of Program Counter (PC) LJMP address16

More information

Interrupts. EE4380 Fall 2001 Class 9. Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas

Interrupts. EE4380 Fall 2001 Class 9. Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas 8051 - Interrupts EE4380 Fall 2001 Class 9 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Polling Vs Interrupts Polling: MCU monitors all served devices continuously,

More information

Memory organization Programming model - Program status word - register banks - Addressing modes - instruction set Programming examples.

Memory organization Programming model - Program status word - register banks - Addressing modes - instruction set Programming examples. MICROCONTROLLERS AND APPLICATIONS 1 Module 2 Module-2 Contents: Memory organization Programming model - Program status word - register banks - Addressing modes - instruction set Programming examples. MEMORY

More information

Introduction To MCS-51

Introduction To MCS-51 Introduction To MCS-51 By Charoen Vongchumyen Department of Computer Engineering Faculty of Engineering KMITLadkrabang 8051 Hardware Basic Content Overview Architechture Memory map Register Interrupt Timer/Counter

More information

8051 Microcontroller Assembly Programming

8051 Microcontroller Assembly Programming 8051 Microcontroller Assembly Programming EE4380 Fall 2002 Class 3 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Topics Machine code 8051 Addressing Modes

More information

Chapter 6 Interrupts. (I. Scott Mackenzie) By: Masud-ul-Hasan

Chapter 6 Interrupts. (I. Scott Mackenzie) By: Masud-ul-Hasan Chapter 6 Interrupts (I. Scott Mackenzie) 1 Interrupts An interrupt is the occurrence of an event that causes a temporary suspension of a program while the condition is serviced by another program. It

More information

2. Write an 8051 program to generate a square wave of 25 khz at pin P2.3 using XTAL = 12 MHz. Solution:

2. Write an 8051 program to generate a square wave of 25 khz at pin P2.3 using XTAL = 12 MHz. Solution: Assignment 2 1. Assume that 5 binary data items are stored in RAM locations starting at 50h, as shown below. Write a program to find the sum of all the numbers. The calculation is in 16-bit format and

More information

8-bit Microcontroller with 8K Bytes In-System Programmable Flash AT89S52

8-bit Microcontroller with 8K Bytes In-System Programmable Flash AT89S52 Features Compatible with MCS -51 Products 8K Bytes of In-System Programmable (ISP) Flash Memory Endurance: 10,000 Write/Erase Cycles 4.0V to 5.5V Operating Range Fully Static Operation: 0 Hz to 33 MHz

More information

Lab-Report Microprocessors

Lab-Report Microprocessors Lab-Report Microprocessors Digital Voltage Meter (DVM) NO YES Name: Dirk Becker Course: BEng 2 Group: A Student No.: 9801351 Date: 05/May/1999 1. Contents 1. CONTENTS... 2 2. INTRODUCTION... 3 3. THE PROJECT...

More information

Microcontroller Intel [Instruction Set]

Microcontroller Intel [Instruction Set] Microcontroller Intel 8051 [Instruction Set] Structure of Assembly Language [ label: ] mnemonic [operands] [ ;comment ] Example: MOV R1, #25H ; load data 25H into R1 2 8051 Assembly Language Registers

More information

Microprocessors 1. The 8051 Instruction Set. Microprocessors 1 1. Msc. Ivan A. Escobar Broitman

Microprocessors 1. The 8051 Instruction Set. Microprocessors 1 1. Msc. Ivan A. Escobar Broitman Microprocessors 1 The 8051 Instruction Set Microprocessors 1 1 Instruction Groups The 8051 has 255 instructions Every 8-bit opcode from 00 to FF is used except for A5. The instructions are grouped into

More information

Interrupt Programming: Interrupts vs. Polling Method:

Interrupt Programming: Interrupts vs. Polling Method: UNIT 4: INTERRUPT PROGRAMMING & SERIAL COMMUNICATION WITH 8051: Definition of an interrupt, types of interrupts, Timers and Counter programming with interrupts in assembly. 8051 Serial Communication: Data

More information

MicroConverter Technical Note - uc007 User Download (ULOAD) Mode

MicroConverter Technical Note - uc007 User Download (ULOAD) Mode 1.0 INTRODUCTION : The ADuC83X family ( big memory family ) all integrate a large program memory space, with 62kBytes of flash/ee program memory available to the user. As with the standard MicroConverter

More information

8051 Microcontroller

8051 Microcontroller 8051 Microcontroller EE4380 Fall 2001 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas 8051 Architecture Programmer s View Register Set Instruction Set Memory

More information

Microcontroller and Embedded Systems:

Microcontroller and Embedded Systems: Microcontroller and Embedded Systems: Branches: 1. Electronics & Telecommunication Engineering 2. Electrical & Electronics Engineering Semester: 6 th Semester / 7 th Semester 1. Explain the differences

More information

CPEG300 Embedded System Design. Lecture 6 Interrupt System

CPEG300 Embedded System Design. Lecture 6 Interrupt System CPEG300 Embedded System Design Lecture 6 Interrupt System Hamad Bin Khalifa University, Spring 2018 Correction Lecture 3, page 18: Only direct addressing mode is allowed for pushing or popping the stack:

More information

Question Bank Microprocessor and Microcontroller

Question Bank Microprocessor and Microcontroller QUESTION BANK - 2 PART A 1. What is cycle stealing? (K1-CO3) During any given bus cycle, one of the system components connected to the system bus is given control of the bus. This component is said to

More information

Embedded Controller Programming

Embedded Controller Programming Embedded Controller Programming Counters, Timers and I/O in Assembly Language Ken Arnold Copyright 2000-2004 Ken Arnold 1 Outline Timer/Counters Serial Port More 8051 Instructions Examples Copyright 2000-2004

More information

Subroutines & Software Delay Routines

Subroutines & Software Delay Routines Subroutines & Software Delay Routines Department of EIE / Pondicherry Engineering College 1 Subroutines & Software Delay Routines This chapter introduces software based timing routines. The examples introduce

More information

اصول ميکروکامپيوترها استاد درس: دکتر http://ee.iust.ac.ir/rahmati/index.htm rahmati@iust.ac.ir ا درس Email و Website برای تکاليف و... : http://eel.iust.ac.ir/rahmati/ ١ هجدهم فصل ا شنايی با تايمرهای 8051

More information

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture Department of Electrical Engineering Lecture 4 The 8051 Architecture 1 In this Lecture Overview General physical & operational features Block diagram Pin assignments Logic symbol Hardware description Pin

More information

MICROPROCESSORS AND MICROCONTROLLERS MATERIAL. Features of 8051:

MICROPROCESSORS AND MICROCONTROLLERS MATERIAL. Features of 8051: DEPARTMENT OF ECE MICROPROCESSORS AND MICROCONTROLLERS MATERIAL UNIT V 8051 MICROCONTROLLERS To make a complete microcomputer system, only microprocessor is not sufficient. It is necessary to add other

More information

UNIT 2 THE 8051 INSTRUCTION SET AND PROGRAMMING

UNIT 2 THE 8051 INSTRUCTION SET AND PROGRAMMING UNIT 2 THE 8051 INSTRUCTION SET AND PROGRAMMING Instructions Alphabetical List of Instructions ACALL: Absolute Call ADD, ADDC: Add Accumulator (With Carry) AJMP: Absolute Jump ANL: Bitwise AND CJNE: Compare

More information

Advantages of Using a Dallas Semiconductor DS1232 MicroMonitor

Advantages of Using a Dallas Semiconductor DS1232 MicroMonitor Maxim > Design Support > Technical Documents > Application Notes > Microprocessor Supervisor Circuits > APP 581 Keywords: power on reset, por, push-button reset, manual reset, debounced, power fail, watchdog

More information

Chapter 09. Programming in Assembly

Chapter 09. Programming in Assembly Chapter 09 Programming in Assembly Lesson 05 Programming Examples for Timers Programming TMOD Register 3 Write instructions to run T0 in Mode 0, external count inputs, internal start/stop control ANL TMOD,

More information

MODULE-1. Short Answer Questions

MODULE-1. Short Answer Questions MODULE-1 Short Answer Questions 1. Give the comparison between microprocessor and microcontroller. It is very clear from figure that in microprocessor we have to interface additional circuitry for providing

More information

~: Simple Programs in 8051 assembly language :~

~: Simple Programs in 8051 assembly language :~ ~: Simple Programs in 8051 assembly language :~ Here some simple programs of 8051 are given to understand the operation of different instructions and to understand the logic behind particular program.

More information

8051 Core Specification

8051 Core Specification 8051 Core Specification Authors: Jaka Simsic Simon Teran jakas@opencores.org simont@opencores.org Rev. 0.1 August 14, 2001 First Draft www.opencores.org Rev 0.1 First Draft 1 of 26 Revision History Rev.

More information

Contents 8051 Instruction Set BY D. BALAKRISHNA, Research Assistant, IIIT-H Chapter I : Control Transfer Instructions Lesson (a): Loop Lesson (b): Jump (i) Conditional Lesson (c): Lesson (d): Lesson (e):

More information

8051 Timers and Serial Port

8051 Timers and Serial Port 8051 Timers and Serial Port EE4380 Fall 2001 Class 10 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Timer: Mode 1 Operation (recap) 16 bit counter. Load the

More information

Mod-3: Interrupts,Timer operation,serial communication 1

Mod-3: Interrupts,Timer operation,serial communication 1 Mod-3: Interrupts,Timer operation,serial communication 1 Module-3 Contents: Interrupts - interrupt sources - interrupt handling programming examples. Timers operation different modes waveform generation-

More information

UNIT THE 8051 INSTRUCTION SET AND PROGRAMMING

UNIT THE 8051 INSTRUCTION SET AND PROGRAMMING UNIT THE 8051 INSTRUCTION SET AND PROGRAMMING Instructions Alphabetical List of Instructions ACALL: Absolute Call ADD, ADDC: Add Accumulator (With Carry) AJMP: Absolute Jump ANL: Bitwise AND CJNE: Compare

More information

Vidyalankar T.E. Sem. V [ETRX] Microprocessors and Microcontrollers I Prelim Question Paper Solution

Vidyalankar T.E. Sem. V [ETRX] Microprocessors and Microcontrollers I Prelim Question Paper Solution 1. (a) 1. (b) T.E. Sem. V [ETRX] Microprocessors and Microcontrollers I Prelim Question Paper Solution Priority modes. 1) Fully Nested Mode : It is a general purpose mode. IR 0 highest priority IR 1 lowest

More information

8051 Overview and Instruction Set

8051 Overview and Instruction Set 8051 Overview and Instruction Set Curtis A. Nelson Engr 355 1 Microprocessors vs. Microcontrollers Microprocessors are single-chip CPUs used in microcomputers Microcontrollers and microprocessors are different

More information

MultimediO User s Guide

MultimediO User s Guide MultimediO User s Guide This guide will instruct you in the use of MultimediO, your gateway to all things peripheral. The FPGA boards provided to you come pre-burned with the appropriate programming file,

More information

8051 Microcontroller

8051 Microcontroller 8051 Microcontroller The 8051, Motorola and PIC families are the 3 leading sellers in the microcontroller market. The 8051 microcontroller was originally developed by Intel in the late 1970 s. Today many

More information

Architecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller

Architecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller of 8085 microprocessor 8085 is pronounced as "eighty-eighty-five" microprocessor. It is an 8-bit microprocessor designed by Intel in 1977 using NMOS technology. It has the following configuration 8-bit

More information

Programming Book Microcontroller Kit. Rev 3.0 January, Wichit Sirichote

Programming Book Microcontroller Kit. Rev 3.0 January, Wichit Sirichote Programming Book1 8051 Microcontroller Kit Rev 3.0 January, 016 016 Wichit Sirichote 1 Contents Overview...3 SAFTY INFORMATION...3 Tools...3 Experiment 1 Blinking LED...4 Experiment Binary number counting...9

More information

MASSEY UNIVERSITY PALMERSTON NORTH CAMPUS

MASSEY UNIVERSITY PALMERSTON NORTH CAMPUS MASSEY UNIVERSITY PALMERSTON NORTH CAMPUS EXAMINATION FOR 159.233 COMPUTER SYSTEMS Semester One June 2008 Time allowed: THREE (3) hours This exam contains THREE (3) questions ANSWER ALL THREE (3) QUESTIONS

More information

Arithmetic and Logic

Arithmetic and Logic 8051 - Arithmetic and Logic EE4380 Fall 2001 Class 8 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Signed Arithmetic - Concepts Representation of the sign

More information

8051 I/O and 8051 Interrupts

8051 I/O and 8051 Interrupts 8051 I/O and 8051 Interrupts Class 7 EE4380 Fall 2002 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Agenda 8051 I/O Interfacing Scanned LED displays LCD displays

More information

C H A P T E R 1 INTRODUCTION

C H A P T E R 1 INTRODUCTION C H A P T E R 1 INTRODUCTION The mentioned project is based on the worlds most powerful intel controller 8051. Most of the services provided in todays world are voice interactive, you call up your bank

More information

EE6502- MICROPROCESSOR AND MICROCONTROLLER

EE6502- MICROPROCESSOR AND MICROCONTROLLER . EE6502- MICROPROCESSOR AND MICROCONTROLLER UNIT III - 8051 MICROCONTROLLER PART - A 1. What is Microcontroller? A device which contains the microprocessor with integrated peripherals like memory, serial

More information

Assembly Language programming (2)

Assembly Language programming (2) EEE3410 Microcontroller Applications LABORATORY Experiment 2 Assembly Language programming (2) Name Class Date Class No. Marks Arithmetic, Logic and Jump instructions Objectives To learn and practice the

More information

8-Bit Microcontroller with 2K Bytes Flash AT89C2051. Features. Description. Pin Configuration

8-Bit Microcontroller with 2K Bytes Flash AT89C2051. Features. Description. Pin Configuration Features Compatible with MCS-51 Products 2K Bytes of Reprogrammable Flash Memory Endurance: 1,000 Write/Erase Cycles 2.7V to 6V Operating Range Fully Static Operation: 0 Hz to 24 MHz Two-Level Program

More information

CPEG300 Embedded System Design. Lecture 8 Timer

CPEG300 Embedded System Design. Lecture 8 Timer CPEG300 Embedded System Design Lecture 8 Timer Hamad Bin Khalifa University, Spring 2018 Review 8051 port and port schematic Internal read/write data path Serial communication vs. parallel communication

More information

80C451 operation of port 6

80C451 operation of port 6 INTRODUCTION The features of the are shared with the 80C5 or are conventional except for the operation of port 6. The flexibility of this port facilitates high-speed parallel data communications. This

More information

Hardware Setups for Communication with a DS1267

Hardware Setups for Communication with a DS1267 Maxim > Design Support > Technical Documents > Application Notes > Digital Potentiometers > APP 409 Maxim > Design Support > Technical Documents > Application Notes > General Engineering Topics > APP 409

More information

Assembly Language programming (3)

Assembly Language programming (3) EEE3410 Microcontroller Applications LABORATORY Experiment 3 Assembly Language programming (3) Name Class Date Class No. Marks Conditional Program Branching and Subroutine Call in 8051 Objectives To learn

More information

Digital Blocks Semiconductor IP

Digital Blocks Semiconductor IP 805 SFR Bus Digital Blocks Semiconductor IP 805 Microcontroller Configurable Peripherals General Description The Digital Blocks (Configurable Peripherals) Microcontroller Verilog IP Core is complaint with

More information

Principle and Interface Techniques of Microcontroller

Principle and Interface Techniques of Microcontroller Principle and Interface Techniques of Microcontroller --8051 Microcontroller and Embedded Systems Using Assembly and C LI, Guang ( 李光 ) Prof. PhD, DIC, MIET WANG, You ( 王酉 ) PhD, MIET 杭州 浙江大学 2014 Chapter

More information

INTERRUPTS PROGRAMMING

INTERRUPTS PROGRAMMING INTERRUPTS PROGRAMMING The 8051 Microcontroller and Embedded Systems: Using Assembly and C Mazidi, Mazidi and McKinlay Chung-Ping Young 楊中平 Home Automation, Networking, and Entertainment Lab Dept. of Computer

More information

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices,

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices, Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices, CISC and RISC processors etc. Knows the architecture and

More information

1. Pin diagram of 8051 and ports

1. Pin diagram of 8051 and ports e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Programming parallel ports Module No: CS/ES/9 Quadrant 1 e-text In this lecture pin diagram of 8051 controller will be shown and

More information

TUTORIAL. Donal Heffernan University of Limerick May Tutorial D.Heffernan 2000,

TUTORIAL. Donal Heffernan University of Limerick May Tutorial D.Heffernan 2000, 8051 TUTORIAL Donal Heffernan University of Limerick May-2002 8051 Tutorial D.Heffernan 2000, 2001 1 Blank 8051 Tutorial D.Heffernan 2000, 2001 2 Some reference material: Test books + MacKenzie Scott.

More information

Vector-based Pong on an Oscilloscope

Vector-based Pong on an Oscilloscope Vector-based Pong on an Oscilloscope Edmond Lau 6.115 Final Project May 13, 2004 Edmond Lau Page 2 5/13/2004 Table of Contents 1 Introduction 3 2 Hardware Design Description 3 2.1 Using the Oscilloscope

More information

Digital Blocks Semiconductor IP

Digital Blocks Semiconductor IP Digital Blocks Semiconductor IP 805 Microcontroller General Description The Digital Blocks Microcontroller Verilog IP Core is complaint with the MCS 5 Instruction Set and contains standard 805 MCU peripherals,

More information

Microcontroller. Instruction set of 8051

Microcontroller. Instruction set of 8051 UNIT 2: Addressing Modes and Operations: Introduction, Addressing modes, External data Moves, Code Memory, Read Only Data Moves / Indexed Addressing mode, PUSH and POP Opcodes, Data exchanges, Example

More information

SN8F5000 Family Instruction Set

SN8F5000 Family Instruction Set SONiX Technology Co., Ltd. 8051-based Microcontroller 1 Overview SN8F5000 is 8051 Flash Type microcontroller supports comprehensive assembly instructions and which are fully compatible with standard 8051.

More information

Department of Electronics and Instrumentation Engineering Question Bank

Department of Electronics and Instrumentation Engineering Question Bank www.examquestionpaper.in Department of Electronics and Instrumentation Engineering Question Bank SUBJECT CODE / NAME: ET7102 / MICROCONTROLLER BASED SYSTEM DESIGN BRANCH : M.E. (C&I) YEAR / SEM : I / I

More information

8051 Timers. Class 7 EE4380 Fall Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas

8051 Timers. Class 7 EE4380 Fall Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas 8051 Timers Class 7 EE4380 Fall 2002 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Introduction Timers Timing devices - Generate specific time delay Event

More information

8051 Serial Port. EE4380 Fall02 Class 10. Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas

8051 Serial Port. EE4380 Fall02 Class 10. Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas 8051 Serial Port EE4380 Fall02 Class 10 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Serial Comm. - Introduction Serial Vs Parallel Transfer of data Simplex,

More information

Chapter 09. Programming in Assembly

Chapter 09. Programming in Assembly Chapter 09 Programming in Assembly Lesson 03 Programming Approach for Main and Interrupt Service Routines in 8051 Program Approach for programming Main Program Instructions 3 Main program initial instructions

More information

D: arc SRC KUT51 KUT51LCD.LST KUT51LCD PAGE 1

D: arc SRC KUT51 KUT51LCD.LST KUT51LCD PAGE 1 D: arc SRC KUT51.LST PAGE 1 1 1 ; Ver 1.1 : Hyper Terminal and LCD supported(line delay=20 ms, 19200 bps) 2 3 $mod51 4 5 ; PORT DEFINITION F800 6 LCD_COMMAND_WR EQU 0F800H F801 7 LCD_DATA_WR EQU 0F801H

More information

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Interrupt Handling Module No: CS/ES/13 Quadrant 1 e-text

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Interrupt Handling Module No: CS/ES/13 Quadrant 1 e-text e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Interrupt Handling Module No: CS/ES/13 Quadrant 1 e-text 1. Interrupt An interrupt is the occurrence of a condition--an event --

More information

CPEG300 Embedded System Design. Lecture 3 Memory

CPEG300 Embedded System Design. Lecture 3 Memory CPEG300 Embedded System Design Lecture 3 Memory Hamad Bin Khalifa University, Spring 2018 Review Von Neumann vs. Harvard architecture? System on Board, system on chip? Generic Hardware Architecture of

More information

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT- IV

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT- IV UNIT- IV PART A (2 MARK QUESTIONS) 1. What is the need for de-bouncing the keyboard? (AUC NOV 2012) Debouncing is any kind of hardware device or software that ensures that only a single signal will be

More information

8051 Microcontroller. Ali Ziya Alkar 1

8051 Microcontroller. Ali Ziya Alkar 1 8051 Microcontroller Ali Ziya Alkar 1 8051 Introduction 8051 is one of the most popular microcontrollers in use today. Many derivative microcontrollers have since been developed that are based on--and

More information

Digital Blocks Semiconductor IP

Digital Blocks Semiconductor IP Digital Blocks Semiconductor IP DB805C-FSM 805 Microcontroller FSM Finite State Machine General Description The Digital Blocks DB805C-FSM IP Core contains Digital Blocks compact DB805C CPU Core & GPIO

More information

8-Bit Microcontroller with 1K Bytes Flash. AT89C1051U Preliminary. Features. Description. Pin Configuration

8-Bit Microcontroller with 1K Bytes Flash. AT89C1051U Preliminary. Features. Description. Pin Configuration Features Compatible with MCS-51 Products 1K Bytes of Reprogrammable Flash Memory Endurance: 1,000 Write/Erase Cycles 2.7V to 6V Operating Range Fully Static Operation: 0 Hz to 24 MHz Two-Level Program

More information

ET355 Microprocessors Friday 6:00 pm 10:20 pm

ET355 Microprocessors Friday 6:00 pm 10:20 pm ITT Technical Institute ET355 Microprocessors Friday 6:00 pm 10:20 pm Unit 3 Chapter 4, pp. 100-106 Chapter 5, pp. 109-135 Unit 3 Objectives Lecture: Review I/O Ports and Flags of 805x Microprocessor Review

More information

UNIT-III ASSEMBLY LANGUAGE PROGRAMMING. The CPU can access data in various ways, which are called addressing modes

UNIT-III ASSEMBLY LANGUAGE PROGRAMMING. The CPU can access data in various ways, which are called addressing modes 8051 Software Overview: 1. Addressing Modes 2. Instruction Set 3. Programming 8051 Addressing Modes: UNIT-III ASSEMBLY LANGUAGE PROGRAMMING The CPU can access data in various ways, which are called addressing

More information

ELEG3923 Microprocessor Ch.4 I/O Ports

ELEG3923 Microprocessor Ch.4 I/O Ports Department of Electrical Engineering University of Arkansas ELEG3923 Microprocessor Ch.4 I/O Ports Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 8051 I/O programming I/O bit manipulation programming I/O PORT

More information

Module Contents of the Module Hours COs

Module Contents of the Module Hours COs Microcontrollers (EE45): Syllabus: Module Contents of the Module Hours COs 1 8051 MICROCONTROLLER ARCHITECTURE: Introduction to Microprocessors and Microcontrollers, the 8051 Architecture, 08 1 and pin

More information

INTEGRATED CIRCUITS. AN408 80C451 operation of port 6

INTEGRATED CIRCUITS. AN408 80C451 operation of port 6 INTEGRATED CIRCUITS March 1988 INTRODUCTION The features of the are shared with the 80C51 or are conventional except for the operation of port 6. The flexibility of this port facilitates high-speed parallel

More information

Contents. Join the Technical Community Today!

Contents. Join the Technical Community Today! Contents CHAPTER 1: INTRODUCTION... 5 1. WELCOME... 5 1.2 PS 8051 BOARD OVERVIEW... 6 1.3 PS 8051 SPECIFICATIONS... 7 CHAPTER 2: SYSTEM DESCRIPTION... 9 2.1 HARDWARE... 9 2.2 MAPPING OF DEVICES... 11 2.2.1

More information

8-bit Microcontroller with 2/4-Kbyte Flash AT89LP2052 AT89LP4052

8-bit Microcontroller with 2/4-Kbyte Flash AT89LP2052 AT89LP4052 Features Compatible with MCS 51 Products 20 MIPS Throughput at 20 MHz Clock Frequency and 2.4V, 85 C Operating Conditions Single Clock Cycle per Byte Fetch 2/4K Bytes of In-System Programmable (ISP) Flash

More information

MICROCONTROLLER BASED WATER LEVEL CONTROL SYSTEM

MICROCONTROLLER BASED WATER LEVEL CONTROL SYSTEM MICROCONTROLLER BASED WATER LEVEL CONTROL SYSTEM The present concept implements controlling of pump which pumps water from the sump (underground tank) to the overhead tank, using 8951 microcontroller.

More information

UNIT MICROCONTROLLER AND ITS PROGRAMMING

UNIT MICROCONTROLLER AND ITS PROGRAMMING M i c r o p r o c e s s o r s a n d M i c r o c o n t r o l l e r s P a g e 1 UNIT-7 8051 MICROCONTROLLER AND ITS PROGRAMMING INTRODUCTION The microcontroller incorporates all the features that are found

More information

Microcontroller and Applications

Microcontroller and Applications S.Y. Diploma : Sem. IV [DE/EJ/ET/EN/EX/EQ/IS/IC/IE] Microcontroller and Applications Time: 3 Hrs.] Prelim Question Paper Solution [Marks : 70 Q.1 Attempt any FIVE of the following : [10] Q.1(a) Define

More information

CPEG300 Embedded System Design. Lecture Interface with Peripheral Devices

CPEG300 Embedded System Design. Lecture Interface with Peripheral Devices CPEG300 Embedded System Design Lecture 0 805 Interface with Peripheral Devices Hamad Bin Khalifa University, Spring 208 Typical Devices for an Electronics System Power generation PWM control Input devices

More information

The Final Word on 8051 Microcontroller

The Final Word on 8051 Microcontroller The Final Word on 8051 Microcontroller This is a book about the Intel 8051 microcontroller and its large family of descendants. It is intended to give you, the reader, some new techniques for optimizing

More information

CoE3DJ4 Digital Systems Design. Chapter 5: Serial Port Operation

CoE3DJ4 Digital Systems Design. Chapter 5: Serial Port Operation CoE3DJ4 Digital Systems Design Chapter 5: Serial Port Operation Serial port 8051 includes an on-chip serial port Hardware access to the port is through TXD and RXD (Port 3 bits 1 and 0) Serial port is

More information

Three criteria in Choosing a Microcontroller

Three criteria in Choosing a Microcontroller The 8051 Microcontroller architecture Contents: Introduction Block Diagram and Pin Description of the 8051 Registers Some Simple Instructions Structure of Assembly language and Running an 8051 program

More information

User-defined Download Application Note

User-defined Download Application Note User-defined Download 1. Applied Products: SM59XX Series, SM59DXX Series, SM59RXX Series. 2. Object: User can define command as entry ISP password through ISAP software to run programming. 3. Operation

More information

Introduction to uc & Embedded Systems

Introduction to uc & Embedded Systems Introduction to uc & Embedded Systems Prepared by, Tamim Roshdy Embedded Systems What is an embedded system? An embedded system is an application that contains at least one programmable computer (typically

More information

Fig 1. Block diagram of a microcomputer

Fig 1. Block diagram of a microcomputer MICRO CONTROLLERS www.bookspar.com VTU NOTES QUESTION PAPERS UNIT - 1 Computer: A computer is a multipurpose programmable machine that reads binary instructions from its memory, accepts binary data as

More information

Timers and interrupts

Timers and interrupts Timers and interrupts CSCI 255: Introduction to Embedded Systems Keith Vertanen Copyright 2011 Timers Overview Creating fixed pauses Calculate length of events Counts events Generate baud rate for serial

More information

Principle and Interface Techniques of Microcontroller

Principle and Interface Techniques of Microcontroller Principle and Interface Techniques of Microcontroller --8051 Microcontroller and Embedded Systems Using Assembly and C LI, Guang ( 李光 ) Prof. PhD, DIC, MIET WANG, You ( 王酉 ) PhD, MIET 杭州 浙江大学 2011 Chapter

More information

Application Note AN21. Power-On-Reset (POR) Software Implementation. Low Voltage Reset (LVR) Watchdog Timer. Hardware Implementation

Application Note AN21. Power-On-Reset (POR) Software Implementation. Low Voltage Reset (LVR) Watchdog Timer. Hardware Implementation AN21 X5043/X5045 System Supervisors Manage 8051 type Microcontrollers by Applications Staff, May 2001 Both the X5043 and X5045 feature a power on reset circuit, low voltage reset controller, programmable

More information

C51 Family. Architectural Overview of the C51 Family. Summary

C51 Family. Architectural Overview of the C51 Family. Summary Architectural Overview of the C51 Family C51 Family Summary 1. Introduction............................................................ I.1. 1.1. TSC80C51/80C51/80C31.................................................................

More information

8051 Microcontroller

8051 Microcontroller 8051 Microcontroller 1 Salient Features (1). 8 bit microcontroller originally developed by Intel in 1980. (2). High-performance CMOS Technology. (3). Contains Total 40 pins. (4). Address bus is of 16 bit

More information