Microcontrollers Figure 26-1 Objectives Key Words and Terms 26.1 OVERVIEW OF THE MICROCONTROLLER microcontroller

Size: px
Start display at page:

Download "456 26 Microcontrollers Figure 26-1 Objectives Key Words and Terms 26.1 OVERVIEW OF THE MICROCONTROLLER microcontroller"

Transcription

1 This sample chapter is for review purposes only. Copyright The Goodheart-Willcox Co., Inc. All rights reserved. 456 Electronic Communication and Data Systems Objectives After studying this chapter, you will be able to: Define microcontroller. Explain the difference between a computer and a microcontroller. Explain the function of main microcontroller parts. Identify various types of ROM. Name the general types of programming languages. Name some common components found on a microcontroller module. Key Words and Terms The following words and terms will become important pieces of your electricity and electronics vocabulary. Look for them as you read this chapter. arithmetic/logic unit (ALU) assembler program assembly language editor electrically erasable programmable read only memory (EEPROM) erasable programmable read only memory (EPROM) high-level language interpreter library machine code machine language macro 26 Microcontrollers masked ROM microcontroller microcontroller interface object code opcode operand port program counter programmable read only memory (PROM) register source code stack stack pointer watchdog timer word size This chapter introduces you to the microcontroller. The microcontroller is a programmable integrated circuit. This means that the microcontroller can be programmed to perform a set of specific functions. The microcontroller is, therefore, the merging of programming languages and digital logic components. Complex controls that once required thousands or even millions of individual components are duplicated in a single chip. The information in this chapter builds a bridge of technical knowledge between software programs and digital ICs. You will discover how computer software can be used to control integrated circuit devices to achieve the same results as control systems that require many discrete devices. The microcontroller has dramatically changed the way control circuitry is designed OVERVIEW OF THE MICROCONTROLLER A microcontroller is an integrated circuit (IC) that can be programmed to perform a set of functions to control a collection of electronic devices. Being programmable is what makes the microcontroller unique. Often thought of as a tiny computer on a single chip, the microcontroller is used in many applications and can be found in almost every electronic device we encounter daily. In this section, you will learn what makes the microcontroller comparable to the computer. You will also learn why the microcontroller has replaced many relays and solid-state devices in industry. Comparison and Contrast of the Microcontroller and the Computer You will find that many of the terms you will learn in this chapter can also be applied to computers. This is because the microcontroller and the computer share many common components: A microprocessor to process instructions. Memory locations to store data and programming information. Input/output facilities to move data between itself and another device. 455 See Figure Although the microcontroller and the computer share many common components, there are many distinct differences between them. The major differences between a computer and a microcontroller are The limitations of the microprocessor. The amount of memory available for data and program manipulation. The type of storage available to permanently store a program. A microprocessor inside a computer is more powerful and more versatile than that in a microcontroller. The computer s microprocessor allows the computer to run a variety of programs and applications. A single computer can be used to perform a variety of functions such as word processing, playing a DVD, playing an interactive game over the Internet, monitoring security systems, and making a CAD drawing. A microprocessor in a microcontroller has a limited instruction set that allows it to run a specific application. In other words, the microcontroller can only understand a limited number of commands, and these commands are specific to the functions the processor is designed to handle. For example, a microcontroller may be designed specifically to monitor and control a fuel injection system on an automobile. In fact, every car manufactured today has many microcontrollers incorporated into its electrical system antilock brakes, fuel control, air conditioning, heating, and keyless security locks. Each microcontroller on a vehicle is designed to handle a specific function. ROM Microprocessor RAM Figure The microcontroller and the computer share similar components. The microcontroller, like the computer, uses RAM to store programs and data temporarily. The amount of RAM built into a microcontroller is minimal and is usually enough for its intended use. The RAM in a computer is ample enough to run a variety of memory intensive applications. All computers and microcontrollers must have some sort of ROM that contains a permanent set of instructions so that they can communicate with other devices. The microcontroller stores in its ROM the program it needs to perform a specific job. The computer has a ROM, called the BIOS, that contains BASIC programming functions. The computer stores the rest of its programs, operating system and applications, in other storage devices such as a hard drive. A larger capacity for program storage makes the computer more versatile and powerful than a microcontroller and allows it to run many different programs. Although computers are versatile and powerful, the microcontroller has its advantages. Microcontrollers are small and can fit inside other devices like an appliance or a vehicle. Microcontrollers cost less to produce, and they ROM (BIOS) Program and data storage RAM RAM Microprocessor

