Embedded Systems and Software

Size: px
Start display at page:

Download "Embedded Systems and Software"

Transcription

1 Embedded Systems and Software Notes on Lab 2 Embedded Systems in Vehicles Lecture 2-4, Slide 1

2 Lab 02 In this lab students implement an interval timer using a pushbutton switch, ATtiny45, an LED driver, and two seven-segment displays When the user presses the button, the microcontroller start counting from 0 to 9.9 in 100 ms intervals. When the user presses the button again, the counter stops. ATtiny45 Pushbutton Switch LED Driver If there is an overflow (user wait longer than 9.9 s), the display should show 9.9 and flash once per second. Lecture 2-4, Slide 2

3 Seven Segment Displays Each of the seven segments and the decimal point is a LED By turning a subset of the LEDs on, one can display the numbers 0 9 and some letters as well Segments Decimal Point These displays are sold in single- or multiple character units. They come in all shapes and sizes Other variations include multiple decimal points, colons, + and signs etc. Lecture 2-4, Slide 3

4 Common Anode, Common Cathode Each segments and the decimal point is an LED Most of these displays connect either all the cathodes or all the anodes together. They are called Common Anode or Common Cathode displays Lecture 2-4, Slide 4

5 Driving a Seven Segment Display Common Anode Pulling a line low turns the corresponding segment on Lecture 2-4, Slide 5

6 Driving a Seven Segment Display Common Anode Lecture 2-4, Slide 6

7 Driving a Seven Segment Display Common Anode Lecture 2-4, Slide 7

8 Driving a Seven Segment Display Common Anode Turn on multiple LEDs to create the desired number Lecture 2-4, Slide 8

9 Issues #1 Too manly Lines Common Anode To drive the display directly from a microcontroller means we need 8 lines per seven segment module This will quickly deplete the number I/O pins on a microcontroller Turn on multiple LEDs to create the desired number Lecture 2-4, Slide 9

10 Issues #2 LED Temperature and Aging Effects Common Anode An LED s forward bias voltage is a function of ambient temperature With resistors, this means the current and therefore the brightness depends on temperature Lecture 2-4, Slide 10

11 LED Driver ICs To address the issues with the simplistic driving of displays and LEDs in general, several companies market special LED drivers ICs. A bit pattern is shifted in on the DATA line Current sources/sinks ensure LED current does not change with temperature SDI CLK OE Control lines latch the data and turn on the current sources The data is also shifted out so that one can put several IC in series Lecture 2-4, Slide 11

12 Adding More Displays SDI SDI CLK OE1 CLK OE2 To add another display, we need just one more line In operation, shift the desired 16-bit pattern in, and turn on the drivers. We control individual modules with their Output Enable (OE) lines Lecture 2-4, Slide 12

13 Adding More Displays - Alternative Method SDI SDI CLK OE1 CLK OE2 All displays use the same control lines In operation, shift the desired 16-bit pattern in, and turn on the drivers. We control individual modules with by shifting in the proper bit pattern Lecture 2-4, Slide 13

14 The TLC5916IN LED Driver Overview To use the IC successfully, you have to read the data sheet. In the next few slides we give an overview. Lecture 2-4, Slide 14

15 The TLC5916IN LED Driver Overview VV CCCC (5 V) II OOOOOO = RR EEEEEE Serial Data In Clock Latch Enable VV CCCC TLC5916IN Serial Data Out ~OE This notation is the same as OE Lecture 2-4, Slide 15

16 Notation A bar above a pin means that the pin is active low For an output pin, then means the pin will be pulled low when it is activated For an input pin, it means it must be pulled to perform its function VV CCCC Output drivers are turned on when OE is pulled low Sometimes this is written as ~OE LEDs turn on when output pins are pulled low Lecture 2-4, Slide 16

17 Cascading TLC5916IN LED Design RR for 10 ma For this lab, cascade two drivers is this fashion. This means you will need 4 output lines and 1 input line. Lecture 2-4, Slide 17

18 The LDS-A514RI Display Pin 10 Pin 6 Pin 10 Pin1 Pin 5 Pin1 Pin 5 Lecture 2-4, Slide 18

19 The LDS-A514RI Display Mapping from pin numbers to segments Lecture 2-4, Slide 19

20 The LDS-A514RI Display Be sure not to exceed maximum ratings. For the lab, design the LED driver so that each segment gets 10 ma Lecture 2-4, Slide 20

21 Assigning ATtiny45 Pins We need 4 control lines and one input line. However, here is the status of the development board: Reset Line VV CCCC (5 V) These are used by the ISP programmer when it downloads code Question - what is ISP? Seems like we don t have enough pins. This is a typical constraint in embedded systems The game plan is to disable disconnect the crystal and that frees up two pins. If we are careful, we can also use the ISP lines. Lecture 2-4, Slide 21

22 Use ATtiny45 s Internal RC Oscillator These jumpers connect the crystal to the microcontroller We want to use the internal RC oscillator so that can use PB3 and PB4 for controlling the LED drivers Thus, we must first configure the Attiny45 to use the internal oscillator and then remove these jumpers. If you remove the jumpers first then ATtiny45 has no clock and will not run Lecture 2-4, Slide 22

23 Microcontroller Configuration/Fuses Set this to the internal RC oscillator Lecture 2-4, Slide 23

24 Using the ISP Lines Reset Line VV CCCC (5 V) These are used by the ISP programmer when it downloads code Reset Line VV CCCC (5 V) Insert 4.7K resistors to avoid your hardware conflicts with programming. Note that this may not be needed if the pins are uses as output only. Lecture 2-4, Slide 24

