Parallel Input/Output. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

Size: px
Start display at page:

Download "Parallel Input/Output. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff"

Transcription

1 Parallel Input/Output 1

2 Parallel Input/Output Ports A HCS12 device may have from 48 to 144 pins arranged in 3 to 12 I/O Ports An I/O pin can be configured for input or output An I/O pin usually serves multiple functions. When it is not used as a peripheral function, it can be used as a general-purpose I/O pin. From MC9S12C Family Reference Manual (document ReferenceManualS12C PUV2rev4) 2

3 Addressing I/O Ports When inputting or outputting to/from an I/O port, you read from or write to the port data register Each I/O port register is assigned to an address in the HCS12 memory space. For example, Port T data register is assigned to address $240: movb #$35,$240 ; output a $35 to Port T A name is also assigned to each register so that we can access a register by referring to its name: PTT equ $240 ; this is in the include file movb #$35,PTT ; output a $35 to Port T Names and addresses are defined in the mc9s12c32.inc file that you include your program using the include statement 3

4 I/O Ports in C Port names are also pre-defined for C programs, so you can just do PTT = 0x35; // output 35 (hex) to port T Definitions are in the include file mc9s12c32.h Note In C, port access is done with pointers, since you can t just do 0x240 = 0x35; // this is invalid See notes on Advanced C for how this is done 4

5 Bi-Directional Ports A data direction register (DDR) for each port, controls the direction of each port pin If the DDR bit is a 0, the pin is input Reading the data bit (e.g., D0) from the port gets the current value of the input pin 0 1 You can write a data bit, but it won t come out to the pin This circuit implements one bit of Port T 5

6 Bi-Directional Ports A data direction register (DDR) for each port, controls the direction of each port pin If the DDR bit is a 1, the pin is output Writing the data bit (D0) stores the bit into the latch You can still read out the value of the bit in the latch 1 0 6

7 General purpose digital IO Ports in the MC9S12C32 Port name # pins Pin names Notes * Pins 0 and 1 are hardwired to other things on the SSMI board (don t use them) T 8 PT0..PT7 Also used for timer functions PAD0 8 6 * PAD00..PAD07 Also used for A/D conversion M 6 PM0..PM5 Also used for communications interfaces (CANbus, SPI) E 2 PE0,PE1 Also used for interrupt inputs S 2 PS0,PS1 Also used for serial communications (so we can t use these unless we don t need communications to the PC) All port pins can be configured separately for digital input or output by writing a 0 or 1 to the associated data direction register Example: DDRT = 0xf0; // configure bits 0:3 of Port T for //.. input, bits 4:7 for output 7

8 (Side note on using Port PAD for digital I/O) Port PAD is normally used for A/D conversion However, you can also use it for digital I/O, by reading and writing to port PTAD To set up: In register ATDDIEN, set to 1 s the bits corresponding to the pins you want to use as digital I/O Then, as with the other ports, set the data direction register (DDRAD, in this case) to 0 for input and 1 for output Avoid PAD0 and PAD1 (they are hardwired to other components on the SSMI board) This is described in detail in the reference manual (MC9S12C128V1.pdf) on pages and