2 Chapter 26 Microcontrollers Electronic Communication and Data Systems consume less power. Microcontrollers are used in almost all types of electronic equipment, from coffeepots to laser printers. They are even incorporated into computer systems. They can be found in floppy drives, CD-ROM drives, and video cards. A microcontroller is often embedded into the electronic circuit boards of these computer devices. A microcontroller is usually a single chip, but when incorporated into a large control system, it is referred to as an embedded controller, Figure An embedded controller often depends on other components in the system, such as additional memory, to perform its function. Microcontrollers are also used heavily in industry. They have taken the place of relays, solid-state devices, and other discrete components. Figure The microcontroller inside this refrigerator contributes to energy and cost savings by monitoring temperature and controlling the compressor. Courtesy of Motorola, Inc. Advantages of Using Microcontrollers in Industry There are a number of advantages to using microcontrollers in industry. Some of the major advantages of microcontrollers are that they are reusable, dependable, cost effective, and energy efficient. Reusable The typical microcontroller is programmable, which means it is reusable. This is especially advantageous for prototyping control circuitry. When developing a complex control system, it is not unusual for it to fail when first applied. As a matter of fact, a complex control project may need to be rewritten and/or rewired many times before it meets design expectations. The fact that the control circuit can be modified by programming rather than rewiring is very advantageous for fast project prototype development. Dependable Integrated circuits, such as the microcontroller, are much more dependable than relays. Before microcontrollers, control circuitry relied on many electromechanical relays and timers to control the system. Relays depend on electromagnets to move armature and contact parts, so they eventually wear out due to mechanical friction. Relays are also susceptible to damage caused by dust, dirt, corrosion, rust, insects, and other contaminants that can interfere with the moving parts. Microcontrollers have no moving parts. This provides a much higher rate of reliability. Relays and high-power transistors can be incorporated for final applications to motors, but the actual timing and control logic does not need to rely on the mechanical action of relays. Cost effective Microcontrollers can be produced at lower costs than their electromechanical predecessors. Also, microcontrollers can be reprogrammed if the designed application does not work correctly or if the application for its use changes. Energy efficient Because the majority of the circuitry is made from integrated circuits, the energy cost of using a microcontroller is much less than if using individual components of a relay-type logic circuit. Relay logic uses numerous relays wired in series and parallel to form control circuit conditions similar in function to logic gates. A microcontroller consumes less electrical energy than conventional electromechanical devices. Disadvantages of Using Microcontrollers in Industry There are a few disadvantages to using microcontrollers. The two most prominent disadvantages are the need for skilled programmers and the sensitivity of the controllers to electrostatic charges. Programming complexity Special skills are required to program the microcontrollers. This requires a higher level of training for some personnel. In addition, there are many different programming languages to choose from. This can lead to a compatibility problem when attempting to merge two dissimilar systems into one control system. Electrostatic sensitivity Most microcontrollers are composed of complimentary metal-oxide semiconductor (CMOS) integrated circuitry. CMOS can be damaged easily by a static charge. Static precautions must be strictly obeyed. Review Questions for Section Name three differences between a computer and a microcontroller. 2. What types of devices are controlled by a microcontroller? 3. What is an embedded controller? 4. What are four advantages of using microcontrollers in industry? 5. Name two disadvantages of using microcontrollers in industry MICROCONTROLLER COMPONENTS The microcontroller consists of thousands of digital circuits. These digital circuits are combined into areas that provide specific functions. Examine Figure The simplified block diagram illustrates how the major sections inside the microcontroller work together to process the program instructions. The parts of the microcontroller are used to save data and programs, perform math and logic functions, and generate timing signals. The different areas are connected by a bus system. The bus system contains tiny parallel circuits that carry the digital pulse patterns from section to section. The ROM stores the program required for the microcontroller to function. The ROM controls how the chip components operate and how data and instructions flow through the chip. EPROM ROM Instructional register Instruction decoder ALU Program counter Bus General purpose register Ports and Registers Stack area Watchdog timer Oscillator Port A Port B Port C Figure A simplified block diagram of a typical microcontroller. All the major components are connected together by a bus system. Data and instructions are moved around the chip via the bus. There are many different types of registers and ports found inside a microcontroller chip. Ports and registers are special memory locations dedicated to a specific function such as a hardware location or a place to manipulate data. Some ports correspond to the input and output pin assignments of the chip. By placing a one or zero into a specific port address, you can change the pin assignment of the microcontroller from an input pin to an output pin. Ports can also contain information sent to the pins on the microcontroller chip from sensors or switches. The contents can then be stored in memory or remain in the port. A register can be used to hold the contents of data being manipulated. For example, when performing a mathematical operation, the data being manipulated must be stored in two different registers and the result placed in a third register. See Figure In the illustration, you see three registers labeled as A, B, and C. The content of register A and the content of register B are added together and then stored in register C. Another typical use of a register is to store a value to be compared to another register value. For example, compare the content of register A to the content of register B. If the values are identical, an action is initiated such as turning on a valve, activating a door switch, or turning on an alarm. The contents of the two registers, A and B, could compare a temperature rise to a preset value, or the distance moved by a robotic arm. As you work with programs and memory, the use and applications for registers will become more apparent.

3 Chapter 26 Microcontrollers Electronic Communication and Data Systems Register A Register A Register B Register B Register C When the content of register A is equal to the content of register B, set off the alarm. Figure The contents of the two registers can be compared to determine if an action should begin. Stack Pointer and Program Counter The area in memory that is used to store data and program information is called the stack. The most common use of the stack is to store the program address of the next instruction to be executed. Since the processor processes commands sequentially, one after the other until complete, it relies on the stack to temporarily store the address of the next instruction in case the main program is interrupted. A special device called the stack pointer keeps track of the last stack location used while the processor is busy manipulating data values, checking ports, or checking interrupts. Look at Figure Stack pointer value 00 A2 Stack Instruction addresses and data Figure The stack pointer is responsible for keeping track of the sequence of memory locations, referred to as the stack, while the computer is manipulating data and checking interrupts. Interrupts are, as the name implies, a way to interrupt the processor while it is processing instructions and data to perform a different task. The interrupts come in two varieties: hardware interrupts and software interrupts. An example of a hardware interrupt is when input pin number 3 receives an electrical signal from a push button, and the microprocessor stops what it is doing to respond to the signal. While it is responding to the push button signal (a hardware interrupt), the contents of the program counter are pushed onto the stack. The stack pointer bookmarks the location of the last item pushed onto the stack. When the processor finishes servicing the interrupt, the counter address is popped from the stack and returned to the program counter, and the microprocessor continues processing the instructions in order. ALU The arithmetic/logic unit (ALU) performs common mathematical and logical operations on data. The logical operations are similar to the digital devices you have studied earlier in this textbook. Some typical logic functions are similar to the AND, OR, NOT, NOR, and NAND digital gates. Oscillator The oscillator is a complex digital device that requires a steady digital pulse for timing. All of the separate functions are controlled by one central timing system. The timing pulse provides the basis for proper sequence of all the separate sections of the microcontroller chip. The source of the steady pulse rate is the oscillator circuit. Watchdog Timer A specialized program often found as part of the microcontroller is called a watchdog timer. The watchdog timer is designed to prevent the microcontroller from halting or locking up because of a user-written program. Remember that a processor processes instructions step-by-step. It will wait until one instruction is completed before processing the next. A problem can arise if a command is issued to a processor that cannot be accomplished. For example, a program is written by a user and contains an instruction calling for checking the input value of I/O pin 36. If there is no I/O pin 36, the microcontroller will wait forever for input. It will not process the next command until it receives input on pin 36. Without the watchdog timer, the microcontroller would halt and thus fail to process further instructions. The watchdog timer uses a routine that is based on timing. If a program has not been completed or repeated as a loop within a certain amount of time, the watchdog timer issues a reset command. A system reset sets all the register values to zero. The reset feature allows the controller to recover from the crash. It releases the program and sets the controller to start over again. Memory As stated earlier in this chapter, microcontrollers and computers use various types of memory. These types of memory are usually referred to by acronyms. The two broad classifications of memory are random access memory (RAM) and read only memory (ROM). These two types of memory are classified according to their function as memory units. You have already learned about RAM in detail in Chapter 25 Introduction to the Personal Computer (PC). Random access memory is used in the microcontroller just as it is in the computer, to temporarily store programs and data. It is volatile memory, which means it loses its contents when electrical power is no longer applied to the memory chip. Power can be lost due to power failures or by simply turning off the power switch. Read only memory is used to permanently store a program or data and retain the information even when the power is disconnected from the unit. It is described as nonvolatile memory. In Chapter 25 you learned about ROM only as it applied to the computer s BIOS. In this chapter, we will take a closer look at the many types of ROM. Programmable Memory ROM is classified as to how it is constructed and how the program code inside the chip can be altered. Masked ROM (usually referred to as just ROM) is a special type of memory that is permanently programmed during the manufacturing process. Masked ROM memory cannot be reprogrammed. To change the program in a system using masked ROM, you must use an entirely different masked ROM chip. Programmable read only memory (PROM) is memory that is programmed after it is manufactured. It is manufactured with thousands of empty memory cells. A program writer "burns" a pattern into the empty cells, forming a program in the blank PROM chip. Like masked ROM, a PROM chip program is permanent for the life of the chip. Erasable programmable read only memory (EPROM) is a special type of PROM that can be reprogrammed many times. When manufactured, a small window is left on the chip. Any program entered into the chip can be erased at a later time by shining an ultraviolet light through the window on the chip. The chip can then be reprogrammed using a programming device. Electrically erasable programmable read only memory (EEPROM) is a type of memory chip that can be erased electrically and then reprogrammed. It is commonly used for the computer BIOS chip. A microcontroller is usually constructed with a PROM on the chip itself containing the basic set of instructions for running the microcontroller and its internal parts. This program is permanent and not alterable. In addition to the basic ROM, another section of memory is used to store programs written by the user. It typically contains a small EEPROM memory area. If larger program storage is required, additional EEPROM chips can be connected to the microcontroller. Review Questions for Section The special function areas of a microcontroller chip are connected using an system. 2. The keeps track of the data held in the stack area. 3. Math and logic functions are provided by the. 4. The circuit provides a steady pulse for timing. 5. A(n) prevents the microcontroller from crashes caused by bad programming PROGRAMMING LANGUAGES AND TERMINOLOGY A variety of languages are used to program controllers and computers. These languages range from the most basic level of machine language to a wide selection of high-level languages. Some languages used to program microcontrollers are C, C++, BASIC, Visual BASIC, Quick BASIC, and numerous proprietary languages such as PBASIC for the Parallax microcontroller. Software programs especially written for programming microcontrollers are usually referred to as editors. Look at the illustration in Figure Use this drawing as a reference while we discuss the various languages used to program microcontrollers. Machine Language, Assembly Language, and High-Level Languages One language that can be used to program a microcontroller is machine language. Machine language, or machine code, is a computer language constructed of ones and zeros that represent binary codes and digital voltage pulse levels. The computer understands machine code without further conversion. There is no form of code that is closer to the machine itself, hence the name machine code. Machine code is also referred to as object code or executable code. Machine code matches the type of processor with which it is communicating. For example, an Intel processor cannot use a machine code written for a Motorola (Apple) processor, or vice versa.