25 Testing Status of an I/O PIN chk: down:... cbi DDRB,3 ; Make PB3 input sbis PINB,3 ; See if PB3 is set (high) rjmp down ; No, PB3 is low => switch down => continue rjmp chk ; Yes, PB3 is high, wait some more... This instruction tests a single bit in an I/O register and skips the next instruction if the bit is set. Pullup resistor. Value not critical, 4.7K 100K VV CCCC (5 V) Lecture 2-4, Slide 25

26 Testing Status of an I/O PIN VV CCCC (5 V)... cbi DDRB,3... sbis PINB,3... For input use PINB, not PORTB... cbi DDRB,3... sbic PINB,3... Also, there is a companion instruction SBIC (Skip next instruction if bit in I/O is Clear) You could use either SBIS or SBIC in a loop to test if the pushbutton switch has been pressed Lecture 2-4, Slide 26

27 Switch Bounce and Debouncing Bounce ~ 5 ms Lecture 2-4, Slide 27

28 Switch Bounce and Debouncing When the switch closes, the capacitor discharges through Rb Voltage t Question: what is the fall time? Make sure you can calculate this. Lecture 2-4, Slide 28

29 Software Debounce One idea. Sample n times at regular intervals, say 10 ms apart. Count how many times the switch is zero. In this is larger than the number of times the switch is high, consider the switch pressed. char ispressed(void) { char ones=0, zeroes=0, i; } for(i=0;i<=10-1;i++){ if(pina&0x01){ // read pin == 1 ones++; } else { // read pin == 0 zeroes++; } _delay_ms(10); } return (ones > zeroes); We will use software debounce later in the course. For now, use hardware debounce Lecture 2-4, Slide 29

30 Which PIN to Use? There are 3 available PINs for use as switch input: PINB0, PINB1, PINB2. Which one should you use? These are used by the programmer when it downloads code, so adding a debounce capacitor may interfere. You may have to experiment which PIN works best as an input pin. Consider using PB3 for the pushbutton switch. Lecture 2-4, Slide 30

31 More on TLC5916 Operation Diagram extracted from TLC5916 data sheet LEDs turn on when output pins are pulled low Lecture 2-4, Slide 31

32 More on TLC5916 Operation Hold OE (drivers are off) Lecture 2-4, Slide 32

33 More on TLC5916 Operation Hold OE (drivers are off) Latch Enable (LE) is low Lecture 2-4, Slide 33

34 More on TLC5916 Operation Hold OE (drivers are off) Latch Enable (LE) is low Place bit on SDI line Make CLK go low high to clock data in Lecture 2-4, Slide 34

35 More on TLC5916 Operation Hold OE (drivers are off) Latch Enable (LE) is low Place bit on SDI line Make CLK go low high to clock data in Once the number of bits are clocked in, pulse LE Latch data Lecture 2-4, Slide 35

36 More on TLC5916 Operation ~OE Hold OE (drivers are off) Latch Enable (LE) is low Place bit on SDI line Make CLK go low high to clock data in Once the number of bits are clocked in, pulse LE Finally, pull OE low. While OE is low output drivers are on and LEDs light up Lecture 2-4, Slide 36

37 More on TLC5916 Operation Hold OE (drivers are off) Latch Enable (LE) is low Place bit on SDI line Make CLK go low high to clock data in Once the number of bits are clocked in, pulse LE Finally, pull OE low. While OE is low output drivers are on and LEDs light up Lecture 2-4, Slide 37

38 More on TLC5916 Operation Diagram extracted from TLC5916 data sheet ~OE LEDs turn on when output pins are pulled low 1 Latch data Lecture 2-4, Slide 38

39 Timing diagram from data sheet With a 8-MHz clock, a clock cycle is 125 ns Lecture 2-4, Slide 39

40 tt WW CLK Clock Pulse Duration (tt ww CLK ) tt WW CLK < 1 8 MHz Lecture 2-4, Slide 40

41 tt WW CLK SDI Setup Time (tt ssss D ) tt SSSS D tt ssss D < 1 8 MHz Lecture 2-4, Slide 41

42 tt WW CLK SDI Hold Time (tt h D ) tt h D tt h D < 1 8 MHz Lecture 2-4, Slide 42

43 ~OE Pulse Width (tt WW OE ) tt WW OE tt h D tt ww OOOO > 1 8 MHz Lecture 2-4, Slide 43

44 Note that, in general, timing values depend on power supply values, and often on temperature as well Lecture 2-4, Slide 44

45 Lecture 2-4, Slide 45

Embedded Systems and Software. Rotary Pulse Generators

Embedded Systems and Software. Rotary Pulse Generators Embedded Systems and Software Rotary Pulse Generators Slide 1 What Is An RPG? RPG = Rocket Propelled Grenade RPG = Rotary Pulse Generator Slide 2 Rotary Encoders Switch Switch Output Quadrature output

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

HT162X HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 COM

HT162X HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 COM RAM Mapping 328 LCD Controller for I/O C Features Operating voltage: 2.7V~5.2V Built-in RC oscillator 1/4 bias, 1/8 duty, frame frequency is 64Hz Max. 328 patterns, 8 commons, 32 segments Built-in internal

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

Switch/ Jumper Table 1-1: Factory Settings Factory Settings (Jumpers Installed) Function Controlled Activates pull-up/ pull-down resistors on Port 0 digital P7 I/O lines Activates pull-up/ pull-down resistors

More information

ELCT 912: Advanced Embedded Systems

ELCT 912: Advanced Embedded Systems ELCT 912: Advanced Embedded Systems Lecture 5: PIC Peripherals on Chip Dr. Mohamed Abd El Ghany, Department of Electronics and Electrical Engineering The PIC Family: Peripherals Different PICs have different

More information

HT162X HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 COM

HT162X HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 COM RAM Mapping 328 LCD Controller for I/O MCU PATENTED PAT No. : 099352 Technical Document Application Note Features Operating voltage: 2.7V~5.2V Built-in RC oscillator 1/4 bias, 1/8 duty, frame frequency

More information

Built-in LCD display RAM Built-in RC oscillator

Built-in LCD display RAM Built-in RC oscillator PAT No. : TW 099352 RAM Mapping 488 LCD Controller for I/O MCU Technical Document Application Note Features Operating voltage: 2.7V~5.2V Built-in LCD display RAM Built-in RC oscillator R/W address auto

More information

ELG3331: Digital Tachometer Introduction to Mechatronics by DG Alciatore and M B Histand

ELG3331: Digital Tachometer Introduction to Mechatronics by DG Alciatore and M B Histand ELG333: Digital Tachometer Introduction to Mechatronics by DG Alciatore and M B Histand Our objective is to design a system to measure and the rotational speed of a shaft. A simple method to measure rotational

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

Block Diagram , E I F = O 4 ) + J H 6 E E C + E H? K E J +,, H E L A H * E = I + E H? K E J + + % 8,, % 8 +, * * 6 A. H A G K A? O

Block Diagram , E I F = O 4 ) + J H 6 E E C + E H? K E J +,, H E L A H * E = I + E H? K E J + + % 8,, % 8 +, * * 6 A. H A G K A? O PAT No. : 099352 RAM Mapping 488 LCD Controller for I/O MCU Technical Document Application Note Features Operating voltage: 2.7V~5.2V Built-in LCD display RAM Built-in RC oscillator R/W address auto increment

