1 Microcontroller overview
1.1 Industrial automation systems overview
1.2 Microcontroller architecture
1.3 The pedagogical robot
1.4 Digital Inputs/Outputs
1.5 Embedded C Language
EE6008 MCBSD - Introduction to PIC Micro controller pavihari
This document outlines the syllabus for the course EE6008 Microcontroller Based System Design. It covers 5 units:
1. Introduction to PIC microcontrollers including architecture of PIC16C6x and PIC16C7x families.
2. Interrupts and timers in PIC microcontrollers including external interrupts, timer programming.
3. Peripherals and interfacing including I2C, serial EEPROM, ADC, UART, LCD interfacing.
4. Introduction to ARM processor architecture including programmer's model, development tools, memory hierarchy.
5. ARM organization including pipeline organization, instruction execution, instruction set, coprocessor interface.
This document provides information about a course on programming PIC microcontrollers in C using the CCS PIC-C compiler. It discusses the recommended textbook, the topics that will be covered including PIC architecture, limitations of C as applied to PICs, programming PIC hardware, and using software libraries. It also describes how the course will be assessed through a 30 minute multiple choice test held at the end of term.
The document discusses the hardware features of the PIC18F Starter Kit including an on-board debugger, capacitive touch buttons, OLED display, and acceleration sensor. It also describes the features of the PIC18F46J50 MCU such as the parallel master port, real-time clock, USB capability, and analog-to-digital converter. Finally, it lists several precompiled demo applications that are included with the kit like a mouse demo, joystick demo, and card reader demo.
The document discusses the PIC-18 microcontroller. It describes the PIC-18 as an 8-bit microcontroller with 16-bit instruction sets, 256 bytes of EPROM, 2KB of SRAM, and 32KB of flash memory. It operates at 40MHz and has features like a 10-bit A/D converter, instruction pipelining, and low power consumption. The document also provides details on the pin diagram, architecture, memory organization, addressing modes, and pipelining of the PIC-18 microcontroller.
This document provides an overview of the PIC-18 microcontroller. It describes the PIC-18's features such as its 8-bit architecture with 16-bit instruction sets, memory sizes including 256 bytes of EPROM and 2KB of SRAM. The document also discusses the PIC-18's addressing modes, memory organization with separate program and data memory spaces, and instruction pipelining capability.
This document provides an introduction to PIC microcontrollers. It discusses the architecture of PIC microcontrollers, including the 16C6x and 16C7x architectures. It describes the registers, memory, and instruction set of PIC microcontrollers. Some key points covered include the Harvard architecture, pipelining, addressing modes, arithmetic, logical, and conditional instructions. Peripherals like timers and interrupts are also mentioned.
EE6008 MCBSD - Introduction to PIC Micro controller pavihari
This document outlines the syllabus for the course EE6008 Microcontroller Based System Design. It covers 5 units:
1. Introduction to PIC microcontrollers including architecture of PIC16C6x and PIC16C7x families.
2. Interrupts and timers in PIC microcontrollers including external interrupts, timer programming.
3. Peripherals and interfacing including I2C, serial EEPROM, ADC, UART, LCD interfacing.
4. Introduction to ARM processor architecture including programmer's model, development tools, memory hierarchy.
5. ARM organization including pipeline organization, instruction execution, instruction set, coprocessor interface.
This document provides information about a course on programming PIC microcontrollers in C using the CCS PIC-C compiler. It discusses the recommended textbook, the topics that will be covered including PIC architecture, limitations of C as applied to PICs, programming PIC hardware, and using software libraries. It also describes how the course will be assessed through a 30 minute multiple choice test held at the end of term.
The document discusses the hardware features of the PIC18F Starter Kit including an on-board debugger, capacitive touch buttons, OLED display, and acceleration sensor. It also describes the features of the PIC18F46J50 MCU such as the parallel master port, real-time clock, USB capability, and analog-to-digital converter. Finally, it lists several precompiled demo applications that are included with the kit like a mouse demo, joystick demo, and card reader demo.
The document discusses the PIC-18 microcontroller. It describes the PIC-18 as an 8-bit microcontroller with 16-bit instruction sets, 256 bytes of EPROM, 2KB of SRAM, and 32KB of flash memory. It operates at 40MHz and has features like a 10-bit A/D converter, instruction pipelining, and low power consumption. The document also provides details on the pin diagram, architecture, memory organization, addressing modes, and pipelining of the PIC-18 microcontroller.
This document provides an overview of the PIC-18 microcontroller. It describes the PIC-18's features such as its 8-bit architecture with 16-bit instruction sets, memory sizes including 256 bytes of EPROM and 2KB of SRAM. The document also discusses the PIC-18's addressing modes, memory organization with separate program and data memory spaces, and instruction pipelining capability.
This document provides an introduction to PIC microcontrollers. It discusses the architecture of PIC microcontrollers, including the 16C6x and 16C7x architectures. It describes the registers, memory, and instruction set of PIC microcontrollers. Some key points covered include the Harvard architecture, pipelining, addressing modes, arithmetic, logical, and conditional instructions. Peripherals like timers and interrupts are also mentioned.
This document provides details on the PIC18FXX8 microcontroller family, including its high-performance RISC CPU, advanced analog and peripheral features, CAN bus module, and special microcontroller features such as code protection, sleep mode, and oscillator options. It highlights specifications such as its 10 MIPS operation, 10-bit A/D converter, programmable timers and PWM, MSSP, and compliance with ISO CAN standards. The document is a data sheet that concisely outlines the technical specifications and capabilities of the PIC18FXX8 microcontroller family.
The document discusses the syllabus for the course EE6008 - Microcontroller Based System Design. It covers 5 units: (1) Introduction to PIC Microcontroller architecture; (2) Interrupts and timers on PIC microcontrollers; (3) Interfacing peripherals using I2C bus, analog to digital converters, and UART; (4) Introduction to ARM processor architecture; (5) ARM organization including pipeline stages and instruction set. The objectives are to introduce microcontroller architectures and teach how to use interrupts, timers, and peripheral devices for data communication.
Microchip's PIC Micro Controller - Presentation Covers- Embedded system,Application, Harvard and Von Newman Architecture, PIC Microcontroller Instruction Set, PIC assembly language programming, PIC Basic circuit design and its programming etc.
Tutorial dec0604(print24) Programming a PICMuhammad Khan
This document provides a tutorial on programming PIC microcontrollers. It discusses choosing a PIC, using the MPLab IDE, writing code in C, and compiling and loading software onto the PIC. The tutorial explains the basic process of selecting a PIC, writing a simple blinking LED program in C, using MPLab to compile and build the project, and describes how to set the configuration bits and burn the hex file to the PIC. It provides helpful tips and notes to guide the reader through programming a PIC microcontroller.
This document discusses the architecture of PIC microcontrollers. It begins by looking at the programmer's model of PIC microcontrollers and the philosophy of embedded processing. Common applications of microcontrollers are then discussed, including in automotive, appliances, phones, and more. The document outlines the features of microcontrollers including CPU, memory types, and I/O support. It then focuses specifically on PIC architecture, noting it uses a Harvard architecture with separate buses for instructions and data. Key aspects of the PIC instruction set like pipelining and branch frequency are also covered.
This document provides an introduction to PIC microcontrollers. It discusses why PICs have become popular, including their low cost, wide availability, and support tools. It then describes the basic architecture of PIC microcontrollers, including their Harvard architecture, RISC design, and peripheral features like timers and serial communication. Finally, it discusses the architecture of the PIC16C6x line specifically, outlining its registers, addressing modes, and peripheral modules.
The document discusses the architecture of the 8051 microcontroller. It describes the 8051's central processing unit, memory organization, input/output ports, timers/counters, serial port, and interrupts. The 8051 has a CPU, RAM, ROM, and I/O ports integrated into a single chip. It can be programmed to perform control and sensing tasks in embedded systems.
This document provides an introduction to embedded systems and microcontrollers. It defines embedded systems as computer-based systems designed to perform dedicated functions in real-time. Embedded systems typically have limited resources and are designed to operate under harsh environments. The document then discusses the components of microcontrollers, including the CPU, memory, I/O ports, and peripherals. It provides details about the PIC18F4550 microcontroller, its applications, and development tools for working with embedded systems and microcontrollers.
Chp4 introduction to the pic microcontroller copymkazree
The document provides an introduction to the PIC microcontroller, including:
1) It describes the basic components and architecture of microcontrollers compared to microprocessors.
2) It outlines the history and features of the popular PIC microcontroller family from Microchip Technology, including the PIC16F84 model.
3) It explains the core components of the PIC16F84 including ports, memory organization, clock generator, and the central processing unit.
PIC 16F877 micro controller by Gaurav raikarGauravRaikar3
The document discusses configuring the on-chip analog to digital converter (ADC) on the PIC16F877 microcontroller. It first provides an overview of the PIC microcontroller family and key features of the PIC16F877. It then describes the ADC registers and conversion process, including configuring the ADC module, selecting the input channel, starting the conversion, and reading the result. It includes a diagram of the ADC conversion timing and flowchart of the conversion process. An example code for reading the ADC and printing the result is also provided.
The PIC microcontroller is a single-chip computer with RAM, ROM, I/O ports and a CPU. The PIC16F73 has features like a RISC CPU, 4K bytes of flash memory, 192 bytes of RAM, three I/O ports and a built-in oscillator. It has peripherals like timers, PWM, ADC and serial communication modules. The PIC memory is divided into program memory for instructions and data memory consisting of register banks. Common applications include interfacing with LCDs and 7-segment displays.
PIC Introduction and explained in detailedAnkita Tiwari
The document provides an introduction to the PIC microcontroller. It discusses what a microcontroller is, compares microcontrollers to general purpose microprocessors, and briefly outlines the history of the PIC microcontroller. It then describes features of the PIC16F84 microcontroller including its clock generator, reset function, ports, central processing unit, and memory organization including flash memory, RAM, and ROM. It also covers the timer and prescalar functions.
This document provides an overview of microcontroller programming using C language for ATMEL and PIC microcontrollers. It discusses microcontroller architecture, including the central processing unit, memory, timers/counters, and interrupts. It then introduces the ATMEL 89C2051 microcontroller, describing its pin configuration, special purpose I/O, memory, and other features. The document outlines the structure of microcontroller C programming and provides sample programs to blink an LED. It also discusses configuring the hardware and software environment, compiling and burning programs to the microcontroller, and writing interrupt subroutines.
This document provides an introduction to PIC microcontrollers. It discusses that PIC stands for "Programmable Intelligent Computer" and that a PIC microcontroller is a processor with built-in memory and RAM that can be used to control projects. It then lists some of the useful built-in modules of PIC microcontrollers like EEPROM, timers, and analog comparators. The document also discusses why PIC microcontrollers are popular, which includes their low cost, wide availability, and small size. It then provides details on the pins of the common PIC 16F84 microcontroller and describes its registers and peripherals. Finally, it gives a simple code example using ports on the PIC 16F84
The document discusses the 8051 microcontroller family. It provides an overview of microcontrollers compared to general purpose microprocessors, noting that microcontrollers have CPU, RAM, ROM, I/O ports, timers and other peripherals integrated into a single chip. It then outlines the 8051 microcontroller and its variants, describing features like memory sizes, I/O pins, and timers. Selection criteria for choosing a microcontroller like speed, packaging, and cost are also summarized.
This document discusses computer architecture and microprocessors. It explains how to set up a counter using a register loaded with a number that is then incremented or decremented. It discusses time delay, which uses a counter concept where the number of clock cycles depends on T-states. A simple example program is provided and calculated to take 1.8 milliseconds to execute based on a 2MHz processor frequency. Additional examples are given to illustrate using register pairs or nested loops to create longer time delays. The document also covers stacks, stack instructions, and using subroutines to avoid repeatedly writing time delay code.
This document provides an overview of the instruction set of the 8085 microprocessor. It discusses the different types of instructions including one-byte, two-byte, and three-byte instructions. It describes the various instruction categories such as data transfer, arithmetic, logical, branching, and machine control instructions. It also covers addressing modes, assembly language programming, and examples of arithmetic operations and first programs. The document serves as an introduction to understanding the instruction set and programming of the 8085 microprocessor.
The document discusses various input/output interfacing components used with microprocessors, including parallel and serial communication interfaces, analog to digital and digital to analog converters, timers, and interrupt controllers. It describes the 8255 parallel interface chip, 8251 serial interface chip, and programming of ports and modes. Memory interfacing is also covered briefly. Application examples discussed include traffic light control, LED displays, and keyboard/display interfaces.
This document provides an overview of single-phase induction motors. It discusses the construction of single-phase induction motors, which have a two-winding stator arranged perpendicularly and a squirrel cage rotor. It explains that these motors operate based on a double revolving field theory, where the pulsating magnetic field from the main winding can be divided into two fields rotating in opposite directions. A starting winding is used to generate a small positive slip and produce starting torque to initially rotate the motor in the forward direction of one of the fields. An equivalent circuit model is presented to analyze the motor performance based on the two rotating fields.
This document provides details on the PIC18FXX8 microcontroller family, including its high-performance RISC CPU, advanced analog and peripheral features, CAN bus module, and special microcontroller features such as code protection, sleep mode, and oscillator options. It highlights specifications such as its 10 MIPS operation, 10-bit A/D converter, programmable timers and PWM, MSSP, and compliance with ISO CAN standards. The document is a data sheet that concisely outlines the technical specifications and capabilities of the PIC18FXX8 microcontroller family.
The document discusses the syllabus for the course EE6008 - Microcontroller Based System Design. It covers 5 units: (1) Introduction to PIC Microcontroller architecture; (2) Interrupts and timers on PIC microcontrollers; (3) Interfacing peripherals using I2C bus, analog to digital converters, and UART; (4) Introduction to ARM processor architecture; (5) ARM organization including pipeline stages and instruction set. The objectives are to introduce microcontroller architectures and teach how to use interrupts, timers, and peripheral devices for data communication.
Microchip's PIC Micro Controller - Presentation Covers- Embedded system,Application, Harvard and Von Newman Architecture, PIC Microcontroller Instruction Set, PIC assembly language programming, PIC Basic circuit design and its programming etc.
Tutorial dec0604(print24) Programming a PICMuhammad Khan
This document provides a tutorial on programming PIC microcontrollers. It discusses choosing a PIC, using the MPLab IDE, writing code in C, and compiling and loading software onto the PIC. The tutorial explains the basic process of selecting a PIC, writing a simple blinking LED program in C, using MPLab to compile and build the project, and describes how to set the configuration bits and burn the hex file to the PIC. It provides helpful tips and notes to guide the reader through programming a PIC microcontroller.
This document discusses the architecture of PIC microcontrollers. It begins by looking at the programmer's model of PIC microcontrollers and the philosophy of embedded processing. Common applications of microcontrollers are then discussed, including in automotive, appliances, phones, and more. The document outlines the features of microcontrollers including CPU, memory types, and I/O support. It then focuses specifically on PIC architecture, noting it uses a Harvard architecture with separate buses for instructions and data. Key aspects of the PIC instruction set like pipelining and branch frequency are also covered.
This document provides an introduction to PIC microcontrollers. It discusses why PICs have become popular, including their low cost, wide availability, and support tools. It then describes the basic architecture of PIC microcontrollers, including their Harvard architecture, RISC design, and peripheral features like timers and serial communication. Finally, it discusses the architecture of the PIC16C6x line specifically, outlining its registers, addressing modes, and peripheral modules.
The document discusses the architecture of the 8051 microcontroller. It describes the 8051's central processing unit, memory organization, input/output ports, timers/counters, serial port, and interrupts. The 8051 has a CPU, RAM, ROM, and I/O ports integrated into a single chip. It can be programmed to perform control and sensing tasks in embedded systems.
This document provides an introduction to embedded systems and microcontrollers. It defines embedded systems as computer-based systems designed to perform dedicated functions in real-time. Embedded systems typically have limited resources and are designed to operate under harsh environments. The document then discusses the components of microcontrollers, including the CPU, memory, I/O ports, and peripherals. It provides details about the PIC18F4550 microcontroller, its applications, and development tools for working with embedded systems and microcontrollers.
Chp4 introduction to the pic microcontroller copymkazree
The document provides an introduction to the PIC microcontroller, including:
1) It describes the basic components and architecture of microcontrollers compared to microprocessors.
2) It outlines the history and features of the popular PIC microcontroller family from Microchip Technology, including the PIC16F84 model.
3) It explains the core components of the PIC16F84 including ports, memory organization, clock generator, and the central processing unit.
PIC 16F877 micro controller by Gaurav raikarGauravRaikar3
The document discusses configuring the on-chip analog to digital converter (ADC) on the PIC16F877 microcontroller. It first provides an overview of the PIC microcontroller family and key features of the PIC16F877. It then describes the ADC registers and conversion process, including configuring the ADC module, selecting the input channel, starting the conversion, and reading the result. It includes a diagram of the ADC conversion timing and flowchart of the conversion process. An example code for reading the ADC and printing the result is also provided.
The PIC microcontroller is a single-chip computer with RAM, ROM, I/O ports and a CPU. The PIC16F73 has features like a RISC CPU, 4K bytes of flash memory, 192 bytes of RAM, three I/O ports and a built-in oscillator. It has peripherals like timers, PWM, ADC and serial communication modules. The PIC memory is divided into program memory for instructions and data memory consisting of register banks. Common applications include interfacing with LCDs and 7-segment displays.
PIC Introduction and explained in detailedAnkita Tiwari
The document provides an introduction to the PIC microcontroller. It discusses what a microcontroller is, compares microcontrollers to general purpose microprocessors, and briefly outlines the history of the PIC microcontroller. It then describes features of the PIC16F84 microcontroller including its clock generator, reset function, ports, central processing unit, and memory organization including flash memory, RAM, and ROM. It also covers the timer and prescalar functions.
This document provides an overview of microcontroller programming using C language for ATMEL and PIC microcontrollers. It discusses microcontroller architecture, including the central processing unit, memory, timers/counters, and interrupts. It then introduces the ATMEL 89C2051 microcontroller, describing its pin configuration, special purpose I/O, memory, and other features. The document outlines the structure of microcontroller C programming and provides sample programs to blink an LED. It also discusses configuring the hardware and software environment, compiling and burning programs to the microcontroller, and writing interrupt subroutines.
This document provides an introduction to PIC microcontrollers. It discusses that PIC stands for "Programmable Intelligent Computer" and that a PIC microcontroller is a processor with built-in memory and RAM that can be used to control projects. It then lists some of the useful built-in modules of PIC microcontrollers like EEPROM, timers, and analog comparators. The document also discusses why PIC microcontrollers are popular, which includes their low cost, wide availability, and small size. It then provides details on the pins of the common PIC 16F84 microcontroller and describes its registers and peripherals. Finally, it gives a simple code example using ports on the PIC 16F84
The document discusses the 8051 microcontroller family. It provides an overview of microcontrollers compared to general purpose microprocessors, noting that microcontrollers have CPU, RAM, ROM, I/O ports, timers and other peripherals integrated into a single chip. It then outlines the 8051 microcontroller and its variants, describing features like memory sizes, I/O pins, and timers. Selection criteria for choosing a microcontroller like speed, packaging, and cost are also summarized.
This document discusses computer architecture and microprocessors. It explains how to set up a counter using a register loaded with a number that is then incremented or decremented. It discusses time delay, which uses a counter concept where the number of clock cycles depends on T-states. A simple example program is provided and calculated to take 1.8 milliseconds to execute based on a 2MHz processor frequency. Additional examples are given to illustrate using register pairs or nested loops to create longer time delays. The document also covers stacks, stack instructions, and using subroutines to avoid repeatedly writing time delay code.
This document provides an overview of the instruction set of the 8085 microprocessor. It discusses the different types of instructions including one-byte, two-byte, and three-byte instructions. It describes the various instruction categories such as data transfer, arithmetic, logical, branching, and machine control instructions. It also covers addressing modes, assembly language programming, and examples of arithmetic operations and first programs. The document serves as an introduction to understanding the instruction set and programming of the 8085 microprocessor.
The document discusses various input/output interfacing components used with microprocessors, including parallel and serial communication interfaces, analog to digital and digital to analog converters, timers, and interrupt controllers. It describes the 8255 parallel interface chip, 8251 serial interface chip, and programming of ports and modes. Memory interfacing is also covered briefly. Application examples discussed include traffic light control, LED displays, and keyboard/display interfaces.
This document provides an overview of single-phase induction motors. It discusses the construction of single-phase induction motors, which have a two-winding stator arranged perpendicularly and a squirrel cage rotor. It explains that these motors operate based on a double revolving field theory, where the pulsating magnetic field from the main winding can be divided into two fields rotating in opposite directions. A starting winding is used to generate a small positive slip and produce starting torque to initially rotate the motor in the forward direction of one of the fields. An equivalent circuit model is presented to analyze the motor performance based on the two rotating fields.
The document summarizes key aspects of the PIC18 microcontroller including its features, memory organization, registers, and instruction set. It provides an overview of the PIC18's 8-bit CPU, program memory up to 128KB, SRAM up to 4KB, and peripheral functions. The summary describes the separation of the PIC18's program and data memories, its banked memory architecture, and addresses of important registers like the WREG, STATUS, and BSR registers.
This document discusses analog to digital conversion using a microcontroller. It describes configuring the microcontroller's analog to digital converter to take readings from sensors connected to analog input pins. It explains concepts like reference voltages, conversion time, and reading the digital output. The document provides an example of reading an analog potentiometer input using Microchip's ADC functions in C. It also outlines some workshops involving reading sensors and controlling a robot using the analog to digital converter.
This document describes a motor control reference kit from Renesas Electronics that uses sensorless vector control to drive 3-phase brushless motors. The kit includes hardware with an RX23T microcontroller and inverter, as well as embedded software. It supports permanent magnet synchronous and brushless DC motors with options for sensorless or sensed control. The kit provides scalable power stages up to 300V/20A or 60V/100A. The embedded software implements a full vector control algorithm and auto-tuning to automatically identify motor parameters and calibrate PI coefficients. Schematics, bills of materials, manuals and source code are included to allow developers to prototype sensorless motor control applications.
The document discusses the AVR microcontroller architecture. It describes how AVR was developed in 1996 and derives its name from its creators. There are three families of AVR microcontrollers: TinyAVR for simpler applications, MegaAVR for moderate to complex applications, and XmegaAVR for high speed complex applications. The document then focuses on describing the features of the ATmega16 microcontroller, including its I/O ports, ADC, timers, memory, and communication interfaces.
The 8051 microcontroler based embedded systemsmanishpatel_79
This document provides an overview of chapter 1 from a textbook on 8051 microcontrollers and embedded systems. The chapter introduces microcontrollers by comparing them to microprocessors and microcomputers. It describes the basic components of a computer system and how microcontrollers integrate CPU, memory and I/O components onto a single chip. The chapter also covers classifications of microcontrollers based on word length, memory architecture and instruction set, and provides examples of their applications in embedded systems.
The document discusses the architecture of PIC18 microcontrollers. It begins by introducing the PIC microcontroller family and noting their popularity. It then explains key aspects of the PIC18 architecture, including that it uses a Harvard architecture with separate memory spaces for instructions and data. The document outlines the main components of the PIC18 architecture, including the CPU, program ROM, data memory, I/O ports, and special function registers. It provides details on the registers used in the PIC18, including the working register WREG, general purpose registers, and special function registers.
This document provides an introduction to embedded systems and microcontrollers. It defines an embedded system as a computer system designed to perform a specific task and is contained within a larger system. Microcontrollers are described as the "brain" or central processing unit of an embedded system. Key points include:
- Microcontrollers integrate a processor, memory and input/output ports on a single chip, making embedded systems more compact and energy efficient than those using general purpose microprocessors.
- Embedded systems have a diverse range of applications from consumer electronics to industrial equipment to automobiles. Nearly every electronic device today contains one or more embedded systems.
- Microcontrollers are cheaper and better suited than microprocessors for many embedded applications as they require
The document classifies and describes different types of single-phase induction motors based on their starting methods: (1) split-phase induction motors use an auxiliary winding and centrifugal switch, (2) capacitor motors use an auxiliary winding and capacitor(s), and (3) shaded-pole motors use a shading coil to produce a rotating magnetic field. Each type has different characteristics including starting torque, efficiency, and applications.
It is obvious that vehicle weight has a linear relationship
with the energy to be dissipated (stored) and the change
in velocity required has a exponential relationship.
• Deceleration times and stopping distances vary
somewhat for all vehicles on a given road surface.
• It should then be obvious that sizing the brake system
components has critical importance with respect to the
potential vehicle velocity and the mass of the vehicle.
• Note that heavy trucks generally have greater stopping
distances as compared to typical passenger cars.
Being a business assistant with element14 in krakowPremier Farnell
The document provides information about the Business Assistant role at element14, including:
1) The responsibilities of a Business Assistant include project management, communication, preparing for meetings, research, and process improvement.
2) The role requires working in a fast-paced environment, developing networks, managing priorities, clear communication, and independent decision making.
3) Desired skills are strong IT skills, planning, producing quality work under pressure, excellent English skills, interpersonal skills, and project management experience.
This document discusses the properties and functions of hydraulic fluids used in machinery. It outlines that hydraulic fluids must effectively transmit power while providing lubrication, sealing, and heat dissipation. The key properties of good hydraulic fluids include good lubricity, ideal viscosity, chemical/thermal stability, compressibility, fire resistance, heat transfer ability, low density/foam resistance, and non-toxicity. It then examines viscosity and viscosity index in depth, as well as other important properties like pour point, lubricating ability, rust/corrosion protection, and the role of additives and inhibitors.
This document provides an introduction to microcontrollers. It defines microcontrollers as small computers capable of performing specific tasks, like in appliances. Microcontrollers contain a CPU core, memory, input/output ports, timers and other peripherals on a single chip. They are classified as either microcontroller units (MCU) or microprocessor units (MPU) depending on whether external components are needed. Common microcontroller components and their functions are described, along with factors to consider when choosing a microcontroller for an application.
This document discusses hydraulic pumps, including:
- Pumps are not continuous flow devices and have discrete chambers that collect and discharge flow through valve plates. The design of these components affects pressure variation.
- Actual pump flow is determined by displacement, speed, efficiency terms accounting for volumetric (leakage) efficiency and mechanical (friction loss) efficiency.
- Volumetric efficiency depends on manufacturing tolerances while mechanical efficiency depends on bearing friction and fluid turbulence.
- Formulas are provided to calculate theoretical flow, actual flow accounting for efficiencies, torque required to drive the pump, and power delivered versus power input accounting for overall efficiency.
- Factors like fluid properties, speed, foreign particles,
The document is a presentation on single phase induction motors by Susmit Sarkar. It discusses different starting methods for single phase induction motors including split phase starting, shaded pole starting, and reluctance starting. It explains split phase and capacitor start and run starting methods used in fans, air conditioners, and compressors. The presentation also covers shaded pole starting used in tape recorders and projectors. It discusses torque speed characteristics and provides the equivalent circuit diagram of a single phase induction motor using double revolving field theory.
Lecture1 microcontrolleroverview-afdhalmesin2008uskafdhal teknik
The document discusses microcontrollers and their use in industrial automation systems. It describes the typical components of an automation system, including microcontrollers, actuators, sensors, and human-machine interfaces. The document then focuses on microcontroller architecture, explaining the main components like the CPU, memory, input/output peripherals, and data bus. It provides an overview of common microcontroller manufacturers and types. Finally, the document mentions the use of a pedagogical robot to teach microcontroller concepts.
This document provides an overview of industrial automation and its components. It discusses the history of automation from manual control to modern programmable logic controllers (PLCs) and supervisory control and data acquisition (SCADA) software. PLCs are now widely used as the control hardware in automation systems. They read input signals from sensors and execute user-programmed instructions to control downstream machines. SCADA software collects data from PLCs and allows remote monitoring and operation of automated processes. Engineers play an important role in designing, implementing, maintaining and troubleshooting industrial automation systems.
A Power Point presentation On INDUSTRIAL AUTOMATION...
What is Automation?
As the name suggests ‘Automation’ means to perform automatic operations by means of different kinds of machines.
Automation is the use of control systems and information technologies to reduce the need for human work in the production of goods and services.
It is used to reduce human interference and efforts
Advantages Of PLC:-
Less Wiring.
Wiring between devices and relay contacts are done in the PLC program.
Easier and faster to make changes.
Trouble shooting aids make programming easier and reduce downtime.
Reliable components make these likely to operate for years before failure.
This document provides an overview of automation and programmable logic controllers (PLCs). It discusses the introduction of automation, its advantages and disadvantages. It then discusses PLCs in detail, including their history, architecture, programming languages used, and applications. The key points are:
1) Automation uses control systems like computers to reduce human intervention in industrial processes. It increases productivity and quality while reducing costs.
2) PLCs were developed to replace relay control systems. They have a CPU, memory, input/output modules and power supply. Ladder logic, function block diagrams and structured text are common programming languages.
3) PLCs are used widely in industrial automation to control devices like
This document provides a report on industrial automation based on programmable logic controllers (PLCs) and supervisory control and data acquisition (SCADA) systems. It includes an introduction to industrial automation, PLCs, and SCADA. The report was submitted in partial fulfillment of a Bachelor of Technology degree in electrical engineering and covers automation technologies used from June to July 2014 during an internship.
This document provides an overview of automation, PLCs, and SCADA systems. It discusses what automation and PLCs are, the history and elements of PLCs, their advantages and disadvantages, and applications. It also defines SCADA, discusses its history and elements, advantages like reduced costs and increased efficiency, disadvantages like security risks, and applications in areas like transportation and manufacturing.
This document provides an overview of programmable logic controllers (PLCs) and supervisory control and data acquisition (SCADA) systems. It discusses the history and evolution of automation and PLCs, describes common PLC components and programming, and reviews the MicroLogix 1000 PLC and RSLogix5000 programming software. Key features of SCADA systems are also summarized, including dynamic graphics, alarms, recipe management, security, connectivity, databases, and scripting. The document is submitted by Nitish Kumar Singh for review by KL Pursnani and covers automation, PLCs, ladder logic, MicroLogix1000, and SCADA systems at a high level.
Power point presentation on Industrial AutomationJaiPrakash337
This document summarizes a seminar presentation on industrial automation. It discusses automation tools like PLCs and SCADA used to automate industrial processes. It defines automation and describes the advantages it provides like improved accuracy, reduced costs, and increased production. PLCs are described as programmable devices that can automate industrial tasks by reading sensor inputs, running user-defined logic, and controlling outputs. SCADA systems allow remote monitoring and control of distributed industrial processes. The document outlines the components and applications of PLCs and SCADA and concludes that combining them provides an effective way to safely operate and monitor industrial machines.
Feasible Interfacing and Programming of Industrial Control Technology Unit wi...theijes
This document discusses the interfacing and programming of an industrial control technology unit with PLCs and robots. It begins with an abstract that describes how the unit assembles components using sensors, actuators, and a PLC for control. A PLC program is presented to control the unit and interface it with a 6-axis robot for workpiece transfer using a pneumatic gripper. The document then reviews literature on using PLCs compared to microprocessors for industrial control. It presents the project requirements, software used, and PLC and robot programming methods. The conclusion discusses the benefits of PLCs for industrial control and their interfacing with robots.
This document summarizes a presentation on programmable logic controllers (PLCs). It defines a PLC as a type of computer used in commercial and industrial control that monitors inputs, makes decisions based on a stored program, and controls outputs to automate processes. It outlines the main advantages of PLCs, describes the different types and basic architecture of PLCs including the processor, memory, I/O, and programming devices. It also explains the PLC scan process and use of ladder logic diagrams for programming. Finally, it lists some common PLC applications in manufacturing and major PLC manufacturers.
A programmable logic controller (PLC) is a specialized used to control machines and process. It uses a programmable memory to store instructions and specific functions that include On/Off control, timing, counting, seque-
-ncing, arithmetic and data handling systems.
Ekeeda - Mechatronics Engineering - Introduction to MechatronicsEkeedaPvtLtd
Mechatronics Engineering is a program in engineering which combines the fundamentals of mechanical engineering, electrical engineering, and computer engineering. It concentrates mainly on modeling, sensors, controllers, and real-time computer interfacing.
This program is developed due to demand from industries for an engineer with multi-disciplinary skills. Mechatronics engineers have to design, construct, and run production lines and automated processes with their skills, much like a production engineer but in a different field. This a field for students who have an interest in using computers and designing things. They should also be curious about how things work and what can be done to enhance them. They should be satisfactory in observing design and doing something with it. Ekeeda offers Online Mechatronics Engineering Courses for all the Subjects as per the Syllabus.
1 introduction to plc and its programming-1VishalGupta969
A PLC is used for industrial automation and control. It was developed to replace mechanical and relay-based controls. A typical PLC has a processor unit, power supply, input/output section, and a programmable memory. It monitors sensors and devices, runs programmed logic operations, and controls outputs like motors and valves. PLCs offer advantages like reliability, flexibility, and cost savings over traditional controls. They are widely used in industries like manufacturing, facilities control, and processing.
The document discusses automation and tools used for automation including PLCs and SCADA systems. It provides an overview of what PLCs and SCADA are, including their components and programming. PLCs are microprocessor-based devices that interface inputs and outputs to control industrial automation applications. SCADA systems are used for supervisory control and data acquisition in industrial processes allowing remote monitoring and control. Common PLC and SCADA manufacturers and software are also mentioned.
Industrial automation involves using computers and programmable controllers to control manufacturing processes. This increases productivity, quality and safety while reducing costs. Automation uses sensors to collect input data, transmitters to convert it to electrical signals, and control systems like PLCs, DCSs and PID controllers to process the signals. Output devices like actuators then control machines based on the electronic instructions. PLCs in particular have replaced mechanical relays and are now widely used in industrial control applications across various industries. They allow flexible programming to monitor processes and adjust operations as needed.
Automation refers to using machines, computers, or other technologies to operate equipment and processes. There are two main types of automation: industrial automation, which uses robots, computer-controlled machines, and integrated systems to automate manufacturing processes, and home automation, which uses sensors and controllers to automate functions in homes like lighting, HVAC, security, and entertainment systems. A key component of many automation systems is the programmable logic controller (PLC), an industrial computer that monitors inputs and controls outputs to automate industrial processes based on a programmed logic. PLCs use input and output modules, a central processing unit, memory, and a power supply. Common programming methods for PLCs include ladder logic. Automation provides
The solution selling kits of PC-based Automation_20160404_Eric LoEric Lo
This document discusses PC-based automation solutions for driving Industry 4.0. It outlines key elements of Industry 4.0 like smarter machinery, digital factories, and connected enterprises. It then describes the architecture and components of smarter machine systems using PC-based controllers like IPPC and NIFE series. These support real-time EtherCAT communication, standard IEC 61131-3 programming, and seamless integration between industrial automation and information technology. The document promotes these PC-based motion controllers as providing high performance, multi-axis control, and open connectivity required for digital transformation in industry.
This is a small project on Siemens PLC Step 7 models. The project required lot of lateral thinking and logical decision making in order to develop programs for the traffic light management for the entire chandigarh city. The project is known as Total Traffic Security & Management (TTSM)
Automation involves using control systems and information technologies to reduce the need for human intervention. It is used widely in manufacturing and services. Some key automation tools discussed include distributed control systems, human-machine interfaces, supervisory control and data acquisition systems, programmable logic controllers, and instrumentation for motion control. Programmable logic controllers implement logic functions through programs to monitor inputs and control outputs to automate machines. Automation has significantly impacted industries like manufacturing and telephone switching and has led to shifts in the world economy. While automation increases production and quality, its initial costs can be high.
This document provides an overview of programmable logic controllers (PLCs). It discusses what a PLC is, common PLC brands and software, PLC components and operation, programming languages, uses of HMIs and SCADA systems, differences between PLCs and computers, why PLCs are used, their advantages, and common application areas. The document also describes an industrial automation company and its PLC training and services.
Similar to Lecture 1 microcontroller overview (20)
At Techbox Square, in Singapore, we're not just creative web designers and developers, we're the driving force behind your brand identity. Contact us today.
Navigating the world of forex trading can be challenging, especially for beginners. To help you make an informed decision, we have comprehensively compared the best forex brokers in India for 2024. This article, reviewed by Top Forex Brokers Review, will cover featured award winners, the best forex brokers, featured offers, the best copy trading platforms, the best forex brokers for beginners, the best MetaTrader brokers, and recently updated reviews. We will focus on FP Markets, Black Bull, EightCap, IC Markets, and Octa.
Storytelling is an incredibly valuable tool to share data and information. To get the most impact from stories there are a number of key ingredients. These are based on science and human nature. Using these elements in a story you can deliver information impactfully, ensure action and drive change.
Discover timeless style with the 2022 Vintage Roman Numerals Men's Ring. Crafted from premium stainless steel, this 6mm wide ring embodies elegance and durability. Perfect as a gift, it seamlessly blends classic Roman numeral detailing with modern sophistication, making it an ideal accessory for any occasion.
https://rb.gy/usj1a2
Zodiac Signs and Food Preferences_ What Your Sign Says About Your Tastemy Pandit
Know what your zodiac sign says about your taste in food! Explore how the 12 zodiac signs influence your culinary preferences with insights from MyPandit. Dive into astrology and flavors!
Anny Serafina Love - Letter of Recommendation by Kellen Harkins, MS.AnnySerafinaLove
This letter, written by Kellen Harkins, Course Director at Full Sail University, commends Anny Love's exemplary performance in the Video Sharing Platforms class. It highlights her dedication, willingness to challenge herself, and exceptional skills in production, editing, and marketing across various video platforms like YouTube, TikTok, and Instagram.
buy old yahoo accounts buy yahoo accountsSusan Laney
As a business owner, I understand the importance of having a strong online presence and leveraging various digital platforms to reach and engage with your target audience. One often overlooked yet highly valuable asset in this regard is the humble Yahoo account. While many may perceive Yahoo as a relic of the past, the truth is that these accounts still hold immense potential for businesses of all sizes.
Best practices for project execution and deliveryCLIVE MINCHIN
A select set of project management best practices to keep your project on-track, on-cost and aligned to scope. Many firms have don't have the necessary skills, diligence, methods and oversight of their projects; this leads to slippage, higher costs and longer timeframes. Often firms have a history of projects that simply failed to move the needle. These best practices will help your firm avoid these pitfalls but they require fortitude to apply.
Building Your Employer Brand with Social MediaLuanWise
Presented at The Global HR Summit, 6th June 2024
In this keynote, Luan Wise will provide invaluable insights to elevate your employer brand on social media platforms including LinkedIn, Facebook, Instagram, X (formerly Twitter) and TikTok. You'll learn how compelling content can authentically showcase your company culture, values, and employee experiences to support your talent acquisition and retention objectives. Additionally, you'll understand the power of employee advocacy to amplify reach and engagement – helping to position your organization as an employer of choice in today's competitive talent landscape.
Understanding User Needs and Satisfying ThemAggregage
https://www.productmanagementtoday.com/frs/26903918/understanding-user-needs-and-satisfying-them
We know we want to create products which our customers find to be valuable. Whether we label it as customer-centric or product-led depends on how long we've been doing product management. There are three challenges we face when doing this. The obvious challenge is figuring out what our users need; the non-obvious challenges are in creating a shared understanding of those needs and in sensing if what we're doing is meeting those needs.
In this webinar, we won't focus on the research methods for discovering user-needs. We will focus on synthesis of the needs we discover, communication and alignment tools, and how we operationalize addressing those needs.
Industry expert Scott Sehlhorst will:
• Introduce a taxonomy for user goals with real world examples
• Present the Onion Diagram, a tool for contextualizing task-level goals
• Illustrate how customer journey maps capture activity-level and task-level goals
• Demonstrate the best approach to selection and prioritization of user-goals to address
• Highlight the crucial benchmarks, observable changes, in ensuring fulfillment of customer needs
B2B payments are rapidly changing. Find out the 5 key questions you need to be asking yourself to be sure you are mastering B2B payments today. Learn more at www.BlueSnap.com.
The Evolution and Impact of OTT Platforms: A Deep Dive into the Future of Ent...ABHILASH DUTTA
This presentation provides a thorough examination of Over-the-Top (OTT) platforms, focusing on their development and substantial influence on the entertainment industry, with a particular emphasis on the Indian market.We begin with an introduction to OTT platforms, defining them as streaming services that deliver content directly over the internet, bypassing traditional broadcast channels. These platforms offer a variety of content, including movies, TV shows, and original productions, allowing users to access content on-demand across multiple devices.The historical context covers the early days of streaming, starting with Netflix's inception in 1997 as a DVD rental service and its transition to streaming in 2007. The presentation also highlights India's television journey, from the launch of Doordarshan in 1959 to the introduction of Direct-to-Home (DTH) satellite television in 2000, which expanded viewing choices and set the stage for the rise of OTT platforms like Big Flix, Ditto TV, Sony LIV, Hotstar, and Netflix. The business models of OTT platforms are explored in detail. Subscription Video on Demand (SVOD) models, exemplified by Netflix and Amazon Prime Video, offer unlimited content access for a monthly fee. Transactional Video on Demand (TVOD) models, like iTunes and Sky Box Office, allow users to pay for individual pieces of content. Advertising-Based Video on Demand (AVOD) models, such as YouTube and Facebook Watch, provide free content supported by advertisements. Hybrid models combine elements of SVOD and AVOD, offering flexibility to cater to diverse audience preferences.
Content acquisition strategies are also discussed, highlighting the dual approach of purchasing broadcasting rights for existing films and TV shows and investing in original content production. This section underscores the importance of a robust content library in attracting and retaining subscribers.The presentation addresses the challenges faced by OTT platforms, including the unpredictability of content acquisition and audience preferences. It emphasizes the difficulty of balancing content investment with returns in a competitive market, the high costs associated with marketing, and the need for continuous innovation and adaptation to stay relevant.
The impact of OTT platforms on the Bollywood film industry is significant. The competition for viewers has led to a decrease in cinema ticket sales, affecting the revenue of Bollywood films that traditionally rely on theatrical releases. Additionally, OTT platforms now pay less for film rights due to the uncertain success of films in cinemas.
Looking ahead, the future of OTT in India appears promising. The market is expected to grow by 20% annually, reaching a value of ₹1200 billion by the end of the decade. The increasing availability of affordable smartphones and internet access will drive this growth, making OTT platforms a primary source of entertainment for many viewers.
3. 1.1 Industrial automation systems overview
1.2 Microcontroller architecture
1 Microcontroller overview
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 3
1.3 The pedagogical robot
1.4 Digital Inputs/Outputs
1.5 Embedded C Language
4. 1.1 Industrial automation systems overview
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 4
5. 1.1 Industrial automation systems overview
Energy
Commands Pre-
actuators
Actuators
Energy
other
microcontrollers
other systems
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 5
User
Operative part
Informations
Command
Part
Sensors
Human-
Machine
Interface Interface
6. Energy
Commands Pre-
Actuators
Actuators
Energy Actuators
Electric
Actuators :
Motors
other
microcontrollers
other systems
1.1 Industrial automation systems overview
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 6
Command
Part
User
Operative part
Informations
Sensors
Human-
Machine
Interface Interface
Command
Part
Pneumatic
or hydraulic
actuators :
cylinders
7. Energy
Commands Pre-
Actuators
Actuators
Energy
1.1 Industrial automation systems overview
other
microcontrollers
other systems
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 7
User
Operative part
Informations
Sensors
Human-
Machine
Interface Interface
Command
Part
8. Energy
Commands Pre-
Actuators
Actuators
Energy
Pre-Actuators
Motor
drives / inverters
1.1 Industrial automation systems overview
other
microcontrollers
other systems
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 8
User
Operative part
Informations
Sensors
Human-
Machine
Interface Interface
Command
Part
electropneumatic
or electrohydraulic valves
9. Energy
Commands Pre-
Actuators
Actuators
Energy
1.1 Industrial automation systems overview
other
microcontrollers
other systems
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 9
User
Operative part
Informations
Sensors
Human-
Machine
Interface Interface
Command
Part
10. Energy
Commands Pre-
Actuators
Actuators
Energy
other
microcontrollers
other systems
Sensors
optical detectorinductive detector
contact
detector
1.1 Industrial automation systems overview
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 10
User
Operative part
Informations
Sensors
Human-
Machine
Interface Interface
Command
Part
optical detectorinductive detector
Optical encoder
(for motor axes)
detector
Camera
11. Energy
Commands Pre-
Actuators
Actuators
Energy
1.1 Industrial automation systems overview
other
microcontrollers
other systems
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 11
User
Operative part
Informations
Sensors
Human-
Machine
Interface Interface
Command
Part
13. 1.1 Industrial automation systems overview
Which device for command part ?
Few systems : for example Factory Automation
Low development cost
Quick and safe development
PLC
(programmable logic controller)
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 13
Many systems : for example Automotive Brake system
Cheap and small device
(programmable logic controller)
Microcontroller
14. 1.1 Industrial automation systems overview
Microcontroller applications
Automotive : safety, comfort, motor control…
Embedded control : inverter, PLC (!), hover, wash machine
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 14
Automotive : safety, comfort, motor control…
Multimedia devices : phones, PDA, …
27. 1.3 The pedagogical robot
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 27
1.3 The pedagogical robot
28. 1.3 The pedagogical robot
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 28
29. 1.3 The pedagogical robot
Pulse width
modulation
control
dataUltrasonic
Lead
battery
Microcontroller
Synoptic
Optical
sensors
Analog and digital
sensors data
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 29
dataUltrasonic
sensor
Microcontroller
board
Power
electronic board
Optical
encoders
Line
Obstacle
Angular positions
Buttons LCD
30. jack &
Commands
Energy
I2C
PWM
Outputs
Digital
communication
peripherals
1.3 The pedagogical robot
Chopper
+ Motors
ultrasonic
telemeter
UART
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 30
LCD
Display
jack &
buttons
line info
Micro-
controller
Digital
Input
Analog to
digital
converter
Digital
outputs
Fast
counting
Inputs
Analog to
digital
converter
Infrared
sensors
Motors
encoders
position
info
Potentio-
meter
31. 1.3 The pedagogical robot
Speed &
position
control
The robot
follows
the line
The robot
starts and
stops
Obstacle
detection
Shortcut
detection
THE
RACE
AnalogtoDigitalConverter
BasicStateMachine
Developmenttools
DigitalInputs/Outputs
Timers/Counters
PulseWidthModulation
CommunicationPeripherals
Interrupts
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 31
AnalogtoDigitalConverter
BasicStateMachine
Developmenttools
DigitalInputs/Outputs
Timers/Counters
PulseWidthModulation
CommunicationPeripherals
Interrupts
32. 1.4 Digital inputs / outputs
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 32
33. 1.4 Digital inputs / outputs
communication
peripherals
Databus
control signals
Program
memory
(Flash)
Data
memory
(RAM)
control signals
Central
Processing
Unit
(CPU)
Output
control signals
VCC = 5V
Example of device plugged on a digital input : a pushbutton
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 33
internal
peripherals
Databus
control signals
control signals
control signals
Output
peripherals
inputs
peripherals
control signals
control signals
VCC = 5V
GND
4,7kOhms
BPx
5 V
i=0 A
VR=0 VVR=5 V
i=1 mA
0 V
pushbutton pressed : logic level 0
pushbutton not pressed : logic level 1
RB3
34. 1.4 Digital inputs / outputs
VCC = 5V
Central
Processing
Unit
(CPU)
Other
peripherals
Example of device plugged on a digital input : a pushbutton
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 34
8-bitdatabus
Enable
reading PORTB
VCC = 5V
GND
4,7kOhms
BPx
RB3
Tri-state buffer
35. 1.4 Digital inputs / outputs
communication
peripherals
Databus
control signals
Program
memory
(Flash)
Data
memory
(RAM)
control signals
Central
Processing
Unit
(CPU)
control signals
Example of device plugged on a digital output : a led
RA6Output 01
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 35
internal
peripherals
Databus
control signals
control signals
control signals
inputs
peripherals
control signals
control signals
GND
Logic level 0 : the led is OFF
Logic level 1 : the led is ON
RA6Output
peripherals
680Ohms
0
VA6=0V
i = 0 mA
1
VA6=5V
i = 6 mA
36. 1.4 Digital inputs / outputs
Central
Processing
Unit
(CPU)
Other
peripherals
Example of device plugged on a digital output : a led
RA6
latch
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 36
8-bitdatabus
writing on
PORTA
GND
RA6
680Ohms
37. 1.4 Digital inputs / outputs
communication
peripherals
Databus
control signals
Program
memory
(Flash)
Data
memory
(RAM)
control signals
Central
Processing
Unit
(CPU)
Example of device plugged on digital in/outputs : LCD display
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 37
internal
peripherals
Databus
control signals
control signals
Input / Output
peripherals
control signals
Parallel Port
4
RD0-RD3
38. 1.4 Digital inputs / outputs
Central
Processing
Unit
(CPU)
Other
peripherals
latch Tri-state
buffer
Example of device plugged on digital in/outputs : LCD display
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 38
8-bitdatabus
writing on
PORTD
reading
PORTD
Tri-state
buffer
RD0
En
En
selecting
input or
output mode
39. 1.4 Digital inputs / outputs
Generic Input / output pin schematic
Tri-state buffer
to select input
or output mode
selecting
output latch
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 39
selecting
mode circuit
Tri-state buffer
for input reading
40. 2nd step, configure RB3 as an input
TRISB x x x 1 x x xx
1.4 Digital inputs / outputs
How to program input reading
(for example the state of a pushbutton bp0 plugged on RB3)
1st step, define a variable to store the state of the pushbutton
char bp0;
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 40
RB3 is configured as an input
char bp0;
TRISB = TRISB | 0b00001000;
3rd step, read the value of RB3
and store it in bp0
bp0 = PORTBbits.RB3;
or
bp0 = PORTB & 0b00001000;
41. 1st step, configure RA6 as an output
TRISA 0 x x x x x xx
1.4 Digital inputs / outputs
How to program output writing
(for example switching on a led plugged on RA6)
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 41
RA6 is configured as an output
TRISA = TRISA & 0b10111111;
2nd step, write a value of RA6
PORTAbits.RA6 = 1;
or
PORTA = PORTA | 0b01000000;
42. 1st step, configure RA6 as an output
TRISA 0 x x x x x xx
1.4 Digital inputs / outputs
How to program output writing
(for example switching off a led plugged on RA6)
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 42
RA6 is configured as an output
TRISA = TRISA & 0b10111111;
2nd step, write a value of RA6
PORTAbits.RA6 = 0;
or
PORTA = PORTA & 0b10111111;
43. 1.5 Embedded program flow chart
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 43
44. Peripherals configuration
variables definition and initialization
1.5 Flow chart
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 44
Inputs reading
Treatment
Outputs writing
45. Variables definition and initializations
peripherirals configuration
while (1) {
Inputs reading
main(){
1.5 Flow chart
Project Pedagogy approach of Microcontroller – Palestinian Robotic Cup 45
Inputs reading
treatments
Outputs writing
}
}