4 Chapter 26 Microcontrollers Electronic Communication and Data Systems High level programming languages C, C++, Basic, Visual BASIC Compiler Digital pulses Source code Mnemonics opcode and operand Assembler Machine code Figure Compiled from high-level languages, programming language or source code is turned into machine code by a compiler. Machine language is closest to the digital signals found moving through the system circuitry. Binary ones and zeros can be used to illustrate the digital pulse patterns. Compilers and assemblers convert high-level programming languages and assembly language into machine language. Machine code is difficult to learn and inefficient for writing programs. The main advantage of using machine language programs is that they run more quickly than other types of programming. Machine language programming was the original way to program a microprocessor. Programming in this language was very tedious, and it took many hours to write even the simplest program. Soon, a faster programming language was invented called an assembly. Assembly language uses a series of words, called mnemonics, combined with hexadecimal data values to create a program. After the program is written, it is assembled. An assembler program converts the series of instructions into a machine code that can be read by the processor. Programs written in assembly language are very compact, efficient, and fast. However, simple programs still can take hours to write using assembly language. Most programmers write programs using high-level languages such as C, C++, BASIC, Visual BASIC, and Quick BASIC because it is much easier and faster. Very large programs that would be almost impossible to write in assembly language can be written using a high-level language. The high-level language can then be assembled into machine language code by using a program called a compiler. The main differences between using a high-level language and using assembly language is the amount of code stored after being converted into machine language, and the speed of its execution. Assembly code is difficult and time-consuming to program in, but the code uses less memory and executes faster than high-level code. The assembly code is much more exacting than highlevel programming languages. For example, when using an assembly, you must indicate the exact memory location in which to place the data, and each command must be in sequence followed by the proper amount of data bits. This is more work for the programmer. A high-level language is not as restrictive. The programmer must simply indicate that data needs to be stored in a file. However, when highlevel language is compiled into the low-level machine language, allowances must be made for the fact that no specific memory location was specified. The program must use an additional set of commands to locate a free block of memory that does not conflict with another data block. Higher-level languages are also not as restrictive about putting commands in exact sequence for execution. Assembly code must be in exact sequence, or it will lock up (crash) the system when implemented. Programming Terminology One of the most difficult aspects of programming is learning all of the new terminology. Many new words have been created, and many common words, such as bit, word, and library, have been given new meanings. Knowledge of these terms will help you understand the manuals that come with microcontrollers. The size of a normal group of bits processed at one time through a computer system is referred to as its word size. The word size typically matches the bus width of the chip. Some common word sizes are 8, 12, 14, 16, 24, 32, and 64 bits in length. A word usually contains an instruction and some data to be acted on. The opcode is the part of a word that contains the instruction to be carried out. Instructions are typically followed by data referred to as the operand. This is a repeating sequential pattern used in programming. Together, the opcode and the operand combine to form the source code. Source code is simply another name for the program written by the programmer. The source code is then converted into machine code by an assembler or a compiler. When source code is assembled or compiled, it becomes what is known as object code and is saved as a file. Object code is also called executable code or machine code. Source code can also be run directly by an interpreter. The interpreter runs the source code without compiling the code into machine code, Figure Many times programmers will save the programs they have written so that they can use the code again on another control system. As you work with programmable devices, you will notice how much of the code can be reused for another project. A library is a collection of code modules. For example, the robot project that is covered later in this chapter can be programmed to perform in a number of ways. It can be programmed to run while connected to a PC. The keyboard arrow keys can be used to control the robot s movement. The robot can also be programmed to follow a line drawn on a piece of cardboard without being connected to a PC. In addition, the robot can be programmed to use infrared sensors to detect objects in front of it such as a wall. When the object is detected, the robot makes a 90-degree right turn. In every case, you can reuse some of your code blocks rather than rewriting the complete program from scratch. The parts that are reusable can be saved to a code library. Libraries are sometimes referred to as code modules. Some software systems allow you to call the code modules out of a storage memory from the main program. Interpreter Object code (Stored as a file) Opcode Operand Source code Assembler or compiler Figure Source code can be run straight from an interpreter or from object code. A macro is a collection of assembler instructions represented by a single word. A macro assembler converts macros into machine language. The term macro and mnemonic are often used interchangeably when talking about programming. Mnemonics, discussed earlier with assembly language, are instructions that can be converted directly into machine language. The mnemonic itself looks like a short abbreviation of the actual command being issued. For example, MOV might be used to represent the instructions to move data. Review Questions for Section The most basic language, which is composed of ones and zeros, is called. 2. Name three high-level languages. 3. Which portion of the source code contains the data, the opcode or the operand? 26.4 THE MICROCONTROLLER MODULE A microcontroller can consist of a single chip, or it can be composed of several components collected together on a circuit board to function as a single unit. When a microcontroller is mounted on a circuit board with other components, it is sometimes referred to as a module or a microcontroller board. A microcontroller module typically consists of a microcontroller, a power source, an interface for connecting to a programming device, I/O ports, and additional memory. A power source is required to power the microcontroller and any accompanying components located on the printed circuit board. An interface is needed to communicate with the controller. The microcontroller interface is usually an older serial connection or a universal serial bus (USB) connection matching the ones found on most PCs. A set of input/output (I/O) ports is used to send and receive signals from the devices the microcontroller is designed to control. The microcontroller s I/O pins can be programmed as output or input pins. When programmed as an output pin, each pin can output digital signals. When programmed as an input pin, each pin can receive digital signals. Devices commonly controlled through the I/O ports are relays, power transistors, servos, stepper motors, LEDs, and solenoids. Devices that commonly send electrical signals to the I/O ports are photocells, piezocells, thermistors, and thermocouples. LEDs are often used to indicate the presence of power or that communication is taking place, Figure Depending on the microcontroller s intended use, you might find timing oscillators. The oscillator circuit can be a separate component or incorporated into the microcontroller chip. When constructed separately from the chip, a crystal or ceramic resonator is used as well as capacitors and resistors. See Figure One advantage of using a separate oscillator circuit is that it can produce a number of frequencies rather than a fixed frequency. By having the ability to produce a wide range of frequencies, the microcontroller can match the frequency required of a large control circuit in which it may be embedded. Additional components such as digital-to-analog and analog-to-digital converters can be used to change the digital pulses into analog signals. If you need to drive a device requiring a higher output current, you can simply