More information

PATENTED. PAT No. : HT1622/HT1622G RAM Mapping 32 8 LCD Controller for I/O MCU. Features. General Description.

PATENTED. PAT No. : HT1622/HT1622G RAM Mapping 32 8 LCD Controller for I/O MCU. Features. General Description. RAM Mapping 328 LCD Controller for I/O MCU PATENTED PAT No. : 099352 Features Operating voltage: 2.7V~5.2V Built-in RC oscillator 1/4 bias, 1/8 duty, frame frequency is 64Hz Max. 328 patterns, 8 commons,

More information

HT162X HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 HT1627 HT16270 COM

HT162X HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 HT1627 HT16270 COM RAM Mapping 328 LCD Controller for I/O C Features Operating voltage: 2.7V~5.2V Built-in RC oscillator 1/4 bias, 1/8 duty, frame frequency is 64Hz Max. 328 patterns, 8 commons, 32 segments Built-in internal

More information

PAK-VIIIa Pulse Coprocessor Data Sheet by AWC

PAK-VIIIa Pulse Coprocessor Data Sheet by AWC PAK-VIIIa Pulse Coprocessor Data Sheet 2000-2003 by AWC AWC 310 Ivy Glen League City, TX 77573 (281) 334-4341 http://www.al-williams.com/awce.htm V1.6 30 Aug 2003 Table of Contents Overview...1 If You

More information

EE283 Electrical Measurement Laboratory Laboratory Exercise #7: Digital Counter

EE283 Electrical Measurement Laboratory Laboratory Exercise #7: Digital Counter EE283 Electrical Measurement Laboratory Laboratory Exercise #7: al Counter Objectives: 1. To familiarize students with sequential digital circuits. 2. To show how digital devices can be used for measurement

More information

R/W address auto increment External Crystal kHz oscillator

R/W address auto increment External Crystal kHz oscillator RAM Mapping 328 LCD Controller for I/O MCU PATENTED PAT No. : 099352 Features Operating voltage: 2.7V~5.2V R/W address auto increment External Crystal 32.768kHz oscillator Two selectable buzzer frequencies

More information

PATENTED. PAT No. : HT1622/HT1622G RAM Mapping 32 8 LCD Controller for I/O MCU. Features. General Description.

PATENTED. PAT No. : HT1622/HT1622G RAM Mapping 32 8 LCD Controller for I/O MCU. Features. General Description. RAM Mapping 328 LCD Controller for I/O MCU PATENTED PAT No. : 099352 Features Operating voltage: 2.7V~5.2V Built-in RC oscillator 1/4 bias, 1/8 duty, frame frequency is 64Hz Max. 328 patterns, 8 commons,

More information

Houngninou 2. Abstract

Houngninou 2. Abstract Houngninou 2 Abstract The project consists of designing and building a system that monitors the phase of two pulses A and B. Three colored LEDs are used to identify the phase comparison. When the rising

More information

MBI5051/MBI5052/MBI5053 Application Note

MBI5051/MBI5052/MBI5053 Application Note MBI5051/MBI5052/MBI5053 Application Note Forward MBI5051/52/53 uses the embedded Pulse Width Modulation (PWM) to control D current. In contrast to the traditional D driver uses an external PWM signal to

More information

3.3V regulator. JA H-bridge. Doc: page 1 of 7

3.3V regulator. JA H-bridge. Doc: page 1 of 7 Cerebot Reference Manual Revision: February 9, 2009 Note: This document applies to REV B-E of the board. www.digilentinc.com 215 E Main Suite D Pullman, WA 99163 (509) 334 6306 Voice and Fax Overview The

More information

RAM Mapping 32 8 LCD Controller for I/O MCU. R/W address auto increment Built-in RC oscillator

RAM Mapping 32 8 LCD Controller for I/O MCU. R/W address auto increment Built-in RC oscillator RAM Mapping 328 LCD Controller for I/O MCU Features Operating voltage: 2.7V~5.2V R/W address auto increment Built-in RC oscillator Two selectable buzzer frequencies (2kHz or 4kHz) 1/4 bias, 1/8 duty, frame