9 Example Continuously read switches S0..S3, and light LEDs L0..L3 if corresponding input signal is high PT7 PT6 PT5 PT4 PT3 PT2 PT1 PT0 L3 L2 L1 L0 S3 S2 S1 S0 main() { char c; DDRT = 0xf0; while (1) { c = PTT; // configure bits 0:3 for input, bits 4:7 for output // get data from Port T // We want to get bits 0:3 up into places 4:7. c = c * 16; // Multiply by 16 to shift left 4 places. } } PTT = c; // Output to Port T bits 4:7 (doesn t affect bits // 0:3 since they are configured as input) 9

10 Example: Seven Segment Display We can use 7 output pins (e.g., PT0:PT6) to drive the LEDs of a 7- segment display PT6 PT5 PT4 PT3 PT2 PT1 PT0 470 Ω each a a b f c b g d e e c f d g common cathode Digit abcdefg a b c d e f g 0 0x7E x x6D x x x5B x5F x x7F x7B What would be the code to display the hex digit A? 10

11 Example: Pushbutton switch You must use a pull-up or pull-down resistor, so that when the switch is open, you are reading a valid voltage logic level (as opposed to floating ). Pull-up Pull-down VDD VDD R PT0 PT0 R When the switch is pushed, is pin PT0 is high or low? When the switch is pushed, is pin PT0 is high or low? 11

12 Example: DIP switches A set of pull-up resistors are needed to pull the voltage to high on one side VCC of the DIP SW DIP-8 10 KΩ PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 HCS12 DIP = dual-in-line package Figure 4.19 Connecting a set of eight DIP switches to Port A of the HCS 12 To read data from switches DDRA = 0x00; // configure port A for input n = PTA; // read port A Note: if you make a mistake in this program, you can physically damage the MCU! How? 12

13 Testing a single bit Sometimes you just want to test a single bit of an input Port (e.g., Port T) and don t care about the rest of the bits We will cover this more thoroughly in the next lecture, but you will need this for Lab 3 Example: To test if PT7 is inputting a 1 (and ignore all the other bits of Port T): if (PTT & 0x80!= 0) { // PT7 is a 1 : } else { // PT7 is a 0 : } This does a bit-wise AND of PTT and the mask 0x80. The result is zero in every bit position except bit 7 (which is the just the original value of PT7) 13

14 Example: Passive motion sensor Uses a pyroelectric sensor which can detect levels of infrared radiation Everything (including people) emits some low level infrared radiation The hotter something is, the more radiation is emitted The sensor is actually split in two halves If a person walks by, the relative amount of radiation seen by the two halves changes, and the output triggers TR257-1 From: 30 Years of Passive Infrared Motion Detectors - a Technology Review, by Hans J. Keller, KUBE Electronics Ltd, 14

15 Example: Digital motion sensor (continued) A Fresnel lens which splits up the field of view into a set of discrete directions, or zones The sensor has three pins: (1) +5V power, (2) a digital output signal, and (3) ground When the sensor detects a moving heat source, its output pin is pulled low for a short period of time (~2-3 seconds) Vcc MCU The output pin is open collector, so when it is not being pulled low, it is floating Therefore, you must use a pullup resistor so that when the output is not being pulled low, it is pulled up to a valid logic high 15

16 Example: Break beam sensor A break beam sensor can be constructed using a light source (e.g., an infrared LED) and a photodetector (e.g., a PIN diode) The light normally shines on the detector, which senses it If something passes between the source and detector, it breaks the beam and the detector can sense that the light is no longer there LED Problem: the detector is also sensitive to ambient light One solution: Modulate (turn on and off) the light source at a specific frequency Use a bandpass circuit on the detector that only passes a signal with that frequency 16

17 Example: Break beam sensor (continued) TSOP 4838 IR Receiver Module Sensitive to IR light at 950 nm, modulated at 38 khz Can be used to transmit data and do remote control applications (e.g., turn on a TV) from datasheet for TSOP 4838, 17

18 Summary / Questions Most digital I/O pins can be either input or output. How do you configure them for input or output? How many general purpose digital IO pins does our MC9S12C32 chip have? When driving an LED from a digital output pin, why should you use a resistor in series with the LED? 18

EE 308 Spring S12 SUBSYSTEMS: PULSE WIDTH MODULATION, A/D CONVERTER, AND SYNCHRONOUS SERIAN INTERFACE

EE 308 Spring S12 SUBSYSTEMS: PULSE WIDTH MODULATION, A/D CONVERTER, AND SYNCHRONOUS SERIAN INTERFACE 9S12 SUBSYSTEMS: PULSE WIDTH MODULATION, A/D CONVERTER, AND SYNCHRONOUS SERIAN INTERFACE In this sequence of three labs you will learn to use the 9S12 S hardware sybsystem. WEEK 1 PULSE WIDTH MODULATION

More information

CSE208W Lecture #1 Notes Barry E. Mapen

CSE208W Lecture #1 Notes Barry E. Mapen CSE208W Lecture #1 Notes Barry E. Mapen Parts Kit Before we start, let s take a look at the parts kit. Open you kit when you have some time and start to learn what the pieces are inside of that kit. Be

More information

INF8574 GENERAL DESCRIPTION

INF8574 GENERAL DESCRIPTION GENERAL DESCRIPTION The INF8574 is a silicon CMOS circuit. It provides general purpose remote I/O expansion for most microcontroller families via the two-line bidirectional bus (I 2 C). The device consists

More information

EE 308 Lab Spring 2009

EE 308 Lab Spring 2009 9S12 Subsystems: Pulse Width Modulation, A/D Converter, and Synchronous Serial Interface In this sequence of three labs you will learn to use three of the MC9S12's hardware subsystems. WEEK 1 Pulse Width

More information

Control of Electrical Lights and Fans using TV Remote

Control of Electrical Lights and Fans using TV Remote EE 389 Electronic Design Lab -II, Project Report, EE Dept., IIT Bombay, October 2005 Control of Electrical Lights and Fans using TV Remote Group No. D10 Liji Jayaprakash (02d07021)

More information

Low Power with Long Range RF Module DATASHEET Description

Low Power with Long Range RF Module DATASHEET Description Wireless-Tag WT-900M Low Power with Long Range RF Module DATASHEET Description WT-900M is a highly integrated low-power half-'duplex RF transceiver module embedding high-speed low-power MCU and high-performance

More information

Specifications.

Specifications. is a 7 capacitive touch display designed for use with PanelPilotACE Design Studio, a free drag-and-drop style software package for rapid development of advanced user interfaces and panel meters. The is

More information

Frequently Asked Questions DAT & ZX76 Series Digital Step Attenuators

Frequently Asked Questions DAT & ZX76 Series Digital Step Attenuators Frequently Asked Questions DAT & ZX76 Series Digital Step Attenuators 1. What is the definition of "Switching Control Frequency"? The switching control frequency is the frequency of the control signals.

More information

4-Wire-Interfaced, 2.5V to 5.5V, 20-Port and 28-Port LED Display Driver and I/O Expander

4-Wire-Interfaced, 2.5V to 5.5V, 20-Port and 28-Port LED Display Driver and I/O Expander General Description The MAX6957 compact, serial-interfaced LED display driver general-purpose I/O (GPIO) peripheral provides microprocessors with up to 28 ports. Each port is individually user configurable

More information

Lab# 13: Introduction to the Digital Logic

Lab# 13: Introduction to the Digital Logic Lab# 13: Introduction to the Digital Logic Revision: October 30, 2007 Print Name: Section: In this lab you will become familiar with Physical and Logical Truth tables. As well as asserted high, asserted

More information

LAB PROJECT 2. Lab Exercise

LAB PROJECT 2. Lab Exercise LAB PROJECT 2 Objective Investigate photoresistors, infrared light emitting diodes (IRLED), phototransistors, and fiber optic cable. Type a semi-formal lab report as described in the lab manual. Use tables

More information

ST12 CODEC IR/RF Remote Control Encoder/Decoder IC 1. Overview

ST12 CODEC IR/RF Remote Control Encoder/Decoder IC 1. Overview ST CODEC / Remote Control Encoder/Decoder IC. Overview ST CODEC is Radio Frequency and Infrared encoder/decoder IC for remote control applications having unique features and flexibility not available with

More information

LABORATORY EXPERIMENT. Infrared Transmitter/Receiver

LABORATORY EXPERIMENT. Infrared Transmitter/Receiver LABORATORY EXPERIMENT Infrared Transmitter/Receiver (Note to Teaching Assistant: The week before this experiment is performed, place students into groups of two and assign each group a specific frequency

More information

Basic Microprocessor Interfacing Trainer Lab Manual

Basic Microprocessor Interfacing Trainer Lab Manual Basic Microprocessor Interfacing Trainer Lab Manual Control Inputs Microprocessor Data Inputs ff Control Unit '0' Datapath MUX Nextstate Logic State Memory Register Output Logic Control Signals ALU ff

More information

RayStar Microelectronics Technology Inc. Ver: 1.4

RayStar Microelectronics Technology Inc. Ver: 1.4 Features Description Product Datasheet Using external 32.768kHz quartz crystal Supports I 2 C-Bus's high speed mode (400 khz) The serial real-time clock is a low-power clock/calendar with a programmable

More information

AN1730. Digital Amplification Control of an Analog Signal Using the MC68HC705J1A. Introduction

AN1730. Digital Amplification Control of an Analog Signal Using the MC68HC705J1A. Introduction Order this document by /D Digital Amplification Control of an Analog Signal Using the MC68HC705JA By Mark Glenewinkel Consumer Systems Group Austin, Texas Introduction This application note describes the

More information

TCS230 Color Sensor Module User s Guide

TCS230 Color Sensor Module User s Guide TCS230 Color Sensor Module User s Guide DC-SS501_Ver1.0 TCS230 COLOR SENSOR MODULE USER S GUIDE Table of Contents Chapter 1. Overview...1 1.1 Overview... 1 1.2 Features... 1 1.3 Applications... 1 1.4 Pin

More information

Hardware Flags. and the RTI system. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

Hardware Flags. and the RTI system. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff Hardware Flags and the RTI system 1 Need for hardware flag Often a microcontroller needs to test whether some event has occurred, and then take an action For example A sensor outputs a pulse when a model

More information

RW1072-0A-001 INTRODUCTION FEATURES. Driver Output Circuit. Microprocessor Interface. Internal Memory. On-chip Low Power Analog Circuit FUNCTION

RW1072-0A-001 INTRODUCTION FEATURES. Driver Output Circuit. Microprocessor Interface. Internal Memory. On-chip Low Power Analog Circuit FUNCTION INTRODUCTION RW1072-0A-001 RW1072 is a Character Type LCD driver& controller LSI which is fabricated by low power CMOS process technology. It can display 1-lines/2-lines/3-lines with 5*8 or 6*8 dots font

More information

TS100. RTD - PT100 - Temperature Sensor. March, 2017

TS100. RTD - PT100 - Temperature Sensor. March, 2017 RTD - PT100 - Temperature Sensor March, 2017 Contents 1 Overview 2 2 Get readings from TS100 2 2.1 Use the MCU SPI to read from TS100............................. 3 2.2 Connect the SPI with just two wires...............................

More information

Robotic Development Kit. Powered using ATMEL technology

Robotic Development Kit. Powered using ATMEL technology Robotic Development Kit Powered using ATMEL technology Index 1. System overview 2. Technology overview 3. Individual dev-kit components I. Robot II. Remote III. IR-Pod IV. Base-Station V. RFID 4. Robonii

More information

PMT9123QS-TVIT: Low Power Right Angle Optical Track Sensor

PMT9123QS-TVIT: Low Power Right Angle Optical Track Sensor PMT9123QS-TVIT: Low Power Product Datasheet General Description The PMT9123QS-TVIT is PixArt Imaging's low power, right angle Optical Track Sensor in a small form factor QFN package. It has a new low-power

More information

NT Output LCD Segment/Common Driver NT7703. Features. General Description. Pin Configuration 1 V1.0

NT Output LCD Segment/Common Driver NT7703. Features. General Description. Pin Configuration 1 V1.0 160 Output LCD Segment/Common Driver Features (Segment mode)! Shift Clock frequency: 14 MHz (Max.) (VDD = 5V ± 10%) 8 MHz (Max.) (VDD = 2.5V - 4.5V)! Adopts a data bus system! 4-bit / 8-bit parallel input

More information

Serial Servo Controller

Serial Servo Controller Document : Datasheet Model # : ROB - 1185 Date : 16-Mar -07 Serial Servo Controller - USART/I 2 C with ADC Rhydo Technologies (P) Ltd. (An ISO 9001:2008 Certified R&D Company) Golden Plaza, Chitoor Road,

More information

ELEX Now You See Me. Project Report

ELEX Now You See Me. Project Report ELEX 7660 Now You See Me Project Report Ken Do, 4-14-2017 Contents 1 - Overview... 3 1.1 - Project Motivation... 3 1.2 - Goals... 3 1.3 - System Block Diagram... 3 1.4 - IP and Hardware Descriptions...

More information

νµθωερτψυιοπασδφγηϕκλζξχϖβνµθωερτ ψυιοπασδφγηϕκλζξχϖβνµθωερτψυιοπα σδφγηϕκλζξχϖβνµθωερτψυιοπασδφγηϕκ χϖβνµθωερτψυιοπασδφγηϕκλζξχϖβνµθ

νµθωερτψυιοπασδφγηϕκλζξχϖβνµθωερτ ψυιοπασδφγηϕκλζξχϖβνµθωερτψυιοπα σδφγηϕκλζξχϖβνµθωερτψυιοπασδφγηϕκ χϖβνµθωερτψυιοπασδφγηϕκλζξχϖβνµθ θωερτψυιοπασδφγηϕκλζξχϖβνµθωερτψ υιοπασδφγηϕκλζξχϖβνµθωερτψυιοπασδ φγηϕκλζξχϖβνµθωερτψυιοπασδφγηϕκλζ ξχϖβνµθωερτψυιοπασδφγηϕκλζξχϖβνµ EE 331 Design Project Final Report θωερτψυιοπασδφγηϕκλζξχϖβνµθωερτψ

More information

FEATURES. Timers Low Supply Detector. Power up Timer. Post Alarm Dead Time. Counter. Pulse Width Discriminator. Discriminator control function

FEATURES. Timers Low Supply Detector. Power up Timer. Post Alarm Dead Time. Counter. Pulse Width Discriminator. Discriminator control function PIR Circuit IC PASSIVE INFRA-RED ALARM Preliminary datasheet The SF389 is a CMOS, mixed signal ASIC designed for PIR motion detection and similar alarm applications. The ASIC interfaces directly between

More information

I2C Encoder. HW v1.2

I2C Encoder. HW v1.2 I2C Encoder HW v1.2 Revision History Revision Date Author(s) Description 1.0 22.11.17 Simone Initial version 1 Contents 1 Device Overview 3 1.1 Electrical characteristics..........................................

More information

PMT9121QS-TVIT: Low Power Optical Track Sensor

PMT9121QS-TVIT: Low Power Optical Track Sensor PMT9121QS-TVIT: Low Power Product Datasheet General Description The PMT9121QS-TVIT is PixArt Imaging's low power, in a small form factor QFN package. It has a new low-power architecture and automatic power

More information

SGD 70-A 7 PanelPilotACE Compatible Display

SGD 70-A 7 PanelPilotACE Compatible Display is a 7 capacitive touch display designed for use with PanelPilotACE Design Studio, a free drag-and-drop style software package for rapid development of advanced user interfaces and panel meters. The is

More information

DIGITAL DIRECTION SENSING MOTION DETECTOR MANUAL

DIGITAL DIRECTION SENSING MOTION DETECTOR MANUAL DIGITAL DIRECTION SENSING MOTION DETECTOR MANUAL DP-005 GLOLAB CORPORATION Thank you for buying our DP-005 Digital Direction Sensing Motion Detector The goal of Glolab is to produce top quality electronic

More information

Application Circuits 3. 3V R2. C4 100n G PI O. 0 G PI O S e t u p d a ta G PI O. 5 G PI O M o t i o n I n t G PI O. 4 G PI O.

Application Circuits 3. 3V R2. C4 100n G PI O. 0 G PI O S e t u p d a ta G PI O. 5 G PI O M o t i o n I n t G PI O. 4 G PI O. General Description The is an ultra-low power motion detector controller integrated circuit. The device is ideally suited for battery operated wireless motion sensors that make use of an MCU for handling

More information

Lab 5: Control and Feedback. Lab 5: Controls and feedback. Lab 5: Controls and Feedback

Lab 5: Control and Feedback. Lab 5: Controls and feedback. Lab 5: Controls and Feedback Lab : Control and Feedback Lab : Controls and feedback K K You may need a resistor other than exactly K for better sensitivity This embedded system uses the Photo sensor to detect the light intensity of

More information

LABORATORY ASSIGNMENT NUMBER 3 FOR CMPE 118 Due by 5:00pm on Friday, February 8, 2008 Pre-Lab Due by 5:00pm on Friday, February 1, 2008

LABORATORY ASSIGNMENT NUMBER 3 FOR CMPE 118 Due by 5:00pm on Friday, February 8, 2008 Pre-Lab Due by 5:00pm on Friday, February 1, 2008 UNIVERSITY OF CALIFORNIA, SANTA CRUZ BOARD OF STUDIES IN COMPUTER ENGINEERING CMPE118/L: INTRODUCTION TO MECHATRONICS Purpose: Minimum Parts Required: LABORATORY ASSIGNMENT NUMBER 3 FOR CMPE 118 Due by

More information

TFDU4100/TFDS4500/TFDT4500

TFDU4100/TFDS4500/TFDT4500 TELEFUNKEN TFDU4100/TFDS4500/TFDT4500 2.7 5.5V Serial Infrared Transceiver Module Family (SIR, 115.2 kbit/s) Features Compliant to IrDA 1.2 (up to 115.2 kbit/s) Wide Operating Voltage Range (2.7 to 5.5

More information

Proximity Sensor SFH 7741 Application note

Proximity Sensor SFH 7741 Application note Proximity Sensor SFH 7741 Application note 1. Introduction The SFH 7741 is a very small reflective optical sensor for short distances with digital output. With dimensions of only 3.7x3.7x1mm 3, and surface-mount

More information

HT600/680/ Series of Encoders

HT600/680/ Series of Encoders 3 18 Series of Encoders Features Operating voltage: 2.4V~12V Low power and high noise immunity CMOS technology Low standby current Three words transmission Built-in oscillator needs only 5 resistor Applications

More information

RF: RF Applicatant, normally omitted IR: IR Applicatant S: SOP-20 Package D: DIP-20 Package Omitted: DIP-18 Package SC Pin.

RF: RF Applicatant, normally omitted IR: IR Applicatant S: SOP-20 Package D: DIP-20 Package Omitted: DIP-18 Package SC Pin. REMOTE CONTROL ENCODER DESCRIPTION The is a remote control encoder paired with SC5272 utilizing CMOS technology. It encodes data and address pins into a serial coded waveform suitable for RF or IR modulation.

More information

Brick Challenge. Have fun doing the experiments!

Brick Challenge. Have fun doing the experiments! Brick Challenge Now you have the chance to get to know our bricks a little better. We have gathered information on each brick that you can use when doing the brick challenge: in case you don t know the

More information

Portland State University MICROCONTROLLERS

Portland State University MICROCONTROLLERS PH-315 MICROCONTROLLERS INTERRUPTS and ACCURATE TIMING I Portland State University OBJECTIVE We aim at becoming familiar with the concept of interrupt, and, through a specific example, learn how to implement

More information

Activity 4: Due before the lab during the week of Feb

Activity 4: Due before the lab during the week of Feb Today's Plan Announcements: Lecture Test 2 programming in C Activity 4 Serial interfaces Analog output Driving external loads Motors: dc motors, stepper motors, servos Lecture Test Activity 4: Due before

More information

HT12A/HT12E 2 12 Series of Encoders

HT12A/HT12E 2 12 Series of Encoders 2 2 Series of Encoders Features Operating voltage 2.4V~5V for the HT2A 2.4V~2V for the HT2E Low power and high noise immunity CMOS technology Low standby current: 0.A (typ. at V DD =5V HT2A with a 38kHz

More information

HC-12 Wireless Serial Port Communication Module

HC-12 Wireless Serial Port Communication Module HC-12 Wireless Serial Port Communication Module User Manual version 2.3C (updated from v1.1 English and v2.3 Chinese) Product Applications Wireless sensor Community building security Robot wireless control

More information

Data Sheet PT7C4337 Real-time Clock Module (I 2 C Bus) Product Description. Product Features. Ordering Information

Data Sheet PT7C4337 Real-time Clock Module (I 2 C Bus) Product Description. Product Features. Ordering Information Product Features Using external 32.768kHz quartz crystal Supports I 2 C-Bus's high speed mode (400 khz) Includes time (Hour/Minute/Second) and calendar (Year/Month/Date/Day) counter functions (BCD code)

More information

3 18 Series of Encoders

3 18 Series of Encoders Features Operating voltage: 2.4V~12V Low power and high noise immunity CMOS technology Low standby current Three words transmission Applications Burglar alarm system Smoke and fire alarm system Garage

More information

TV Remote. Discover Engineering. Youth Handouts

TV Remote. Discover Engineering. Youth Handouts Discover Engineering Youth Handouts Electronic Component Guide Component Symbol Notes Amplifier chip 1 8 2 7 3 6 4 5 Capacitor LED The amplifier chip (labeled LM 386) has 8 legs, or pins. Each pin connects

More information

Embedded Systems. Oscillator and I/O Hardware. Eng. Anis Nazer First Semester

Embedded Systems. Oscillator and I/O Hardware. Eng. Anis Nazer First Semester Embedded Systems Oscillator and I/O Hardware Eng. Anis Nazer First Semester 2016-2017 Oscillator configurations Three possible configurations for Oscillator (a) using a crystal oscillator (b) using an

More information

The Guitar Chord Learning System

The Guitar Chord Learning System The Guitar Chord Learning System Calvin A. Sessions Hardware Description April 19, 2005 Western Washington University Electronics Engineering Technology ETEC 474, Professor Morton INTRODUCTION The Guitar

More information

Attribution Thank you to Arduino and SparkFun for open source access to reference materials.

Attribution Thank you to Arduino and SparkFun for open source access to reference materials. Attribution Thank you to Arduino and SparkFun for open source access to reference materials. Contents Parts Reference... 1 Installing Arduino... 7 Unit 1: LEDs, Resistors, & Buttons... 7 1.1 Blink (Hello

More information

16-Port I/O Expander with LED Intensity Control, Interrupt, and Hot-Insertion Protection

16-Port I/O Expander with LED Intensity Control, Interrupt, and Hot-Insertion Protection 19-3059; Rev 5; 6/11 EVALUATION KIT AVAILABLE 16-Port I/O Expander with LED Intensity General Description The I 2 C-compatible serial interfaced peripheral provides microprocessors with 16 I/O ports. Each

More information

Process Components. Process component

Process Components. Process component What are PROCESS COMPONENTS? Input Transducer Process component Output Transducer The input transducer circuits are connected to PROCESS COMPONENTS. These components control the action of the OUTPUT components

More information

ECE U401/U211-Introduction to Electrical Engineering Lab. Lab 4

ECE U401/U211-Introduction to Electrical Engineering Lab. Lab 4 ECE U401/U211-Introduction to Electrical Engineering Lab Lab 4 Preliminary IR Transmitter/Receiver Development Introduction: In this lab you will design and prototype a simple infrared transmitter and

More information

Embedded Systems and Software

Embedded Systems and Software Embedded Systems and Software Notes on Lab 2 Embedded Systems in Vehicles Lecture 2-4, Slide 1 Lab 02 In this lab students implement an interval timer using a pushbutton switch, ATtiny45, an LED driver,

More information

Micro Power PIR signal Op Amp. China: ZL

Micro Power PIR signal Op Amp. China: ZL Patent Number Micro Power PIR signal Op Amp Taiwan: M455864 China: ZL 2013 2 0099927.6 General Description is a micro power CMOS chip IC design to detect PIR signal control IC. PIR sensor detect infrared

More information

Schmitt Trigger Inputs, Decoders

Schmitt Trigger Inputs, Decoders Schmitt Trigger, Decoders Page 1 Schmitt Trigger Inputs, Decoders TTL Switching In this lab we study the switching of TTL devices. To do that we begin with a source that is unusual for logic circuits,

More information

TIL306, TIL307 NUMERIC DISPLAYS WITH LOGIC

TIL306, TIL307 NUMERIC DISPLAYS WITH LOGIC SOLID-STATE DISPLAYS WITH INTEGRAL TTL MSI CIRCUIT CHIP FOR USE IN ALL SYSTEMS WHERE THE DATA TO BE DISPLAYED IS THE PULSE COUNT 6,9-mm (0.270-Inch) Character Height High Luminous Inteity TIL306 Has Left

More information

Project Final Report: Directional Remote Control

Project Final Report: Directional Remote Control Project Final Report: by Luca Zappaterra xxxx@gwu.edu CS 297 Embedded Systems The George Washington University April 25, 2010 Project Abstract In the project, a prototype of TV remote control which reacts

More information

EE 109 Midterm Review

EE 109 Midterm Review EE 109 Midterm Review 1 2 Number Systems Computer use base 2 (binary) 0 and 1 Humans use base 10 (decimal) 0 to 9 Humans using computers: Base 16 (hexadecimal) 0 to 15 (0 to 9,A,B,C,D,E,F) Base 8 (octal)

More information

Light Sensitive Flash Camera

Light Sensitive Flash Camera Lab 9. Light Sensitive Flash Camera Overview of this Session In this laboratory, you will learn: How to solder How to trigger a flash circuit in a disposable camera Introduction This lab is designed to

More information

MOS (PTY) LTD. E Single Channel PIR Signal Processor. Applications. General Description. Features. Digital Sensor Assembly with E931.

MOS (PTY) LTD. E Single Channel PIR Signal Processor. Applications. General Description. Features. Digital Sensor Assembly with E931. General Description The integrated circuit is designed for interfacing Passive Infra Red (PIR) sensors with micro-controllers or processors. A single wire Data Out, Clock In (DOCI) interface is provided

More information

DISCONTINUED. California Eastern Laboratories PS9817-1,-2. NEC's HIGH CMR, 10Mbps OPEN COLLECTOR OUTPUT TYPE 8-PIN SSOP (SO-8) HIGH-SPEED OPTOCOUPLER

DISCONTINUED. California Eastern Laboratories PS9817-1,-2. NEC's HIGH CMR, 10Mbps OPEN COLLECTOR OUTPUT TYPE 8-PIN SSOP (SO-8) HIGH-SPEED OPTOCOUPLER NEC's HIGH CMR, 1Mbps OPEN COLLECTOR OUTPUT TYPE 8-PIN SSOP (SO-8) HIGH-SPEED OPTOCOUPLER DESCRIPTION NEC's and PS9817-2 are active-low type high-speed photocouplers that use a GaAlAs light-emitting diode

More information

DC MOTOR DRIVER FOR POWER FOLDING IK8509

DC MOTOR DRIVER FOR POWER FOLDING IK8509 TECHNICAL DATA DC MOTOR DRIVER FOR POWER FOLDING IK8509 GENERAL DESCRIPTION IK8509 is a fully protected motor driver designed especially for automotive power folding system. The couple of devices IK8509

More information

FLD00042 I 2 C Digital Ambient Light Sensor

FLD00042 I 2 C Digital Ambient Light Sensor FLD00042 I 2 C Digital Ambient Light Sensor Features Built-in temperature compensation circuit Operating temperature: -30 C to 70 C Supply voltage range: 2.4V to 3.6V I 2 C serial port communication: Fast

More information

High Current MOSFET Toggle Switch with Debounced Push Button

High Current MOSFET Toggle Switch with Debounced Push Button Set/Reset Flip Flop This is an example of a set/reset flip flop using discrete components. When power is applied, only one of the transistors will conduct causing the other to remain off. The conducting

More information

Gap : 3mm, Slit : 0.5mm Phototransistor Output, Case package Transmissive Photointerrupter

Gap : 3mm, Slit : 0.5mm Phototransistor Output, Case package Transmissive Photointerrupter GP1S50J0000F Gap : 3mm, Slit : 0.5mm Phototransistor Output, Case package Transmissive Photointerrupter Description GP1S50J0000F is a standard, phototransistor output, transmissive photointerrupter with

More information

SGD 70-A 7 PanelPilotACE Compatible Display

SGD 70-A 7 PanelPilotACE Compatible Display is a 7 capacitive touch display designed for use with PanelPilotACE Design Studio, a free drag-and-drop style software package for rapid development of advanced user interfaces and panel meters. The is

More information

RW1026 Dot Matrix 48x4 LCD Controller / Driver

RW1026 Dot Matrix 48x4 LCD Controller / Driver Features Operating voltage: 2.4V~5.5V Internal LCD Bias generation with voltage-follower buffer External resistor CR oscillator External 256k Hz frequency source input Selection of 1/2 or 1/3 bias, and

More information

Input/Output Control Using Interrupt Service Routines to Establish a Time base

Input/Output Control Using Interrupt Service Routines to Establish a Time base CSUS EEE174 Lab Input/Output Control Using Interrupt Service Routines to Establish a Time base 599 Menlo Drive, Suite 100 Rocklin, California 95765, USA Office/Tech Support: (916) 624-8333 Fax: (916) 624-8003

More information

LAB 3 TIMER FUNCTIONS: BOLT DROP AND SQUARE WAVE

LAB 3 TIMER FUNCTIONS: BOLT DROP AND SQUARE WAVE LAB 3 TIMER FUNCTIONS: BOLT DROP AND SQUARE WAVE OBJECTIVE This lab will use MC6811 to perform time measurements. Part I will perform time measurements on a dropping bolt using input capture (IC) timer

More information

UCS Channel LED Driver / Controller

UCS Channel LED Driver / Controller GENERAL DESCRIPTION 3-Channel LED Driver / Controller The UCS1903 is a 3-channel LED display driver / controller with a built-in MCU digital interface, data latches and LED high voltage driving functions.

More information

3 12 Series of Encoders

3 12 Series of Encoders Features Operating voltage: 2.4V~12V Low power and high noise immunity CMOS technology Low standby current Minimum transmission word: Four words for TE trigger One word for Data trigger Applications Burglar

More information

LSI/CSI LS7215 LS7216 PROGRAMMABLE DIGITAL DELAY TIMER

LSI/CSI LS7215 LS7216 PROGRAMMABLE DIGITAL DELAY TIMER LSI/CSI UL 00 LSI Computer Systems, Inc. Walt Whitman Road, Melville, NY (6) -000 FX (6) -00 PROGRMMLE DIGITL DELY TIMER FETURES: Programmable delay from microseconds to days Programmable delay controlled

More information

NEC's HIGH CMR, 10 Mbps OPEN COLLECTOR OUTPUT TYPE 8-PIN SSOP (SO-8) HIGH-SPEED OPTOCOUPLER

NEC's HIGH CMR, 10 Mbps OPEN COLLECTOR OUTPUT TYPE 8-PIN SSOP (SO-8) HIGH-SPEED OPTOCOUPLER NEC's HIGH CMR, 1 Mbps OPEN COLLECTOR OUTPUT TYPE 8-PIN SSOP (SO-8) HIGH-SPEED OPTOCOUPLER PS9814-1,-2 DESCRIPTION NEC's PS9814-1 and PS9814-2 are active-low type highspeed optocouplers that use a GaAlAs

More information

EEL 4744C: Microprocessor Applications. Lecture 9. Part 2. M68HC12 Serial I/O. Dr. Tao Li 1

EEL 4744C: Microprocessor Applications. Lecture 9. Part 2. M68HC12 Serial I/O. Dr. Tao Li 1 EEL 4744C: Microprocessor Applications Lecture 9 Part 2 M68HC12 Serial I/O Dr. Tao Li 1 Reading Assignment Software and Hardware Engineering (new version): Chapter 15 SHE (old version): Chapter 11 HC12

More information

Infrared Receiver Module IRM-36xxM Series

Infrared Receiver Module IRM-36xxM Series Block Diagram Pin Configuration 1 2 3 1. OUT 2. GND 3. Vcc Features High protection ability against EMI Circular lens for improved reception characteristics Available for various carrier frequencies Min

More information

ILI2117 Capacitive Touch Controller

ILI2117 Capacitive Touch Controller ILI2117 ILI2117 Capacitive Touch Controller Datasheet Version: V1.01 Release Date: SEP. 09,2015 ILI TECHNOLOGY CORP. 8F, No.38, Taiyuan St., Jhubei City, Hsinchu County 302, Taiwan, R.O.C Tel.886-3-5600099;

More information

RF4463F30 High Power wireless transceiver module

RF4463F30 High Power wireless transceiver module RF4463F30 High Power wireless transceiver module 1. Description RF4463F30 adopts Silicon Lab Si4463 RF chip, which is a highly integrated wireless ISM band transceiver chip. Extremely high receive sensitivity

More information

HT9200A HT9200A-8DIP DTMF GENERATOR HT9200B HT9200B-14SOP DTMF GENERATOR. Remote control & communications

HT9200A HT9200A-8DIP DTMF GENERATOR HT9200B HT9200B-14SOP DTMF GENERATOR. Remote control & communications DATA SHEET Remote control & communications Order code Manufacturer code Description 82-4082 HT9200A HT9200A-8DIP DTMF GENERATOR 82-4084 HT9200B HT9200B-14SOP DTMF GENERATOR Remote control & communications

More information

Electronics Design Laboratory Lecture #10. ECEN 2270 Electronics Design Laboratory

Electronics Design Laboratory Lecture #10. ECEN 2270 Electronics Design Laboratory Electronics Design Laboratory Lecture #10 Electronics Design Laboratory 1 Lessons from Experiment 4 Code debugging: use print statements and serial monitor window Circuit debugging: Re check operation

More information

Using a Sharp GP2D12 Infrared Ranger with BasicX

Using a Sharp GP2D12 Infrared Ranger with BasicX Basic Express Application Note Using a Sharp GP2D12 Infrared Ranger with BasicX Introduction The Sharp GP2D12 infrared ranger is able to continuously measure the distance to an object. The usable range

More information

RF4432 wireless transceiver module

RF4432 wireless transceiver module 1. Description www.nicerf.com RF4432 RF4432 wireless transceiver module RF4432 adopts Silicon Lab Si4432 RF chip, which is a highly integrated wireless ISM band transceiver. The features of high sensitivity

More information

Page 1. Midterm #2. OpAmp Review. Inverting & Non-inverting Circuits CS/ECE 6780/5780. Al Davis. Almost ubiquitous analog circuit element since ~1968

Page 1. Midterm #2. OpAmp Review. Inverting & Non-inverting Circuits CS/ECE 6780/5780. Al Davis. Almost ubiquitous analog circuit element since ~1968 Midterm #2 Midterm 2 hints CS/ECE 6780/5780 Al Davis Today s topics: no practice midterm since it didn t help last time ADC s and DAC s chapter 11 of your text your kit has an A/D (Port D w/ DDR set to

More information

802.11g Wireless Sensor Network Modules

802.11g Wireless Sensor Network Modules RFMProducts are now Murata Products Small Size, Integral Antenna, Light Weight, Low Cost 7.5 µa Sleep Current Supports Battery Operation Timer and Event Triggered Auto-reporting Capability Analog, Digital,

More information

PIC Functionality. General I/O Dedicated Interrupt Change State Interrupt Input Capture Output Compare PWM ADC RS232

PIC Functionality. General I/O Dedicated Interrupt Change State Interrupt Input Capture Output Compare PWM ADC RS232 PIC Functionality General I/O Dedicated Interrupt Change State Interrupt Input Capture Output Compare PWM ADC RS232 General I/O Logic Output light LEDs Trigger solenoids Transfer data Logic Input Monitor

More information

Microcontrollers and Interfacing

Microcontrollers and Interfacing Microcontrollers and Interfacing Week 07 digital input, debouncing, interrupts and concurrency College of Information Science and Engineering Ritsumeikan University 1 this week digital input push-button

More information

DEPARTMENT OF ELECTRICAL ENGINEERING LAB WORK EE301 ELECTRONIC CIRCUITS

DEPARTMENT OF ELECTRICAL ENGINEERING LAB WORK EE301 ELECTRONIC CIRCUITS DEPARTMENT OF ELECTRICAL ENGINEERING LAB WORK EE301 ELECTRONIC CIRCUITS EXPERIMENT : 4 TITLE : 555 TIMERS OUTCOME : Upon completion of this unit, the student should be able to: 1. gain experience with

More information

TD_485 Transceiver Modules Application Guide 2017

TD_485 Transceiver Modules Application Guide 2017 TD_485 Transceiver Modules Application Guide 2017 1. RS485 basic knowledge... 2 1.1. RS485 BUS basic Characteristics... 2 1.2. RS485 Transmission Distance... 2 1.3. RS485 bus connection and termination

More information

CoolEx User Manual 2008 XDIMAX LTD. Revision 1.0

CoolEx User Manual 2008 XDIMAX LTD. Revision 1.0 CoolEx User Manual Revision 1.0 2 CoolEx User Manual Table of Contents Foreword 0 Part I Overview 3 Part II Configuration and Setup 4 1 Terminals Layout... 4 2 Modbus Address... Switch 4 Part III Functional

More information

FEATURES DESCRIPTION APPLICATIONS BLOCK DIAGRAM. PT2262 Remote Control Encoder

FEATURES DESCRIPTION APPLICATIONS BLOCK DIAGRAM. PT2262 Remote Control Encoder Remote Control Encoder DESCRIPTION PT2262 is a remote control encoder paired with PT2272 utilizing CMOS Technology. It encodes data and address pins into a serial coded waveform suitable for RF or IR modulation.

More information

DIGITAL CLOCK DATASHEET

DIGITAL CLOCK DATASHEET DATASHEET Georgios Charitos (gc2662) Srinidhi Srinivasan (ss4674) SPRING 2016 Prof. Peter Kinget Table of Contents 1)Features.. 2 2)Description.... 2 3)PIN Configuration. 3 4)Block Diagram & PIN Functions....

More information

ArduCAM USB Camera Shield

ArduCAM USB Camera Shield ArduCAM USB Camera Shield Application Note for MT9V034 Rev 1.0, June 2017 Table of Contents 1 Introduction... 2 2 Hardware Installation... 2 3 Run the Demo... 3 4 Tune the Sensor Registers... 4 4.1 Identify

More information

ST8016. Datasheet. 160 Output LCD Common/ Segment Driver IC. Version /05/25. Crystalfontz

ST8016. Datasheet. 160 Output LCD Common/ Segment Driver IC. Version /05/25. Crystalfontz Crystalfontz Thiscontrolerdatasheetwasdownloadedfrom htp:/www.crystalfontz.com/controlers/ 160 Output LCD Common/ Segment Driver IC Datasheet Version 1.9 2007/05/25 Note: Sitronix Technology Corp. reserves

More information

DNT90MCA DNT90MPA. Low Cost 900 MHz FHSS Transceiver Modules with I/O

DNT90MCA DNT90MPA. Low Cost 900 MHz FHSS Transceiver Modules with I/O - 900 MHz Frequency Hopping Spread Spectrum Transceivers - Direct Peer-to-peer Low Latency Communication - Transmitter Power Configurable to 40 or 158 mw - Built-in 0 dbi Chip Antenna - 100 kbps RF Data

More information

CHIP DESCRIPTION & TEST SPECIFICATIONS

CHIP DESCRIPTION & TEST SPECIFICATIONS CHIP DESCRIPTION & TEST SPECIFICATIONS Chip description The integrated circuit has been designed using BYE technology (BiCMOS 0.8 µm) as from HIT-KIT v3.10. Die area is 2.5x2.5mm 2 and it has to be housed

More information

ANGULAR POSITION CONTROL OF DC MOTOR USING SHORTEST PATH ALGORITHM

ANGULAR POSITION CONTROL OF DC MOTOR USING SHORTEST PATH ALGORITHM EE 712 Embedded Systems Design, Lab Project Report, EE Dept. IIT Bombay, April 2006. ANGULAR POSITION CONTROL OF DC MOTOR USING SHORTEST PATH ALGORITHM Group Number: 17 Rupesh Sonu Kakade (05323014)

More information

FEATURES DESCRIPTION APPLICATIONS BLOCK DIAGRAM. PT2272 Remote Control Decoder

FEATURES DESCRIPTION APPLICATIONS BLOCK DIAGRAM. PT2272 Remote Control Decoder Remote Control Decoder DESCRIPTION PT2272 is a remote control decoder paired with PT2262 utilizing CMOS Technology. It has 12-bit of tri-state address pins providing a maximum of 531,441 (or 312) address

More information

HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 HT1627 HT16270 COM

HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 HT1627 HT16270 COM RAM Mapping 48 16 LCD Controller for I/O µc LCD Controller Product Line Selection Table HT162X HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 HT1627 HT16270 COM 4 4 8 8 8 81 16 16 16 SEG 32 32 32 32

More information

In this lab, you ll build and program a meter that measures voltage, current, power, and energy at DC and AC.

In this lab, you ll build and program a meter that measures voltage, current, power, and energy at DC and AC. EE 155/255 Lab #2 Revision 1, October 5, 2017 Lab2: Energy Meter In this lab, you ll build and program a meter that measures voltage, current, power, and energy at DC and AC. Assigned: October 2, 2017

More information

Introduction. Theory of Operation

Introduction. Theory of Operation Mohan Rokkam Page 1 12/15/2004 Introduction The goal of our project is to design and build an automated shopping cart that follows a shopper around. Ultrasonic waves are used due to the slower speed of

More information

DARK ACTIVATED COLOUR CHANGING NIGHT LIGHT KIT

DARK ACTIVATED COLOUR CHANGING NIGHT LIGHT KIT TEACHING RESOURCES SCHEMES OF WORK DEVELOPING A SPECIFICATION COMPONENT FACTSHEETS HOW TO SOLDER GUIDE CREATE SOOTHING LIGHTING EFFECTS WITH THIS DARK ACTIVATED COLOUR CHANGING NIGHT LIGHT KIT Version

More information