5 Chapter 26 Microcontrollers Electronic Communication and Data Systems Interface Additional memory Mem Power supply Microcontroller I/O ports incorporate a small mechanical or solid-state relay between the output pin and the load device. A microcontroller chip usually contains a relatively small amount of programmable memory. If a microcontroller is going to be used to run a large or complicated program, or if much data is to be stored, additional RAM and ROM can be mounted next to the microcontroller. A reset button can be added to clear the processor if a program fails. Microcontroller Relay Circuit Input and output devices Relays Power transistors LEDs Speakers Stepper motors Photocells Piezocell Thermocouple Thermistor Switches Figure The basic components found on a microcontroller module and the typical devices to which the microcontroller interfaces. PIC16C5X OSC1/CLKIN OSC2/CLKOUT Crystal Capacitors Figure The PIC exterior oscillator circuit is a simple crystal with two capacitors to form a tank circuit. The exact values of the crystal and capacitors will vary depending on the desired frequency and the exact model of PIC being used. Many times, the device or devices to be controlled by a microcontroller far exceed the electrical power limits of the controller. A method must be used to increase the power output capabilities of the microcontroller. This can be accomplished many different ways. One common way is using mechanical or solid-state relay devices. Figure shows an application for controlling a device when the electrical requirements far exceed the output power of the microcontroller I/O pins. To drive a load of higher current, a special circuit must be built and inserted between the microcontroller module and the load device. The circuit in the schematic is simple in design. The output pin of the microcontroller connects directly to an optic coupler. The optic coupler consists of an LED and a photosensitive transistor. The optic coupler is designed to prevent higher voltage levels and short circuits in the load device circuit from damaging the sensitive microcontroller chip through a backfeed situation. This could happen if a typical transistor was used. When the LED inside the optic coupler is energized by the output of the microcontroller, the light forces the photosensitive transistor into conduction, thus completing the circuit to the relay. When the relay energizes, the relay contact closes and completes the circuit to a heavyduty device such as an appliance, some lighting, or a welder. Note the fact that the heavy appliance load can use any type of power supply, such as 120 Vac, 240 Vac, 12 Vdc, and 48 Vdc. The components, such as the transistor, are sized according to the relay coil requirements. The diode placed in parallel with the relay coil is used to prevent an inductive kick from damaging circuit components. As you recall from the study of inductance reactance, when a coil is energized or de-energized, the induction voltage created can be quite high. This can damage circuit components such as transistors. The diode prevents the high level by short-circuiting the induction created by the relay coil. When ac is used as the applied voltage in the load circuit, capacitors can also be incorporated into the circuit to prevent damage induced by the ac circuit. In place of a mechanical or solid-state relay, high power transistors, SCRs, or even a TRIAC can be used to increase the output capabilities of a microcontroller. Microcontroller Interface Most microcontrollers interface with an IBM compatible computer through the serial or parallel port. See Figure This figure shows the connections for a standard 9-pin serial port PC connection and the PIC16C5X microcontroller, from Microchip Technology. The 9-pin serial port connection is also called a DB-9. The Pins 1, 2, 3, and 4 on the microcontroller are tied directly to pins 2, 3, 4, and 5 on the 9-pin serial port connection. Note that pins 6 and 7 are connected together on the serial port of the PC. This allows the PC to Connect to I/O pin Optic coupler The optic coupler is used to electrically isolate the microcontroller from the relay circuit. 9 VDC Relay automatically detect communications on the port. Also, be aware that this illustration only refers to a connection to a PIC16C5X microcontroller. It is important to always check the technical specifications sheet of the particular microcontroller you are using. Microcontroller pins for different models have different pin functions. In addition, the parallel port, as well as the USB port, can be used for some microcontroller communications. 120 AC voltage source Relay contact Figure A microcontroller chip can be connected to heavy loads using a typical circuit as shown. DSR RTS Rx 3 Tx 4 DTR 5 GND Serial port on PC DB BS2-IC PIC16C5X SOUT SIN ATN VSS Pin connections on microcontroller chip Figure This is an illustration of the serial port connections using a BS2-IC. The connection for the BS1-IC is different. Always check the technical specifications of the microcontroller chip. AC High current load for example: appliance motor, welder, lighting, etc. Review Questions for Section A microcontroller that consists of several components is called an. 2. Name four major parts of a microcontroller module. 3. What is one advantage of using a separate oscillator circuit? 4. Which ports found on an IBM compatible PC can be used to download a program to a microcontroller? 5. Do all microcontrollers use the exact same pin location to connect to a serial port? 26.5 GETTING STARTED WITH MICROCONTROLLERS One of the most used microcontrollers by students and hobbyists are the PICmicro microcontrollers by Microchip Technology. There are a variety of educational kits that incorporate the PICmicro chips. Two of the most popular kits are the BASIC Stamp 1 & 2 starter kits from Parallax and the PIC BASIC Compiler Bundle from microengineering Labs. What makes the BASIC Stamp microcontroller unique is that it comes with a built-in interpreter. As you recall, an interpreter reads one line of code at a time and