More information

MM74C925 MM74C926 MM74C927 MM74C928 4-Digit Counters with Multiplexed 7-Segment Output Drivers

MM74C925 MM74C926 MM74C927 MM74C928 4-Digit Counters with Multiplexed 7-Segment Output Drivers October 1987 Revised January 1999 MM74C925 MM74C926 MM74C927 MM74C928 4-Digit Counters with Multiplexed 7-Segment Output Drivers General Description The MM74C925, MM74C926, MM74C927 and MM74C928 CMOS counters

More information

A MORON'S GUIDE TO TIMER/COUNTERS v2.2. by

A MORON'S GUIDE TO TIMER/COUNTERS v2.2. by A MORON'S GUIDE TO TIMER/COUNTERS v2.2 by RetroDan@GMail.com TABLE OF CONTENTS: 1. THE PAUSE ROUTINE 2. WAIT-FOR-TIMER "NORMAL" MODE 3. WAIT-FOR-TIMER "NORMAL" MODE (Modified) 4. THE TIMER-COMPARE METHOD

More information

HT162X HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 COM

HT162X HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 COM RAM Mapping 324 LCD Controller for I/O C Features Logic operating voltage: 2.4V~3.3V LCD voltage: 3.6V~4.9V Low operating current

More information

PAiA 4780 Twelve Stage Analog Sequencer Design Analysis Originally published 1974

PAiA 4780 Twelve Stage Analog Sequencer Design Analysis Originally published 1974 PAiA 4780 Twelve Stage Analog Sequencer Design Analysis Originally published 1974 DESIGN ANALYSIS: CLOCK As is shown in the block diagram of the sequencer (fig. 1) and the schematic (fig. 2), the clock

More information

RAM Mapping 48 8 LCD Controller for I/O C

RAM Mapping 48 8 LCD Controller for I/O C RAM Mapping 488 LCD Controller for I/O C Features Operating voltage: 2.7V~5.2V Built-in RC oscillator External 32.768kHz crystal or 32kHz frequency source input 1/4 bias, 1/8 duty, frame frequency is 64Hz

More information

RAM Mapping 48 8 LCD Controller for I/O MCU. Built-in LCD display RAM Built-in RC oscillator

RAM Mapping 48 8 LCD Controller for I/O MCU. Built-in LCD display RAM Built-in RC oscillator RAM Mapping 488 LCD Controller for I/O MCU Features Operating voltage: 2.7V~5.2V Built-in LCD display RAM Built-in RC oscillator R/W address auto increment External 32.768kHz crystal or 32kHz frequency

More information

Crystalfontz. RAM Mapping 64 8 LCD Controller for I/O MCU. Built-in LCD display RAM Built-in RC oscillator

Crystalfontz. RAM Mapping 64 8 LCD Controller for I/O MCU. Built-in LCD display RAM Built-in RC oscillator Crystalfontz Thiscontrolerdatasheetwasdownloadedfrom htp:/www.crystalfontz.com/controlers/ HT1625 RAM Mapping 648 LCD Controller for I/O MCU Features Operating voltage: 2.7V~5.2V Built-in LCD display RAM

More information

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

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

More information

Built-in LCD display RAM Built-in RC oscillator

Built-in LCD display RAM Built-in RC oscillator PAT No. : TW 099352 RAM Mapping 488 LCD Controller for I/O MCU Technical Document Application Note Features Operating voltage: 2.7V~5.2V Built-in LCD display RAM Built-in RC oscillator R/W address auto

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

IZ602 LCD DRIVER Main features: Table 1 Pad description Pad No Pad Name Function

IZ602 LCD DRIVER Main features: Table 1 Pad description Pad No Pad Name Function LCD DRIVER The IZ602 is universal LCD controller designed to drive LCD with image element up to 128 (32x4). Instruction set makes IZ602 universal and suitable for applications with different types of displays.

More information

Counter/Timers in the Mega8

Counter/Timers in the Mega8 Counter/Timers in the Mega8 The mega8 incorporates three counter/timer devices. These can: Be used to count the number of events that have occurred (either external or internal) Act as a clock Trigger

More information

RAM Mapping LCD Controller for I/O MCU. Built-in LCD display RAM Built-in RC oscillator

RAM Mapping LCD Controller for I/O MCU. Built-in LCD display RAM Built-in RC oscillator PAT No. : 099352 RAM Mapping 4816 LCD Controller for I/O MCU Technical Document Application Note Features Operating voltage: 2.7V~5.2V Built-in LCD display RAM Built-in RC oscillator R/W address auto increment

More information

Sequential Logic Circuits

Sequential Logic Circuits Exercise 2 Sequential Logic Circuits 1 - Introduction Goal of the exercise The goals of this exercise are: - verify the behavior of simple sequential logic circuits; - measure the dynamic parameters of

More information

Lab Exercise 6: Digital/Analog conversion

Lab Exercise 6: Digital/Analog conversion Lab Exercise 6: Digital/Analog conversion Introduction In this lab exercise, you will study circuits for analog-to-digital and digital-to-analog conversion Preparation Before arriving at the lab, you should

More information

8-bit Microcontroller with 2/4/8K Bytes In-System Programmable Flash. ATtiny24/44/84. Preliminary

8-bit Microcontroller with 2/4/8K Bytes In-System Programmable Flash. ATtiny24/44/84. Preliminary Features High Performance, Low Power AVR 8-Bit Microcontroller Advanced RISC Architecture 120 Powerful Instructions Most Single Clock Cycle Execution 32 x 8 General Purpose Working Registers Fully Static

More information

Macroblcok MBI5042 Application Note-VB.01-EN