6 Chapter 26 Microcontrollers Electronic Communication and Data Systems processes the command. Therefore, you do not need to compile the source code to run the program. You can program the BASIC Stamp with Parallax s own BASIC language called PBASIC. The BASIC Stamp is sold as a complete package with the BASIC Stamp controller, carrier board, Stamp Software, and cable or as separate components. The cable for the BASIC Stamp 1 connects to the parallel port of your PC, and the cable for the BASIC Stamp 2 connects to the serial port of your PC; although, the BASIC Stamp software communicates serially through both these ports as it downloads the program to the BASIC Stamp. The PicBASIC Compiler Bundle from microengineering Labs comes with the PicBASIC Compiler, a software package that compiles your BASIC program and downloads it to the PICmicro microcontroller. Included in the Compiler Pro Bundle is the PicBASIC Compiler Pro software that is compatible with BASIC Stamp 2 commands. Both kits come with the EPIC Plus Programmer and a 25-pin cable that connects the programmer board to the parallel port of your PC. Review Questions for Section What is one the most popular microcontrollers used by students and hobbyists? 2. The language used to program the BASIC Stamp is. Summary 1. A microcontroller is an integrated circuit that can be programmed to perform a specific function. 2. When a microcontroller is part of a larger control assembly, it is often referred to as an embedded controller. 3. A microcontroller is perfect for prototyping because it can be easily reprogrammed. 4. A watchdog circuit is designed to prevent a microcontroller from locking up. 5. Machine language is the lowest-level programming language and the language closest to the hardware. 6. Most programmers use high-level languages to write programs for computers as well as microcontrollers. 7. Computers are used to program microcontrollers, and the program is transferred to the microcontroller using serial, parallel, or USB ports. Test Your Knowledge Please do not write in the text. Place your answers on a separate sheet of paper. 1. Explain the difference between a microcontroller and a personal computer. 2. What is the purpose of the watchdog timer? 3. What does the acronym PROM represent? 4. What does the acronym EPROM represent? 5. What does the acronym EEPROM represent? 6. The programming language constructed of ones and zeros that represent binary codes and digital voltage pulse levels is called language. 7. Name three or more high-level programming languages. 8. A(n) is used to convert a high-level language into machine language. 9. A word is a combination of and. 10. Word size is typically equal to the width of the chip. 11. and are special memory locations dedicated to a specific function such as an I/O port. 12. A microcontroller that consists of several components is called an. For Discussion 1. Discuss the differences between a computer and a microcontroller and describe some applications for each. 2. Discuss the different kinds of read only memory. 3. Describe some of the functions of a microcontroller. 4. Describe some applications that you can think of for a microcontroller. 5. Discuss your experience with the exploration of technical web sites and your future plans for accomplishing this important task. Closeup of an eraseable programmable read only memory (EPROM) module. Shining an ultraviolet light through the EPROM s tiny window can erase a program that has been written to the EPROM.

MICROPROCESSOR AND MICROCOMPUTER BASICS

MICROPROCESSOR 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 information

A+ 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 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 information

Digital 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 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 information

Programming Logic controllers

Programming Logic controllers Programming Logic controllers Programmable Logic Controller (PLC) is a microprocessor based system that uses programmable memory to store instructions and implement functions such as logic, sequencing,

More information

Parts of a Computer. Preparation. Objectives. Standards. Materials. 1 1999 Micron Technology Foundation, Inc. All Rights Reserved

Parts of a Computer. Preparation. Objectives. Standards. Materials. 1 1999 Micron Technology Foundation, Inc. All Rights Reserved Parts of a Computer Preparation Grade Level: 4-9 Group Size: 20-30 Time: 75-90 Minutes Presenters: 1-3 Objectives This lesson will enable students to: Identify parts of a computer Categorize parts of a

More information

Management Challenge. Managing Hardware Assets. Central Processing Unit. What is a Computer System?

Management Challenge. Managing Hardware Assets. Central Processing Unit. What is a Computer System? Management Challenge Managing Hardware Assets What computer processing and storage capability does our organization need to handle its information and business transactions? What arrangement of computers

More information

================================================================

================================================================ ==== ==== ================================================================ DR 6502 AER 201S Engineering Design 6502 Execution Simulator ================================================================

More information

2.0 Command and Data Handling Subsystem

2.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 information

CHAPTER 7: The CPU and Memory

CHAPTER 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 information

Chapter 2 Logic Gates and Introduction to Computer Architecture

Chapter 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 information

Computers. Hardware. The Central Processing Unit (CPU) CMPT 125: Lecture 1: Understanding the Computer

Computers. 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 information

Chapter 3: Computer Hardware Components: CPU, Memory, and I/O

Chapter 3: Computer Hardware Components: CPU, Memory, and I/O Chapter 3: Computer Hardware Components: CPU, Memory, and I/O What is the typical configuration of a computer sold today? The Computer Continuum 1-1 Computer Hardware Components In this chapter: How did

More information

Handout 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 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 information

Advanced Computer Architecture-CS501. Computer Systems Design and Architecture 2.1, 2.2, 3.2

Advanced 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 information

MACHINE ARCHITECTURE & LANGUAGE

MACHINE 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 information

Chapter 6. Inside the System Unit. What You Will Learn... Computers Are Your Future. What You Will Learn... Describing Hardware Performance

Chapter 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

CHAPTER 2: HARDWARE BASICS: INSIDE THE BOX

CHAPTER 2: HARDWARE BASICS: INSIDE THE BOX CHAPTER 2: HARDWARE BASICS: INSIDE THE BOX Multiple Choice: 1. Processing information involves: A. accepting information from the outside world. B. communication with another computer. C. performing arithmetic

More information

Programmable Logic Controller PLC

Programmable Logic Controller PLC Programmable Logic Controller PLC UPCO ICAI Departamento de Electrónica y Automática 1 PLC Definition PLC is a user friendly, microprocessor based, specialized computer that carries out control functions

More information

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

AUTOMATIC 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 information

RAM & ROM Based Digital Design. ECE 152A Winter 2012

RAM & 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 information

Accurate Measurement of the Mains Electricity Frequency

Accurate 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 information

Logical Operations. Control Unit. Contents. Arithmetic Operations. Objectives. The Central Processing Unit: Arithmetic / Logic Unit.

Logical 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 information

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 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 information

STEPPER MOTOR SPEED AND POSITION CONTROL

STEPPER MOTOR SPEED AND POSITION CONTROL STEPPER MOTOR SPEED AND POSITION CONTROL Group 8: Subash Anigandla Hemanth Rachakonda Bala Subramanyam Yannam Sri Divya Krovvidi Instructor: Dr. Jens - Peter Kaps ECE 511 Microprocessors Fall Semester

More information

CHAPTER 6: Computer System Organisation 1. The Computer System's Primary Functions

CHAPTER 6: Computer System Organisation 1. The Computer System's Primary Functions CHAPTER 6: Computer System Organisation 1. The Computer System's Primary Functions All computers, from the first room-sized mainframes, to today's powerful desktop, laptop and even hand-held PCs, perform

More information

Chapter 2 Basic Structure of Computers. Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan

Chapter 2 Basic Structure of Computers. Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan Chapter 2 Basic Structure of Computers Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan Outline Functional Units Basic Operational Concepts Bus Structures Software

More information

Special Lecture. Basic Stamp 2 Programming. (Presented on popular demand)

Special Lecture. Basic Stamp 2 Programming. (Presented on popular demand) Special Lecture Basic Stamp 2 Programming (Presented on popular demand) Programming Environment Servo Motor: How It Work? The editor window consists of the main edit pane with an integrated explorer panel

More information

Programming PIC Microcontrollers in PicBasic Pro Lesson 1 Cornerstone Electronics Technology and Robotics II

Programming PIC Microcontrollers in PicBasic Pro Lesson 1 Cornerstone Electronics Technology and Robotics II Programming PIC Microcontrollers in PicBasic Pro Lesson 1 Cornerstone Electronics Technology and Robotics II Administration: o Prayer PicBasic Pro Programs Used in This Lesson: o General PicBasic Pro Program

More information

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 UNIT 22: PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 ASSIGNMENT 3 DESIGN AND OPERATIONAL CHARACTERISTICS NAME: I agree to the assessment as contained in this assignment.

More information

Computer Performance. Topic 3. Contents. Prerequisite knowledge Before studying this topic you should be able to:

Computer 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 information

Machine Architecture and Number Systems. Major Computer Components. Schematic Diagram of a Computer. The CPU. The Bus. Main Memory.

Machine Architecture and Number Systems. Major Computer Components. Schematic Diagram of a Computer. The CPU. The Bus. Main Memory. 1 Topics Machine Architecture and Number Systems Major Computer Components Bits, Bytes, and Words The Decimal Number System The Binary Number System Converting from Decimal to Binary Major Computer Components

More information

A Digital Timer Implementation using 7 Segment Displays

A Digital Timer Implementation using 7 Segment Displays A Digital Timer Implementation using 7 Segment Displays Group Members: Tiffany Sham u2548168 Michael Couchman u4111670 Simon Oseineks u2566139 Caitlyn Young u4233209 Subject: ENGN3227 - Analogue Electronics

More information

Programming A PLC. Standard Instructions

Programming A PLC. Standard Instructions Programming A PLC STEP 7-Micro/WIN32 is the program software used with the S7-2 PLC to create the PLC operating program. STEP 7 consists of a number of instructions that must be arranged in a logical order

More information

With respect to the way of data access we can classify memories as:

With respect to the way of data access we can classify memories as: Memory Classification With respect to the way of data access we can classify memories as: - random access memories (RAM), - sequentially accessible memory (SAM), - direct access memory (DAM), - contents

More information

MULTIPLE CHOICE FREE RESPONSE QUESTIONS

MULTIPLE CHOICE FREE RESPONSE QUESTIONS MULTIPLE CHOICE FREE RESPONSE QUESTIONS World ORT Union I n p u t d e v i c e s Where would you find the letters QUERTY? A. Mouse B. Keyboard C.Numeric Keypad How did the computer mouse get its name? A.

More information

what operations can it perform? how does it perform them? on what kind of data? where are instructions and data stored?

what operations can it perform? how does it perform them? on what kind of data? where are instructions and data stored? Inside the CPU how does the CPU work? what operations can it perform? how does it perform them? on what kind of data? where are instructions and data stored? some short, boring programs to illustrate the

More information

BIOS and CMOS. Overview. The Function of BIOS. The Bus

BIOS 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 information

3BASIC RELAY INSTRUCTIONS

3BASIC RELAY INSTRUCTIONS M O D U L E T H R E E 3BASIC RELAY INSTRUCTIONS Key Points So far, you have learned about the components of the MicroLogix 1000 PLC, including the CPU, the memory system, the power supply, and the input/output

More information

CHAPTER 11: Flip Flops

CHAPTER 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 information

Module 2. Embedded Processors and Memory. Version 2 EE IIT, Kharagpur 1

Module 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 information

VOICE RECOGNITION KIT USING HM2007. Speech Recognition System. Features. Specification. Applications

VOICE RECOGNITION KIT USING HM2007. Speech Recognition System. Features. Specification. Applications VOICE RECOGNITION KIT USING HM2007 Introduction Speech Recognition System The speech recognition system is a completely assembled and easy to use programmable speech recognition circuit. Programmable,

More information

Topics. Introduction. Java History CS 146. Introduction to Programming and Algorithms Module 1. Module Objectives

Topics. Introduction. Java History CS 146. Introduction to Programming and Algorithms Module 1. Module Objectives Introduction to Programming and Algorithms Module 1 CS 146 Sam Houston State University Dr. Tim McGuire Module Objectives To understand: the necessity of programming, differences between hardware and software,

More information

150127-Microprocessor & Assembly Language

150127-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 information

E&I MAINTENANCE ENTRY TEST ENABLING OBJECTIVES. DESCRIBE hazards and precautions taken to avoid injury in the workplace.

E&I MAINTENANCE ENTRY TEST ENABLING OBJECTIVES. DESCRIBE hazards and precautions taken to avoid injury in the workplace. SAFETY Industrial DESCRIBE hazards and precautions taken to avoid injury in the workplace. Example #1: All of the following are common PPE used to perform maintenance activities EXCEPT: a. Safety Glasses

More information

Lecture N -1- PHYS 3330. Microcontrollers

Lecture 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 information

Chapter 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 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 information

GETTING STARTED WITH PROGRAMMABLE LOGIC DEVICES, THE 16V8 AND 20V8

GETTING 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 information

PHYS 2P32 Project: MIDI for Arduino/ 8 Note Keyboard

PHYS 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 information

İSTANBUL AYDIN UNIVERSITY

İSTANBUL AYDIN UNIVERSITY İSTANBUL AYDIN UNIVERSITY FACULTY OF ENGİNEERİNG SOFTWARE ENGINEERING THE PROJECT OF THE INSTRUCTION SET COMPUTER ORGANIZATION GÖZDE ARAS B1205.090015 Instructor: Prof. Dr. HASAN HÜSEYİN BALIK DECEMBER

More information

Controlling a Dot Matrix LED Display with a Microcontroller

Controlling a Dot Matrix LED Display with a Microcontroller Controlling a Dot Matrix LED Display with a Microcontroller By Matt Stabile and programming will be explained in general terms as well to allow for adaptation to any comparable microcontroller or LED matrix.

More information

Chapter 1 Computer System Overview

Chapter 1 Computer System Overview Operating Systems: Internals and Design Principles Chapter 1 Computer System Overview Eighth Edition By William Stallings Operating System Exploits the hardware resources of one or more processors Provides

More information

COMPUTER SCIENCE AND ENGINEERING - Microprocessor Systems - Mitchell Aaron Thornton