Macroblcok MBI5042 Application Note-VB.01-EN MBI5042 Application Note (The article is suitable for the IC whose version code is B and datasheet version is VB.0X) Forward MBI5042 uses the embedded PWM signal to control grayscale output and LED current.

More information

Controlling DC Brush Motor using MD10B or MD30B. Version 1.2. Aug Cytron Technologies Sdn. Bhd.

Controlling DC Brush Motor using MD10B or MD30B. Version 1.2. Aug Cytron Technologies Sdn. Bhd. PR10 Controlling DC Brush Motor using MD10B or MD30B Version 1.2 Aug 2008 Cytron Technologies Sdn. Bhd. Information contained in this publication regarding device applications and the like is intended

More information

Design Consideration with AP3041

Design Consideration with AP3041 Design Consideration with AP3041 Application Note 1059 Prepared by Yong Wang System Engineering Dept. 1. Introduction The AP3041 is a current-mode, high-voltage low-side channel MOSFET controller, which

More information

High performance, low power AVR 8-bit microcontroller Advanced RISC architecture. Non-volatile program and data memories. Peripheral features

High performance, low power AVR 8-bit microcontroller Advanced RISC architecture. Non-volatile program and data memories. Peripheral features ATtiny24/44/84 8-bit AVR Microcontroller with 2/4/8K Bytes In-System Programmable Flash DATASHEET Features High performance, low power AVR 8-bit microcontroller Advanced RISC architecture 120 powerful

More information

EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Lab Timer: Blinking LED Lights and Pulse Generator

EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Lab Timer: Blinking LED Lights and Pulse Generator EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Lab 9 555 Timer: Blinking LED Lights and Pulse Generator In many digital and analog circuits it is necessary to create a clock

More information

RAM Mapping 64 8 LCD Controller for I/O MCU. Built-in LCD display RAM Built-in RC oscillator

RAM Mapping 64 8 LCD Controller for I/O MCU. Built-in LCD display RAM Built-in RC oscillator RAM Mapping 648 LCD Controller for I/O MCU PATENTED PAT No. : 099352 Technical Document Application Note Features Operating voltage: 2.7V~5.2V Built-in LCD display RAM Built-in RC oscillator R/W address

More information

MAKEVMA502 BASIC DIY KIT WITH ATMEGA2560 FOR ARDUINO USER MANUAL

MAKEVMA502 BASIC DIY KIT WITH ATMEGA2560 FOR ARDUINO USER MANUAL BASIC DIY KIT WITH ATMEGA2560 FOR ARDUINO USER MANUAL USER MANUAL 1. Introduction To all residents of the European Union Important environmental information about this product This symbol on the device

More information

HT1621. HT1621 RAM Mapping 32x4 LCD Controller for I/O MCU

HT1621. HT1621 RAM Mapping 32x4 LCD Controller for I/O MCU HT1621 RAM Mapping 32x4 LCD Controller for I/O MCU Features Operating voltage: 2.4V ~ 5.2V Built-in 256kHz RC oscillator External 32.768kHz crystal or 256 khz frequency source input Selection of 1/2 or

More information

Four Channel Inductive Loop Detector

Four Channel Inductive Loop Detector Naztec Operations Manual For Four Channel Inductive Loop Detector Model 724/224 April 2003 Published by: Naztec, Inc. 820 Park Two Drive Sugar Land, Texas 77478 Phone: (281) 240-7233 Fax: (281) 240-7238

More information

MM74C925 MM74C926 4-Digit Counters with Multiplexed 7-Segment Output Drivers

MM74C925 MM74C926 4-Digit Counters with Multiplexed 7-Segment Output Drivers MM74C925 MM74C926 4-Digit Counters with Multiplexed 7-Segment Output Drivers General Description The MM74C925 and MM74C926 CMOS counters consist of a 4-digit counter, an internal output latch, NPN output

More information

PC-OSCILLOSCOPE PCS500. Analog and digital circuit sections. Description of the operation

PC-OSCILLOSCOPE PCS500. Analog and digital circuit sections. Description of the operation PC-OSCILLOSCOPE PCS500 Analog and digital circuit sections Description of the operation Operation of the analog section This description concerns only channel 1 (CH1) input stages. The operation of CH2

More information

RGB LED Cluster Driver Data sheet

RGB LED Cluster Driver Data sheet RGB LED Cluster Driver Data sheet 2013/12/17 3 channel 16 bit PWM Constant Current Driver Features 3 adjustable constant current sink channel 16 bit high resolution PWM output Built-in 60MHz PWM oscillator

More information

Training Schedule. Robotic System Design using Arduino Platform

Training Schedule. Robotic System Design using Arduino Platform Training Schedule Robotic System Design using Arduino Platform Session - 1 Embedded System Design Basics : Scope : To introduce Embedded Systems hardware design fundamentals to students. Processor Selection

More information

DATA SHEET. HEF4541B MSI Programmable timer. For a complete data sheet, please also download: INTEGRATED CIRCUITS

DATA SHEET. HEF4541B MSI Programmable timer. For a complete data sheet, please also download: INTEGRATED CIRCUITS INTEGRATED CIRCUITS DATA SHEET For a complete data sheet, please also download: The IC04 LOCMOS HE4000B Logic Family Specifications HEF, HEC The IC04 LOCMOS HE4000B Logic Package Outlines/Information HEF,

More information

Features OUT 34 VDD OUTPUT BUFFERS 35 LATCHES 35-BIT SHIFT REGISTER. Note 1: Pin 23 is Data Enable in MM5450 Pin 23 is Output 35 in MM5451

Features OUT 34 VDD OUTPUT BUFFERS 35 LATCHES 35-BIT SHIFT REGISTER. Note 1: Pin 23 is Data Enable in MM5450 Pin 23 is Output 35 in MM5451 LED Display Driver General Description The MM5450 and MM5451 LED display drivers are monolithic MOS IC s fabricated in an N-Channel, metalgate process. The technology produces low-threshold, enhancement-mode,

More information

8-bit Microcontroller with 2/4/8K Bytes In-System Programmable Flash. Atmel ATtiny24/44/84. Automotive. Preliminary

8-bit Microcontroller with 2/4/8K Bytes In-System Programmable Flash. Atmel ATtiny24/44/84. Automotive. Preliminary Features High Performance, Low Power AVR 8-bit Microcontroller Advanced RISC Architecture 120 Powerful Instructions Most Single Clock Cycle Execution 32 x 8 General Purpose Working Registers Fully Static

More information

Grundlagen Microcontroller Counter/Timer. Günther Gridling Bettina Weiss

Grundlagen Microcontroller Counter/Timer. Günther Gridling Bettina Weiss Grundlagen Microcontroller Counter/Timer Günther Gridling Bettina Weiss 1 Counter/Timer Lecture Overview Counter Timer Prescaler Input Capture Output Compare PWM 2 important feature of microcontroller

More information

EXAMINATION PAPER EMBEDDED SYSTEMS 6EJ005 UNIVERSITY OF DERBY. School of Computing and Technology DATE: SUMMER 2003 TIME ALLOWED: 2 HOURS

EXAMINATION PAPER EMBEDDED SYSTEMS 6EJ005 UNIVERSITY OF DERBY. School of Computing and Technology DATE: SUMMER 2003 TIME ALLOWED: 2 HOURS BSc/BSc (HONS) MUSIC TECHNOLOGY AND AUDIO SYSTEM DESIGN BSc/BSc (HONS) LIVE PERFORMANCE TECHNOLOGY BSc/BSc (HONS) ELECTRICAL AND ELECTRONIC ENGINEERING DATE: SUMMER 2003 TIME ALLOWED: 2 HOURS Instructions

More information

Flux Gate Musical Toy

Flux Gate Musical Toy FGM-3 Flux Gate Toy..... Flux Gate Musical Toy While this could be classed as a toy, it's also a very sensitive magnetic sensing project which has many other applications. The "toy" idea came up from the

More information

Laboratory 11. Pulse-Width-Modulation Motor Speed Control with a PIC

Laboratory 11. Pulse-Width-Modulation Motor Speed Control with a PIC Laboratory 11 Pulse-Width-Modulation Motor Speed Control with a PIC Required Components: 1 PIC16F88 18P-DIP microcontroller 3 0.1 F capacitors 1 12-button numeric keypad 1 NO pushbutton switch 1 Radio

More information

EE445L Fall 2014 Quiz 2B Page 1 of 5

EE445L Fall 2014 Quiz 2B Page 1 of 5 EE445L Fall 2014 Quiz 2B Page 1 of 5 Jonathan W. Valvano First: Last: November 21, 2014, 10:00-10:50am. Open book, open notes, calculator (no laptops, phones, devices with screens larger than a TI-89 calculator,

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

HT162X HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 COM

HT162X HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 COM Features Operating voltage: 2.4V~5.2V Built-in 256kHz RC oscillator External 32.768kHz crystal or 256kHz frequency source input Selection of 1/2 or1/3 bias, and selection of 1/2 or 1/3 or1/4 duty LCD applications

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

Linear Integrated Circuits

Linear Integrated Circuits Linear Integrated Circuits Single Slope ADC Comparator checks input voltage with integrated reference voltage, V REF At the same time the number of clock cycles is being counted. When the integrator output

More information

PHYS225 Lecture 18. Electronic Circuits

PHYS225 Lecture 18. Electronic Circuits PHYS225 Lecture 18 Electronic Circuits Oscillators and Timers Oscillators & Timers Produce timing signals to initiate measurement Periodic or single pulse Periodic output at known (controlled) frequency

More information

8-bit Microcontroller with 512/1024 Bytes In-System Programmable Flash. ATtiny4/5/9/10

8-bit Microcontroller with 512/1024 Bytes In-System Programmable Flash. ATtiny4/5/9/10 Features High Performance, Low Power AVR 8-Bit Microcontroller Advanced RISC Architecture 54 Powerful Instructions Most Single Clock Cycle Execution 16 x 8 General Purpose Working Registers Fully Static

More information

HT162X HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 COM

HT162X HT1620 HT1621 HT1622 HT16220 HT1623 HT1625 HT1626 COM RAM Mapping 324 LCD Controller for I/O C Features Operating voltage : 2.4V~5.2V Built-in 256kHz RC oscillator External 32.768kHz crystal or 256kHz frequency source input Selection of 1/2 or 1/3 bias, and

More information

EE445L Fall 2014 Quiz 2A Page 1 of 5

EE445L Fall 2014 Quiz 2A Page 1 of 5 EE445L Fall 2014 Quiz 2A Page 1 of 5 Jonathan W. Valvano First: Last: November 21, 2014, 10:00-10:50am. Open book, open notes, calculator (no laptops, phones, devices with screens larger than a TI-89 calculator,

More information

8-bit Microcontroller with 2/4/8K Bytes In-System Programmable Flash. ATtiny25/V * ATtiny45/V ATtiny85/V * * Preliminary

8-bit Microcontroller with 2/4/8K Bytes In-System Programmable Flash. ATtiny25/V * ATtiny45/V ATtiny85/V * * Preliminary Features High Performance, Low Power AVR 8-Bit Microcontroller Advanced RISC Architecture 120 Powerful Instructions Most Single Clock Cycle Execution 32 x 8 General Purpose Working Registers Fully Static

More information

SERIALLY PROGRAMMABLE CLOCK SOURCE. Features

SERIALLY PROGRAMMABLE CLOCK SOURCE. Features DATASHEET ICS307-02 Description The ICS307-02 is a versatile serially programmable clock source which takes up very little board space. It can generate any frequency from 6 to 200 MHz and have a second

More information

PAK-Vb/c PWM Coprocessor Data Sheet by AWC

PAK-Vb/c PWM Coprocessor Data Sheet by AWC PAK-Vb/c PWM Coprocessor Data Sheet 1998-2003 by AWC AWC 310 Ivy Glen League City, TX 77573 (281) 334-4341 http://www.al-williams.com/awce.htm V1.8 23 Oct 2003 Table of Contents Overview...1 If You Need

More information

Additional Programs for the Electronics Module Part No

Additional Programs for the Electronics Module Part No Additional Programs for the Electronics Module Part No. 5263 Contents:. Additional programs for the Electronics Module....2 Wiring of the inputs and outputs... 2.3 Additional programs for digital technology...

More information

Preliminary GL8211/11B

Preliminary GL8211/11B High Power Factor & Accuracy Constant Current LED Driver Features High Power Factor by One Cycle Control Accuracy Constant Current Low BOM Cost Linear Dimming on DIM Pin Average Current / Fixed Frequency

More information

Lab 5 Timer Module PWM ReadMeFirst

Lab 5 Timer Module PWM ReadMeFirst Lab 5 Timer Module PWM ReadMeFirst Lab Folder Content 1) ReadMeFirst 2) Interrupt Vector Table 3) Pin out Summary 4) DriverLib API 5) SineTable Overview In this lab, we are going to use the output hardware