COMPUTER SCIENCE AND ENGINEERING - Microprocessor Systems - Mitchell Aaron Thornton MICROPROCESSOR SYSTEMS Mitchell Aaron Thornton, Department of Electrical and Computer Engineering, Mississippi State University, PO Box 9571, Mississippi State, MS, 39762-9571, United States. Keywords:

More information

Fondamenti su strumenti di sviluppo per microcontrollori PIC

Fondamenti su strumenti di sviluppo per microcontrollori PIC Fondamenti su strumenti di sviluppo per microcontrollori PIC MPSIM ICE 2000 ICD 2 REAL ICE PICSTART Ad uso interno del corso Elettronica e Telecomunicazioni 1 2 MPLAB SIM /1 MPLAB SIM is a discrete-event

More information

C8051F020 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 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 information

THE INPUT/OUTPUT SYSTEM. Key Points

THE INPUT/OUTPUT SYSTEM. Key Points M O D U L E T W O THE 2 INPUT/OUTPUT SYSTEM Key Points In the first module, you learned about the basic architecture and operation of the Allen-Bradley Micrologix 1000, including a brief introduction to

More information

TEST CHAPTERS 1 & 2 OPERATING SYSTEMS

TEST CHAPTERS 1 & 2 OPERATING SYSTEMS TEST CHAPTERS 1 & 2 OPERATING SYSTEMS True/False Indicate whether the statement is true or false. 1. Changes that you make in virtual machines do not affect your physical computer. 2. The size of a bus

More information

Memory. The memory types currently in common usage are:

Memory. 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 information

Homework # 2. Solutions. 4.1 What are the differences among sequential access, direct access, and random access?

Homework # 2. Solutions. 4.1 What are the differences among sequential access, direct access, and random access? ECE337 / CS341, Fall 2005 Introduction to Computer Architecture and Organization Instructor: Victor Manuel Murray Herrera Date assigned: 09/19/05, 05:00 PM Due back: 09/30/05, 8:00 AM Homework # 2 Solutions

More information

Test Driven Development of Embedded Systems Using Existing Software Test Infrastructure

Test Driven Development of Embedded Systems Using Existing Software Test Infrastructure Test Driven Development of Embedded Systems Using Existing Software Test Infrastructure Micah Dowty University of Colorado at Boulder micah@navi.cx March 26, 2004 Abstract Traditional software development

More information

Smart Thermostat page 1

Smart Thermostat page 1 Smart Thermostat page 1 3. APPROACH In today s home appliances market, automation is becoming the norm and Smart Thermostat is a typical automation appliance able to be applied easily at home. With Smart

More information

An Introduction to MPLAB Integrated Development Environment

An Introduction to MPLAB Integrated Development Environment An Introduction to MPLAB Integrated Development Environment 2004 Microchip Technology Incorporated An introduction to MPLAB Integrated Development Environment Slide 1 This seminar is an introduction to

More information

Microprocessor or Microcontroller?

Microprocessor or Microcontroller? Microprocessor or Microcontroller? A little History What is a computer? [Merriam-Webster Dictionary] one that computes; specifically : programmable electronic device that can store, retrieve, and process

More information

Discovering Computers 2011. Living in a Digital World

Discovering 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 information

Memory Basics. SRAM/DRAM Basics

Memory 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 information

UPS PIco. to be used with. Raspberry Pi B+, A+, B, and A. HAT Compliant. Raspberry Pi is a trademark of the Raspberry Pi Foundation

UPS PIco. to be used with. Raspberry Pi B+, A+, B, and A. HAT Compliant. Raspberry Pi is a trademark of the Raspberry Pi Foundation UPS PIco Uninterruptible Power Supply with Peripherals and I 2 C control Interface to be used with Raspberry Pi B+, A+, B, and A HAT Compliant Raspberry Pi is a trademark of the Raspberry Pi Foundation

More information

Analog Inputs and Outputs

Analog Inputs and Outputs Analog Inputs and Outputs PLCs must also work with continuous or analog signals. Typical analog signals are 0-10 VDC or 4-20 ma. Analog signals are used to represent changing values such as speed, temperature,

More information

The Central Processing Unit:

The 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 information

Chapter 3: Operating-System Structures. System Components Operating System Services System Calls System Programs System Structure Virtual Machines

Chapter 3: Operating-System Structures. System Components Operating System Services System Calls System Programs System Structure Virtual Machines Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines Operating System Concepts 3.1 Common System Components

More information

Table 1 Comparison of DC, Uni-Polar and Bi-polar Stepper Motors

Table 1 Comparison of DC, Uni-Polar and Bi-polar Stepper Motors Electronics Exercise 3: Uni-Polar Stepper Motor Controller / Driver Mechatronics Instructional Laboratory Woodruff School of Mechanical Engineering Georgia Institute of Technology Lab Director: I. Charles

More information

The components. E3: Digital electronics. Goals:

The 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 information

Study Guide for the Electronics Technician Pre-Employment Examination

Study Guide for the Electronics Technician Pre-Employment Examination Bay Area Rapid Transit District Study Guide for the Electronics Technician Pre-Employment Examination INTRODUCTION The Bay Area Rapid Transit (BART) District makes extensive use of electronics technology

More information

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 OUTCOME 3 PART 1

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 OUTCOME 3 PART 1 UNIT 22: PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 OUTCOME 3 PART 1 This work covers part of outcome 3 of the Edexcel standard module: Outcome 3 is the most demanding

More information

How to read this guide

How to read this guide How to read this guide The following shows the symbols used in this Quick start guide with descriptions and examples. Symbol Description Example P oint Reference Caution [ ] This symbol explains information

More information

CHAPTER 3 Boolean Algebra and Digital Logic

CHAPTER 3 Boolean Algebra and Digital Logic CHAPTER 3 Boolean Algebra and Digital Logic 3.1 Introduction 121 3.2 Boolean Algebra 122 3.2.1 Boolean Expressions 123 3.2.2 Boolean Identities 124 3.2.3 Simplification of Boolean Expressions 126 3.2.4

More information

PART B QUESTIONS AND ANSWERS UNIT I

PART 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 information

1 PERSONAL COMPUTERS

1 PERSONAL COMPUTERS PERSONAL COMPUTERS 1 2 Personal computer a desktop computer a laptop a tablet PC or a handheld PC Software applications for personal computers include word processing spreadsheets databases web browsers

More information

S7 for Windows S7-300/400

S7 for Windows S7-300/400 S7 for Windows S7-300/400 A Programming System for the Siemens S7 300 / 400 PLC s IBHsoftec has an efficient and straight-forward programming system for the Simatic S7-300 and ern controller concept can

More information

Lab Experiment 1: The LPC 2148 Education Board

Lab 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 information

PROGRAMMABLE LOGIC CONTROL