More information

1 Second Time Base From Crystal Oscillator

1 Second Time Base From Crystal Oscillator 1 Second Time Base From Crystal Oscillator The schematic below illustrates dividing a crystal oscillator signal by the crystal frequency to obtain an accurate (0.01%) 1 second time base. Two cascaded 12

More information

MB1503. LOW-POWER PLL FREQUENCY SYNTHESIZER WITH POWER SAVE FUNCTION (1.1GHz) Sept Edition 1.0a DATA SHEET. Features

MB1503. LOW-POWER PLL FREQUENCY SYNTHESIZER WITH POWER SAVE FUNCTION (1.1GHz) Sept Edition 1.0a DATA SHEET. Features Sept. 1995 Edition 1.0a MB1503 DATA SHEET LOW-POWER PLL FREQUENCY SYNTHESIZER WITH POWER SAVE FUNCTION (1.1GHz) The Fujitsu MB1503 is a serial input phase-locked loop (PLL) frequency synthesizer with a

More information

Monitoring of Intravenous Drip Rate

Monitoring of Intravenous Drip Rate Monitoring of Intravenous Drip Rate Vidyadhar V. Kamble, Prem C. Pandey, Chandrashekar P. Gadgil, and Dinesh S. Choudhary Abstract A drip rate meter, for monitoring intravenous infusion, is developed using

More information

LM5034 High Voltage Dual Interleaved Current Mode Controller with Active Clamp

LM5034 High Voltage Dual Interleaved Current Mode Controller with Active Clamp High Voltage Dual Interleaved Current Mode Controller with Active Clamp General Description The dual current mode PWM controller contains all the features needed to control either two independent forward/active

More information

PICee Development System

PICee Development System PICee Development System a PICF-based single-board computer by Reinhardt Weber, DCZM weber.reinhardt@t-online.de This single-board computer, using the popular low-cost PICF microcontroller, has been developed

More information

JUMA-TRX2 DDS / Control Board description OH2NLT

JUMA-TRX2 DDS / Control Board description OH2NLT JUMA-TRX2 DDS / Control Board description OH2NLT 22.08.2007 General Key functions of the JUMA-TRX2 DDS / Control board are: - provide user interface functions with LCD display, buttons, potentiometers

More information

MICROPROCESSORS AND MICROCONTROLLER 1

MICROPROCESSORS AND MICROCONTROLLER 1 MICROPROCESSORS AND MICROCONTROLLER 1 Microprocessor Applications Data Acquisition System Data acquisition is the process of sampling signals that measure real world physical conditions ( such as temperature,

More information

DIY KIT 141. Multi-Mode Timer

DIY KIT 141. Multi-Mode Timer INTRODUCTION No one can call themselves an electronics hobbyist unless they have built a timer. There are many tens of designs using a variety of new and sometimes old circuits. Witness the longest surviving

More information

8-bit Microcontroller with 2/4/8K Bytes In-System Programmable Flash. ATtiny25/V ATtiny45/V ATtiny85/V. Preliminary

8-bit Microcontroller with 2/4/8K Bytes In-System Programmable Flash. ATtiny25/V ATtiny45/V ATtiny85/V. Preliminary Features High Performance, Low Power AVR 8-Bit Microcontroller Advanced RISC Architecture 120 Powerful Instructions Most Single Clock Cycle Execution 32 x 8 General Purpose Working Registers Fully Static

More information

Lesson 3: Arduino. Goals

Lesson 3: Arduino. Goals Introduction: This project introduces you to the wonderful world of Arduino and how to program physical devices. In this lesson you will learn how to write code and make an LED flash. Goals 1 - Get to

More information

ZKit-51-RD2, 8051 Development Kit

ZKit-51-RD2, 8051 Development Kit ZKit-51-RD2, 8051 Development Kit User Manual 1.1, June 2011 This work is licensed under the Creative Commons Attribution-Share Alike 2.5 India License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/2.5/in/

More information

8-bit Microcontroller with 2/4/8K Bytes In-System Programmable Flash. ATtiny24/44/84. Preliminary

8-bit Microcontroller with 2/4/8K Bytes In-System Programmable Flash. ATtiny24/44/84. Preliminary Features High Performance, Low Power AVR 8-Bit Microcontroller Advanced RISC Architecture 120 Powerful Instructions Most Single Clock Cycle Execution 32 x 8 General Purpose Working Registers Fully Static

More information

8-bit Microcontroller with 2/4/8K Bytes In-System Programmable Flash. ATtiny24/44/84. Preliminary

8-bit Microcontroller with 2/4/8K Bytes In-System Programmable Flash. ATtiny24/44/84. Preliminary Features High Performance, Low Power AVR 8-Bit Microcontroller Advanced RISC Architecture 120 Powerful Instructions Most Single Clock Cycle Execution 32 x 8 General Purpose Working Registers Fully Static

More information

DS1802 Dual Audio Taper Potentiometer With Pushbutton Control

DS1802 Dual Audio Taper Potentiometer With Pushbutton Control www.dalsemi.com FEATURES Ultra-low power consumption Operates from 3V or 5V supplies Two digitally controlled, 65-position potentiometers including mute Logarithmic resistive characteristics (1 db per

More information

I hope you have completed Part 2 of the Experiment and is ready for Part 3.

I hope you have completed Part 2 of the Experiment and is ready for Part 3. I hope you have completed Part 2 of the Experiment and is ready for Part 3. In part 3, you are going to use the FPGA to interface with the external world through a DAC and a ADC on the add-on card. You

More information

6. Design implementation

6. Design implementation 6. Design implementation 6.1 Introduction Each process in IC-technology usually comes with documentation on paper about all process details and the contents of the libraries. For all the types of transistors

More information

MICROPROCESSORS A (17.383) Fall Lecture Outline

MICROPROCESSORS A (17.383) Fall Lecture Outline MICROPROCESSORS A (17.383) Fall 2010 Lecture Outline Class # 07 October 26, 2010 Dohn Bowden 1 Today s Lecture Syllabus review Microcontroller Hardware and/or Interface Finish Analog to Digital Conversion

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

10-Channel LED Driver PR4010

10-Channel LED Driver PR4010 10-Channel LED Driver PR4010 The PR4010 is a 10 channel constant current driver with serial interface for LED display applications. The LED current is programmable via an external resistor. It can be used

More information

The physics of capacitive touch technology

The physics of capacitive touch technology The physics of capacitive touch technology By Tom Perme Applications Engineer Microchip Technology Inc. Introduction Understanding the physics of capacitive touch technology makes it easier to choose the

More information

MM Liquid Crystal Display Driver

MM Liquid Crystal Display Driver Liquid Crystal Display Driver General Description The MM145453 is a monolithic integrated circuit utilizing CMOS metal gate, low threshold enhancement mode devices. The chip can drive up to 33 LCD segments

More information

DS V EconoReset PIN ASSIGNMENT FEATURES PIN DESCRIPTION PIN 1 GROUND PIN 2 RESET PIN 3 V CC PIN 4 GROUND (SOT 223 ONLY)

DS V EconoReset PIN ASSIGNMENT FEATURES PIN DESCRIPTION PIN 1 GROUND PIN 2 RESET PIN 3 V CC PIN 4 GROUND (SOT 223 ONLY) 5V EconoReset FEATURES Automatically restarts microprocessor after power failure Monitors pushbutton for external override Internal circuitry debounces pushbutton switch PIN ASSIGNMENT DALLAS Econo Reset

More information

CprE 288 Introduction to Embedded Systems (Output Compare and PWM) Instructors: Dr. Phillip Jones

CprE 288 Introduction to Embedded Systems (Output Compare and PWM) Instructors: Dr. Phillip Jones CprE 288 Introduction to Embedded Systems (Output Compare and PWM) Instructors: Dr. Phillip Jones 1 Announcements HW8: Due Sunday 10/29 (midnight) Exam 2: In class Thursday 11/9 This object detection lab

More information

RC Filters and Basic Timer Functionality

RC Filters and Basic Timer Functionality RC-1 Learning Objectives: RC Filters and Basic Timer Functionality The student who successfully completes this lab will be able to: Build circuits using passive components (resistors and capacitors) from

More information

ATtiny25/45/85 Automotive

ATtiny25/45/85 Automotive ATtiny25/45/85 Automotive 8-bit AVR Microcontroller with 2/4/8K Bytes In-System Programmable Flash DATASHEET Features High performance, low power AVR 8-bit microcontroller Advanced RISC architecture 120

More information

MBI5031 Application Note

MBI5031 Application Note MBI5031 Application Note Foreword MBI5031 is specifically designed for D video applications using internal Pulse Width Modulation (PWM) control, unlike the traditional D drivers with external PWM control,

More information

EVDP610 IXDP610 Digital PWM Controller IC Evaluation Board

EVDP610 IXDP610 Digital PWM Controller IC Evaluation Board IXDP610 Digital PWM Controller IC Evaluation Board General Description The IXDP610 Digital Pulse Width Modulator (DPWM) is a programmable CMOS LSI device, which accepts digital pulse width data from a

More information

8-bit Microcontroller with 2/4/8K Bytes In-System Programmable Flash. ATtiny25 ATtiny45 ATtiny85. Automotive. BDTIC

8-bit Microcontroller with 2/4/8K Bytes In-System Programmable Flash. ATtiny25 ATtiny45 ATtiny85. Automotive. BDTIC BDTIC www.bdtic.com/atmel Features High Performance, Low Power AVR 8-Bit Microcontroller Advanced RISC Architecture 120 Powerful Instructions Most Single Clock Cycle Execution 32 x 8 General Purpose Working

More information