PROGRAMMABLE LOGIC CONTROL PROGRAMMABLE LOGIC CONTROL James Vernon: control systems principles.co.uk ABSTRACT: This is one of a series of white papers on systems modelling, analysis and control, prepared by Control Systems Principles.co.uk

More information

Open Architecture Design for GPS Applications Yves Théroux, BAE Systems Canada

Open Architecture Design for GPS Applications Yves Théroux, BAE Systems Canada Open Architecture Design for GPS Applications Yves Théroux, BAE Systems Canada BIOGRAPHY Yves Théroux, a Project Engineer with BAE Systems Canada (BSC) has eight years of experience in the design, qualification,

More information

Fig 3. PLC Relay Output

Fig 3. PLC Relay Output 1. Function of a PLC PLC Basics A PLC is a microprocessor-based controller with multiple inputs and outputs. It uses a programmable memory to store instructions and carry out functions to control machines

More information

PICNet 1. PICNet 1 PIC18 Network & SD/MMC Development Board. Features. Applications. Description

PICNet 1. PICNet 1 PIC18 Network & SD/MMC Development Board. Features. Applications. Description Features PICNet 1 PIC18 Network & SD/MMC Development Board IC Sockets for 28 or 40-pin Microchip PIC18F Microcontrollers IC Socket for 8-pin serial EEPROM Multiple MCU Oscillator sources Full 10BaseT IEEE

More information

Programmable Logic Controllers Definition. Programmable Logic Controllers History

Programmable Logic Controllers Definition. Programmable Logic Controllers History Definition A digitally operated electronic apparatus which uses a programmable memory for the internal storage of instructions for implementing specific functions such as logic, sequencing, timing, counting,

More information

Chapter 8 Memory Units

Chapter 8 Memory Units Chapter 8 Memory Units Contents: I. Introduction Basic units of Measurement II. RAM,ROM,PROM,EPROM Storage versus Memory III. Auxiliary Storage Devices-Magnetic Tape, Hard Disk, Floppy Disk IV.Optical

More information

MICROPROCESSOR. Exclusive for IACE Students www.iace.co.in iacehyd.blogspot.in Ph: 9700077455/422 Page 1

MICROPROCESSOR. 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 information

The Programming Interface

The 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 information

Glitch Free Frequency Shifting Simplifies Timing Design in Consumer Applications

Glitch Free Frequency Shifting Simplifies Timing Design in Consumer Applications Glitch Free Frequency Shifting Simplifies Timing Design in Consumer Applications System designers face significant design challenges in developing solutions to meet increasingly stringent performance and

More information

CHAPTER 4 MARIE: An Introduction to a Simple Computer

CHAPTER 4 MARIE: An Introduction to a Simple Computer CHAPTER 4 MARIE: An Introduction to a Simple Computer 4.1 Introduction 195 4.2 CPU Basics and Organization 195 4.2.1 The Registers 196 4.2.2 The ALU 197 4.2.3 The Control Unit 197 4.3 The Bus 197 4.4 Clocks

More information

Computer Components Study Guide. The Case or System Box

Computer Components Study Guide. The Case or System Box Computer Components Study Guide In this lesson, we will briefly explore the basics of identifying the parts and components inside of a computer. This lesson is used to introduce the students to the inside

More information

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design PH-315 COMINATIONAL and SEUENTIAL LOGIC CIRCUITS Hardware implementation and software design A La Rosa I PURPOSE: To familiarize with combinational and sequential logic circuits Combinational circuits

More information

Sensors Collecting Manufacturing Process Data

Sensors Collecting Manufacturing Process Data Sensors & Actuators Sensors Collecting Manufacturing Process Data Data must be collected from the manufacturing process Data (commands and instructions) must be communicated to the process Data are of

More information

Electrical Symbols and Line Diagrams

Electrical Symbols and Line Diagrams Electrical Symbols and Line Diagrams Chapter 3 Material taken from Chapter 3 of One-Line Diagrams One-line diagram a diagram that uses single lines and graphic symbols to indicate the path and components

More information

EMBEDDED SYSTEM BASICS AND APPLICATION

EMBEDDED SYSTEM BASICS AND APPLICATION EMBEDDED SYSTEM BASICS AND APPLICATION TOPICS TO BE DISCUSSED System Embedded System Components Classifications Processors Other Hardware Software Applications 2 INTRODUCTION What is a system? A system

More information

EXPERIMENT 2 TRAFFIC LIGHT CONTROL SYSTEM FOR AN INTERSECTION USING S7-300 PLC

EXPERIMENT 2 TRAFFIC LIGHT CONTROL SYSTEM FOR AN INTERSECTION USING S7-300 PLC YEDITEPE UNIVERSITY ENGINEERING & ARCHITECTURE FACULTY INDUSTRIAL ELECTRONICS LABORATORY EE 432 INDUSTRIAL ELECTRONICS EXPERIMENT 2 TRAFFIC LIGHT CONTROL SYSTEM FOR AN INTERSECTION USING S7-300 PLC Introduction:

More information

Computer Automation Techniques. Arthur Carroll

Computer Automation Techniques. Arthur Carroll Computer Automation Techniques Arthur Carroll 1 Three Types of Computers Micro-Controller Single Board Computer Desktop Computer 2 The Micro-Controller Small inexpensive DIP or surface mount chips Roughly

More information

A Practical Guide to Free Energy Devices

A Practical Guide to Free Energy Devices A Practical Guide to Free Energy Devices Device Patent No 29: Last updated: 7th October 2008 Author: Patrick J. Kelly This is a slightly reworded copy of this patent application which shows a method of

More information

Analog-to-Digital Converters

Analog-to-Digital Converters Analog-to-Digital Converters In this presentation we will look at the Analog-to-Digital Converter Peripherals with Microchip s midrange PICmicro Microcontrollers series. 1 Analog-to-Digital Converters

More information

GPS & GSM BASED REAL-TIME VEHICLE TRACKING SYSTEM.

GPS & GSM BASED REAL-TIME VEHICLE TRACKING SYSTEM. GPS & GSM BASED REAL-TIME VEHICLE TRACKING SYSTEM. Introduction: The Proposed design is cost-effective, reliable and has the function of accurate tracking. When large object or vehicles were spread out

More information

EET272 Worksheet Week 9

EET272 Worksheet Week 9 EET272 Worksheet Week 9 answer questions 1-5 in preparation for discussion for the quiz on Monday. Finish the rest of the questions for discussion in class on Wednesday. Question 1 Questions AC s are becoming

More information

Tutorial for MPLAB Starter Kit for PIC18F

Tutorial for MPLAB Starter Kit for PIC18F Tutorial for MPLAB Starter Kit for PIC18F 2006 Microchip Technology Incorporated. All Rights Reserved. WebSeminar Title Slide 1 Welcome to the tutorial for the MPLAB Starter Kit for PIC18F. My name is

More information