ECE 4510/5530 Microcontroller Applications Chapter 7
|
|
- Dortha Maxwell
- 6 years ago
- Views:
Transcription
1 ECE 450/5530 Microcontroller Applications Chapter 7 Dr. Bradley J. Bazuin Associate Professor Department of Electrical and Computer Engineering College of Engineering and Applied Sciences
2 Chapter 7: Parallel Ports I/O Addressing Modes Input data from switches Output data to LEDs Data transfer ECE 450 2
3 Overview of HCS2 Parallel Ports HCS2 device may have from 48 to 44 pins arranged in 3 to 2 I/O ports and packaged in a quad flat pack (QFP) or low profile quad flat pack (LQFP). A QFP or Quad Flat Package is an integrated circuit package with leads extending from each of the four sides. It is used for surface mounting (SMD) only, socketing or hole mounting is not possible. There are versions having from 32 to over 200 pins with a pitch ranging from 0.4 to.0 mm. Special cases include LQFP (Low profile QFP) and TQFP (Thin QFP). ECE 450 3
4 Basic Concepts of I/O I/O devices are also called peripheral devices. For microcontrollers, they are usually part of the IC For microprocessors, they are usually separate ICs I/O devices are consist of circuitry (logic or a device) that exchange data with a computer processing unit (CPU). Examples data includes: switches, light-emitting diodes, cathoderay tube screens, printers, modems, keyboards, and disk drives. ECE 450
5 Interface (Peripheral) Logic/IC ( of 2) Logic/IC whose function is to synchronize data transfer between the CPU and I/O devices Consists of control registers, status registers, data direction latches, and control circuitry Has pins that are connected to the CPU and I/O port pins that are connected to the I/O devices Each interface chip has a chip enable signal input or inputs, when asserted, allow the interface chip to react to the data transfer request. Data transfer between an I/O device and the CPU can be proceeded bitby-bit or in multiple bits (parallel). For embedded devices, this is the peripheral register address! ECE 450
6 Interface (Peripheral) Chip (2 of 2) Address decoder makes sure that each time one and only one peripheral device responds to the CPU s I/O request. Address Decoder from input device I/O pins to output device CE CE Interface chip Interface chip Microprocessor Data Bus ECE 450 Figure 7. Interface chip, I/O devices, and microprocessor
7 Adapt9S2DP52 I/O Pins ECE 450 7
8 DP52CPU Pins and Peripherals (No internal Busses Shown) ECE 450 8
9 HCS2 Parallel Ports The number of pins available in each I/O port for HCS2 are (see mc9s2dp52.s and mc9s2dp52.h for names): PORTA 8 pins PA7 PA0 PORTB 8 pins PB7 PB0 PORTE 8 pins PE7 PE0 PTH 8 pins PH7 PH0 PTJ 4 pins PJ7, PJ6, PJ, PJ0 PORTK 7 pins PK7, PK5 PK0 PTM 8 pins PM7 PM0 PTP 8 pins PP7 PP0 PTS 8 pins PS7 PS0 PTT 8 pins PT7 PT0 PORTAD, PORTAD0 6 pins PAD5 PAD0 ECE 450 9
10 HCS2 Parallel Ports ( of 3) All I/O pins serve multiple functions. When a peripheral function is enabled, its associated pins cannot be used as general purpose I/O pins. Each I/O port has several registers to support its operation. Registers related to I/O ports have been assigned a mnemonic name and the user can use these names to refer to them (see mc9s2dp52.s and mc9s2dp52.h): movb #$FF, PortA ; output $FF to Port A ECE 450
11 HCS2 Parallel Ports (2 of 3) All I/O ports (except PORTAD0 and PORTAD) have an associated data direction register and a data register. The name of the data direction register is formed by adding the letters DDR as the prefix to the port name. For example, DDRA, DDRB, and DDRT. To configure a pin for output, write a to the associated bit in the data direction register. To configure a pin for input, write a 0 to the associated bit in the data direction register. movb #$FF,DDRA movb #0,DDRA bset DDRA,$8 ; configure port A for output ; configure port A for input ; configure Port A pin 7 and 0 for output ECE 450
12 HCS2 Parallel Ports (3 of 3) We use PORT as the prefix to the port name for ports A, B, E, and K. For the other ports, the register name is formed by adding letters PT as the prefix to the port name. For example, PTH, PTJ, PTM, PTP, PTS, and PTT. Output a value to a port is done by storing that value to the port data register. movb #$FF,DDRH movb #$37,PTH ; configure Port H for output ; output the hex value 37 to port H Input a value from an input port is done by loading from the port data register. movb #0,DDRH ; configure Port H for input ldaa PTH ; read data from port H into A ECE 450 2
13 References to Parallel Ports Better way is to use the = directive (in assembly language) to equate a symbolic name to the address of a given register This allows to use the symbolic name to access it Ex: PORTA = $0000 PTH = $0260 PORTB = $000 DDRH = $0262 DDRA = $0002 PTT = $0240 DDRB = $0003 DDRT = $0242 LDAA #$FF ; Configure Port A for output STAA DDRA LDAA #$FF ; Write to Port A STAA PORTA ECE 450 3
14 Port B Code Example Example writing to port B:.area prog(abs) PORTB = $000 DDRB = $0003.text _main:: Ldaa #$FF Staa DDRB ; configures PB7 PB0 as output pins Ldaa #$A5 Staa PORTB ; write data $A5 on the PORTB ECE 450 4
15 ICC2 Parallel Ports Names The naming of the port data registers is not uniform The names of some of the port data registers are formed by adding PORT as the prefix of the port name or by adding the prefix PT only Port Name Data register Name A PORTA B PORTB E PORTE K PORTK H PTH J PTJ M PTM P PTP S PTS T PTT ECE 450 5
16 Basic Concepts of I/O () The speed and electrical characteristics of I/O devices may be very different from those of CPU These different characteristics makes it difficult to connect them directly to the CPU Interface chips may be used to resolve the differences between the microprocessor and I/O devices A major function of the interface circuitry is to synchronize data transfer between the CPU and I/O devices Interface circuits (on or off CPU) consists of control registers, data registers, status registers, data direction registers and control circuitry ECE 450 6
17 Basic Concepts of I/O (2) Interface devices have data pins that are connected to the microprocessor data bus and I/O port pins that are connected to the I/O devices Only one device is allowed to drive data to the data bus at a time Otherwise, data bus contention can result and the system may be damaged Address Decoder Insures that one and only one device is allowed to drive data to the data bus or accept data from the data bus at a time A Chip Enable or CE is driven by the address decoder to enable a peripheral device (typically active low) Additional address bits may be used for internal I/O register selection ECE 450 7
18 Basic Concepts of I/O (3) Control Registers Allows to set up parameters for the desired I/O operations Data direction registers Allows to select the data transfer direction for each I/O pin Status Registers Reports the progress and status of the I/O operation Data Registers Holds the data to be sent to the output device or the new data placed by the input device ECE 450 8
19 Basic Concepts of I/O (4) Interface devices is allowed to respond to the data transfer request from the microprocessor only when its chip enable (CE) is enabled In most devices the chip enable (CE) signal is active low by nature Otherwise the interface chip is electrically isolated from the data bus Data transfer between the I/O device and the interface devices can proceed bit-by-bit (serial) or in multiple bits (parallel) Data are transferred serially in low-speed devices such as modems and low-speed printers Parallel data transfer is mainly used by high-speed I/O devices ECE 450 9
20 Parallel I/O and the HC2 Memory-mapped I/O scheme (HC2) The microprocessor uses the same instruction set to perform memory accesses and I/O operations. The I/O devices and memory components are resident in the same memory space. A mechanism should be available to make sure: Data is valid when the microprocessor reads data To make sure output device is ready to accept data when the microprocessor outputs data For the HC2 parallel ports, this does not exist! Brute-Force Synchronization (is OK if timing of data not important) : The HC2 parallel ports have no inherent synchronization For input-- The microprocessor reads the interface chip and the interface chip returns the voltage levels on the input port pins to the microprocessor. For output --The interface chip places the data that it received from the microprocessor directly on the output port pins. ECE
21 HC2 Parallel I/O Synchronization Handshake Method: Interlocked handshake Use two I/O pins from another port, one input, one output: Write I/O First output level to assert data First input level to show when data has been read Output return to remove data Input return to complete cycle Read I/O First output level to request data First input level to show when data is available Output return to acknowledge read of data Input return to remove data ECE 450 2
22 Input/Read Handshaking Step. Step 2. Step 3. The HC2 output pin asserts H to indicate its intention to input data. The input device puts data on the data port pins and also asserts the handshake signal H2. The HC2 output pin reads the data and de-asserts H. After some delay, the input device also deasserts H2. H Data Valid Data H2 ECE 450 (a) Interlocked 22
23 Output/Write Handshaking Step. The HC2 places data on the port pins and asserts H to indicate that it has valid data to be output. Step 2. The output device latches the data and asserts H2 to acknowledge the receipt of data. Step 3. The HC2 output pin de-asserts H following the assertion of H2. The output device then de-asserts H2. H Data Valid Data H2 ECE 450 (a) Interlocked 23
24 Electrical Characteristic Consideration for I/O Interfacing Most systems require the use of logic chips and/or peripheral devices apart from the microcontroller to perform their function These chips may use different types of Integrated Circuit (IC) technologies. If so, there is a concern that the resultant system may not function properly The ICs must be electrically compatible Two issues involve Voltage-level compatibility Current drive capacity ECE
25 Voltage and Current Voltage-level compatibility High output level of an IC chip high enough to be considered as a high for the input of another chip Low output level of an IC chip low enough to be considered as a low for the input of another chip Current drive capability Output of an IC chip have enough current to drive its load Can the output circuit of an IC chip sink the current of its load Signal timing is also an important factor for making sure that the digital circuit functions properly The main concern about timing is whether the signal from one chip becomes valid enough to be used by another IC chip in a timely (clock based?) manner ECE
26 Voltage Level compatibility Voltage level compatibility issue arises because IC technologies differ in the following four voltages: Input High Voltage (VIH) Input Low voltage (VIL) treated as logic when applied as input to the digital circuit treated as logic 0 when applied as input to the digital circuit Output High Voltage (VOH) voltage level when digital circuit outputs a logic Output Low Voltage (VOL) voltage level when digital circuit outputs a logic 0 ECE
27 Voltage Level compatibility (2) In order for the digital circuit X to be able to drive circuit Y, the following conditions must be satisfied The output high voltage of device X (VOHX) must be higher than the input high voltage of device Y (VIHY). The output low voltage of device X (VOLX) must be lower than the input low voltage of device Y (VILY). ECE
28 Logic Family Voltage Levels Logic Family V CC V IH V OL V IL V OL HCS2 3 5 V 3.25 V 4.2 V.75 V 0.8 V S 4 5 V 2.0 V V 0.8 V V 2 LS 4 5 V 2.0 V V 0.8 V V 2 AS 4 5 V 2.0 V V 0.8 V 0.35 V F 4 5 V 2.0 V 3.4 V 0.8 V 0.3 V HC 3 5 V 3.5 V 4.9 V.5 V 0. V HCT 3 5 V 3.5 V 4.9 V.5 V 0. V ACT 3 5 V 2.0 V 4.9 V 0.8 V 0. V ABT 3 5 V 2.0 V 3.0 V 0.8 V 0.52 V BCT 5 5 V 2.0 V 3.3 V 0.8 V 0.42 V FCT 5 5 V 2.0 V 2.4 V 0.8 V 0.55 V. V OH value will get lower when output current is larger. 2. V OL value will get higher when output current is larger. The V OL values of different logic gates are slightly different 3. HCS2, HC, HCT, ACT are based on CMOS technology. 4. S, LS, AS, and F are based on bipolar technology. 5. ABT, BCT, and FCT are based on bi-cmos technology. ECE
29 HC2 Compatibility 5 Volt technology compatibility CMOS is compatible LS TTL is not compatible ECE
30 Voltage Level compatibility (3) Summarizing Voltage Level Compatibilities: HCS2 cannot be driven by a bipolar device (S, LS, AS, F). HCS2 can be driven by CMOS devices (HC, HCT) HCS2 may not work with ACT CMOS devices, VIL=VOL HCS2 will likely have problems with Bi-CMOS, VIL=VOL and VOH <= VIH(HC2) (ABT, BCT, FCT) ECE
31 Current Drive Capability Microcontrollers needs to drive other peripheral I/O devices in an embedded system Other issue is whether the microcontroller can source (when the output voltage is high) or sink (when the output voltage is low) the current needed by the I/O device that it interfaces with Need to make sure the following two requirements Each I/O pin can supply and sink the current needed by the I/O device that it interfaces with Total current required to drive I/O devices does not exceed the maximum current rating of the microcontroller ECE 450 3
32 Current Considerations Each logic chip has the following four currents that are involved in the current drive calculations Input high current (IIH) Input low current (IIL) Input current (flowing into the input pin) when the input voltage is high Input current (flowing out of the input pin) when the input voltage is low Output high current (IOH) Output low current (IOL) Output current (flowing out of the output pin) when the output voltage is high Output current (flowing into the output pin) when the output voltage is low ECE
33 Terms: Fan-out and Fan-in Fan-in: Fan-out: how many devices driven an integrated circuit to perform its function. Usually applied to logic gates how many devices can be driven by a circuits output. Often done based on a technology family or typical input current IOH I Fanout min, I IH I Note: Driving analog circuits or LEDs can rapidly change the output current required. Note2: A digital output should never drive both analog and digital inputs! OL IL ECE
34 Logic Family Current Levels Logic Family V CC I IH I IL I OH I OL HCS V 2.5 ua 2.5 ua 25 ma 25 ma S 5 V 50 ua.0 ma ma 20 ma LS 5 V 20 ua 0.2 ma 5 ma 24 ma AS 5 V 20 ua 0.5 ma 5 ma 64 ma F 5 V 20 ua 0.2 ma ma 20 ma HC 3 5 V ua ua 25 ma 25 ma HCT 3 5 V ua ua 25 ma 25 ma ACT 3 5 V ua ua 24 ma 24 ma ABT 3 5 V ua ua 32 ma 64 ma BCT 5 V 20 ua ma 5 ma 64 ma FCT 3 5 V ua ua 5 ma 64 ma. Values are based on the 74XX244 devices of Texas Instruments.. 2. The total HCS supply current is 65 ma. 3. The values of I IH and I IL are input leakage currents. ECE
35 Current Source and Sink To determine whether a pin can supply or sink currents to all peripheral pins that it drives correctly, designer needs to check the two requirements The IOH of an output pin must be equal to or larger than the total current flowing into all the peripheral pins that are connected to this pin. The IOL of an output pin must be equal to or larger than the total current flowing out from all the peripheral pins that are connected to this pin Also need to make sure that the total current needed to drive the peripheral signal pins do not exceed the total current the microcontroller can supply ECE
36 Fan-Out HC2* to HC2s Fan out 2.5mA 2.5mA min,, uA 2.5uA HC2* to LS TTL Fan out 2.5mA 2.5mA min, 20uA 0.2mA 2.5 HC2* to HC/HCT Fan out 2.5mA 2.5mA min, ua ua 2,500 LS TTL to HC2 Fan out 5mA 24mA min, 2.5uA 2.5uA 6,000 HC/HCT to HC2 Fan out 25mA 25mA min, 2.5uA 2.5uA 0,000 * 2.5 ma vs. 25 ma due to spec sheet ECE
37 HC2 I/O P: Those parameters are guaranteed during production testing on each individual device. C: Those parameters are achieved by the design characterization by measuring a statistically relevant sample size across process variations. T: Those parameters are achieved by design characterization on a small sample size from typical devices under typical conditions unless otherwise noted. All values shown in the typical column are within this category. D: Those parameters are derived mainly from simulations. ECE MC9S2DP256B Device User Guide V02.5, Doc. No. 9S2DP256BDGV2/D, Original Release Date: 29 Mar 200, Revised: Jan, 2005, Motorola, Inc
38 Timing Compatibility Timing compatibility needs to be taken into consideration if the I/O pin is driving a flip-flop or a latch Latch or flip-flop has a control signal or clock signal to control the latching of an input signal D Q D t su t hd CLK Q CLK (a) (b) Figure 7.28 D flip-flop and its latching timing requirement ECE
39 Timing Compatibility (2) Main timing consideration is the setup and hold time requirements for all flip-flop and latches Setup and hold time needs to be addressed in order for the system to work properly If the signal passes through several intermediate devices before it reaches latches or flip-flops, time delays of all intermediate devices needs to be taken into account D Q D t su t hd CLK Q CLK (a) (b) ECE 450 Figure 7.28 D flip-flop and its latching timing requirement 39
40 Timing Compatibility (3) Setup and hold times describe the timing requirement on the input of the flip-flop with respect to the clock input Setup time is the time that the input must be valid before the flipflop samples Hold time is the time that the input must be maintained valid after the flip flop samples Setup and hold time define a window of time during which the input must be valid and stable in order to get the valid data on the output D Q D t su t hd CLK Q CLK (a) (b) ECE Figure 7.28 D flip-flop and its latching timing requirement
41 Interfacing with Output Devices Many embedded devices only require interfacing with simple input and output devices such as switches, light emitting devices, keypads, seven segment displays etc Interfacing with LED s: LED s are often used to indicate the system operation mode Whether the system is turned on Whether the system operation is normal Whether the system is in error mode etc An LED can illuminate when it is forward biased and has sufficient current following through it The current required to light an LED is nominally around 0mA The 7-segfment displays want 20 ma. ECE 450 4
42 Interfacing with LEDs Three methods for interfacing with LED s Method A and B are recommended for use with LED s that need only to 2mA to produce enough brightness The circuit C is required for use with LED s that need larger current to light and the ECE 450/5530 labs Circuit C Resistor value can be between 330 ohm and Kohm Port pin R (a) positive direct drive Port pin 74HC04 ECE 450 Figure 7.29 An LED connected to a CMOS inverter through a current- limiting resistor. 42 R2 (b) inverse direct drive V CC Port pin V CC (c) buffered drive R3
43 Lab LED and Light Bar Connections Buffer the HC2 port Inverting buffer 540 Non-inverting buffer 54 Provide current sinking for the LED Resistor between +5 and LED If you short the LED while probing, the resistor provides current limiting Resistor Value LED needs ~.2 to.8 V drop LED wants ~ 0 ma 5V.8V R 320 0mA 5V.2V R 380 0mA ECE
44 Interfacing with Seven Segment Displays Seven segment displays are often used when the embedded products needs to display only a few digits Seven segment displays are mainly used to display decimal digits and a small subset of letters Although HCS2 devices have enough current to drive a seven segment display, it is not advisable to do when a HCS2 based embedded product needs to drive many other I/O devices Best way is to use a buffer chip 74HC244 between microcontroller and seven segment display 74HC244 provides 5v and using a 330 ohm resistor between 74HC244 and seven segment display provides a current of 0mA, sufficient to illuminate an LED ECE
45 Lab 7-Segment Displays Single Digit, Red, Common Anode Display,6 a b c d e f g dp a Data Sheet Values: Forward Voltage V at I=0 ma f e g b c ECE d dp
46 Driving a Common Anode Display Forward Voltage V at I=0 ma R 5V 2.V to 2.6V 0mA 240 R 290 HC2 Pin,6 a b c d e f g dp Inverting Buffer HC2 Pin HC2 Pin HC2 Pin HC2 Pin HC2 Pin HC2 Pin ECE HC2 Pin
47 ECE BCD to 7-Segment Decoder BCD digit a b c d e f g Segments Corresponding Hex Number $7E $30 $6D $79 $33 $5B $5F $70 $7F $7B Table 7.5 BCD to seven-segment decoder a b c d e f g dp
48 Multiple Displays, Common Cathode Some applications needs to display multiple BCD digits, then time multiplexing technique will be used Seven segment displays consists of either a common anode or common cathode which plays a key role in turning on and off the seven segment display Common Cathode (Note: The lab uses common Anode) Common cathode of the seven segment display is connected to the collector of an NPN transistor When a high voltage is applied to the base of the NPN transistor, it is driven to saturation The common cathode of the display will then be driven low allowing the display to be lighted By turning the NPN transistors ON and OFF many times in a second, multiple digits can be displayed ECE
49 Multiple 7-Segment Displays, Common Cathode 74HC a b g #5 #4 #0 a a b b... g g PB6 PB5 PB0 PK5 PK4 PK0 R... 2N2222 R common cathode 2N2222 R common cathode common cathode I MAX = 70 ma 2N2222 HCS2 Figure 7.32 Port B and Port K together drive six seven-segment displays (MC9S2DP256) ECE
50 Multiple Displays, Common Anode Some applications needs to display multiple BCD digits, then time multiplexing technique will be used Seven segment displays consists of either a common anode or common cathode which plays a key role in turning on and off the seven segment display Common Anode Common anode of the seven segment display is connected to the collector of a PNP transistor When a low voltage is applied to the base of the PNP transistor, it is driven to saturation The common anode of the display will then be driven high allowing the display to be lighted By turning the PNO transistors ON and OFF many times in a second, multiple digits can be displayed ECE
51 Example 7.4 Example 7.4 Write a sequence of instructions to display 4 on the seven-segment display #4 in Figure Solution: To display the digit 4 on the display #4, we need to: Output the hex value $33 to port B Set the PK4 pin to Clear pins PK5 and PK3...P0 to 0 #include <hcs2.inc> four equ $33 ; seven-segment pattern of digit 4 movb #$3F,DDRK ; configure PORT K for output movb #$FF,DDRB ; configure PORT B for output bset PTK,$0 ; turn on seven-segment display #4 bclr PTK,$2F ; turn off seven-segment displays #5, #3 #0 movb #four,ptb ; output the seven-segment pattern to PORTP In C language: DDRK = 0x3F; DDRB = 0xFF; ECE 450 PTK = 0x0; PTB = 0x33; 5
52 Example 7.5 Example 7.5 Write a program to display on the six sevensegment displays shown in Figure Solution: Display on display #5, #4, #3, #2, #, and #0, respectively. The values to be output to Port B and Port K to display one digit at a time is shown in Table 7.6. Table 7.6 Table of display patterns for Example 7.5 seven-segment display #5 #4 #3 #2 # #0 displayed BCD digit Port B $30 $6D $79 $33 $5B $5F Port K ECE $20 $0 $08 $04 $02 $0
53 Time Multiplexing 7-Segment Displays Start X address of display table Output the byte at [X] to port B Output the byte at [X]+ to Port K Increment X by 2 Wait for ms no X = display + 2? yes Figure 7.33 Time-multiplexed seven-segment display algorithm ECE
54 Code Example #include "c:\miniide\hcs2.inc" pat_port = PTB ; Port that drives the segment pattern pat_dir = DDRB ; direction register of the segment pattern sel_port = PTK ; Port that selects the digit sel_dir = DDRK ; data direction register of the digit select port.text _main:: movb #$FF,pat_dir ; configure pattern port for output movb #$3F,sel_dir ; configure digit select port for output forever: ldx #disp_tab ; use X as the pointer loop: movb,x+,pat_port ; output digit pattern and move the pointer movb,x+,sel_port ; output digit select value and move the pointer ldy # ; wait for ms jsr delaybyms ; cpx #disp_tab+2 ; reach the end of the table bne loop bra forever #include "c:\miniide\delay.asm" disp_tab.byte $30,$20 ; seven-segment display table.byte $6D,$0.byte $79,$08.byte $33,$04 ECE 450.byte $5B,$02.byte $5F,$0 54
55 DIP Switches Switch is probably the simplest input device available To make input more efficient, a set of eight switches organized as a Dual inline package (DIP) is often used A DIP package can be connected to any input port with eight pins such as PortA, PortB etc When a switch is closed, the associated port input is 0, otherwise the associated port input is Each port input is pulled up high via a 330 ohm or Kohm resistor when the associated switch is open ECE
56 Connecting DIP Switches V CC SW DIP-8 0K PA0 PA PA2 PA3 PA4 PA5 PA6 PA7 HCS2 Figure 7.39 Connecting a set of eight DIP switches to Port A of the HCS2 ECE
57 Buffering Dip Switches For the ECE 450 Lab, all dip switches should be buffered. One possible buffering configuration is shown here ECE
58 Reading DIP Switches Steps Ex: Instruction to read data from DIP switches on PortA Step: Define the corresponding Data Direction Register and Data Register of PortA Step2: Set the Data Direction Register of PortA to configure port as an input port Step3: Read the data from the Data register of PortA according to the requirements of the program. Data from the DIP switches is always available in the Data Register of the corresponding port with which it s interfaced to ECE
59 Code Example.area prog(abs) PORTA = $00 DDRA = $02.text _main:: Ldaa #$00 Staa DDRA Loop: Ldaa PORTA Staa result jsr delay5msec Bra Loop ECE
60 Switch/Contact Bounce A contact is made, many transient touch may occur.. ECE
61 Switch/Contact Bounce Contact bounce is due to the dynamics of a closing contact The signal falls and rises within a period of about 5ms as a contact bounces Human being cannot press and release a switch in less than 20ms, a debouncer will recognize that the switch is closed after the voltage is low for about 0ms and will recognize after that the switch is open after the voltage is high for about 0ms Both H/W and S/W solutions to the key bounce problem are available H/W solution includes an analog circuit that uses a resistor and a capacitor, and two digital solutions that uses S-R latches or CMOS buffers and double throw switches ECE 450 6
62 Switch Bounce Mitigation Set-Reset Latch Set-Reset Latches Before being presses, the key is touching the set input and the Q voltage is high When pressed the key moves towards the reset position When the key is not touching either Set or Reset, both inputs are pulled low by the pull-down resistor (no change in output) When key touches the reset position, the Q voltage will go Low If bouncing of the Set or Reset contact occurs, the first instance will set or reset the device and others will have no effect ECE
63 Switch Bounce Mitigation Non inverting CMOS buffer Non inverting CMOS buffer with high input impedance The CMOS buffer output is identical to its input When the switch is connected, the input to the buffer chip is grounded/vdd and hence Vout is forced low/high When the key switch is not connected, the resistor R keeps the input voltage at the same level as the output voltage This is due to the high input impedance of the buffer, which causes a negligible voltage drop on the feedback resistor Once initial switch connection is made, the output moves to the desired voltage and no connect bouncing will not effect the output ECE
64 Switch Bounce Mitigation Capacitor Integrated de-bouncers The RC constant of the integrator determines the rate at which the capacitor charges up towards the supply voltage once the ground connection via the switch has been removed As long as the capacitor voltage does not exceed the logic 0 threshold value, the Vout signal will be recognized as logic 0 The cheapest approach! ECE
65 Switch Bounce Mitigation Software Software De-bouncing Technique The most popular and simple one has been the wait and see method. Wait to see if the switch value stabilizes. In this method, the program simply waits for about 0 ms and reexamines the same key again to see if it is still pressed. ECE
66 Keypad Interfacing A Keypad is another commonly used input device Keypad is arranged as an array of switches, which can be mechanical, membrane, capacitors or Hall-effect in construction Mechanical Switches Two metal contacts are brought together to complete an electrical circuit Membrane Switches Plastic or rubber membrane presses one conductor onto the other Capacitive Switches comprise of two plates of a parallel plate capacitor. Pressing the key cap effectively increases the capacitance between the two plates Hall effect Switches Motion of the magnetic flux lines of a permanent magnet perpendicular to the crystal is detected as a voltage, which resembles a switch closure ECE
67 6-Button Keypad Series 96 by Grayhill, Inc. Web Site: Matrix connections based on which key is pressed Time multiplex pins -4 while reading pins 5-8 A keypad controller IC can be purchased to act as a peripheral ECE
68 Keypad Scanning Keypad scanning is usually performed row-by-row, column-by-column A 6-key keypad can be easily interfaced using any available I/O port For the keypad application the upper four pins of the port should be configured for output and the lower four pins of the port should be configured for input The rows and columns of a keypad are simply conductors The keypad interface setup to HCS2 PortA is as shown in the next slide ECE
69 Keypad Circuitry HCS2 MCU PA7 outputs PA6 PA5 PA4 PA3 3 7 B F inputs PA2 PA A 9 E D PA C 0K V CC Figure 7.4 Sixteen-key keypad connected to the HCS2 0 PA7 PA6 PA5 PA4 Selected keys ECE , 4, 8, C,, 5, 9, D, 2, 6, A, E, Table 7.6 Sixteen-key keypad row selections and 3 and 7 and B and F
70 Keypad Operation PortA pins PA3 PA0 are pulled up to high by pull-up resistors Whenever a key switch is pressed, the corresponding row and column are shorted together In order to distinguish the row being scanned and those not being scanned, the row being scanned is driven low, where as other rows are driven high PA7 PA6 PA5 PA4 Selected keys , 4, 8, C,, 5, 9, D, 2, 6, A, E, and 3 and 7 and B and F Table 7.6 Sixteen-key keypad row selections ECE
71 More Text I/O Examples LCD Controller An interface to a microcontroller that runs an LCD Digital to Analog Converter Stepper Motor Control Drive a positioning motor for robotics, etc. OK for not really fast drive motors ECE 450 7
ECE3120: Computer Systems Chapter 7: Interfacing I/O Devices Lab-Class
ECE32: Computer Systems Chapter 7: Interfacing I/O Devices Lab-Class Manjeera Jeedigunta http://blogscaetntechedu/msjeedigun2 Email: msjeedigun2@tntechedu Tel: 93-372-68, Prescott Hall 2 Today Interfacing
More informationInput and Output Ports. How do you get data into a computer from the outside?
Input and Output Ports How do you get data into a computer from the outside? SIMPLIFIED INPUT PORT D 7 Any read from address $0000 gets signals from outside H C 2 D a t a D D D4 D3 S i g n a l s F r o
More informationInput/Output Ports and Interfacing
Input/Output Ports and Interfacing ELEC 330 Digital Systems Engineering Dr. Ron Hayne Images Courtesy of Ramesh Gaonkar and Delmar Learning Basic I/O Concepts Peripherals such as LEDs and keypads are essential
More informationChapter 9. Input/Output (I/O) Ports and Interfacing. Updated: 3/13/12
Chapter 9 Input/Output (I/O) Ports and Interfacing Updated: 3/13/12 Basic Concepts in I/O Interfacing and PIC18 I/O Ports (1 of 2) I/O devices (or peripherals) such as LEDs and keyboards are essential
More informationBasic I/O Interface
Basic I/O Interface - 8255 11 3 THE PROGRAMMABLE PERIPHERAL 82C55 programmable peripheral interface (PPI) is a popular, low-cost interface component found in many applications. The PPI has 24 pins for
More informationChapter 1. Solutions Solution 1.1. Most RAMs are volatile, meaning the information is lost if power is removed then restored.
Chapter 1. Solutions Solution 1.1. Most RAMs are volatile, meaning the information is lost if power is removed then restored. Solution 1.2. The bus signals of the MC9S12C32 are AD15-0, R/W, LSTRB and E.
More informationModule 12: Elementary Input/Output
Module 12: Elementary Input/Output I/O Concepts Typical Organization of an I/O Device Memory-mapped vs Isolated I/O Elementary output with latch and LED Elementary input with buffer and switch 7-segment
More informationChapter 4: Advanced Assembly Programming. EE383: Introduction to Embedded Systems University of Kentucky. Samir Rawashdeh
Chapter 4: Advanced Assembly Programming EE383: Introduction to Embedded Systems University of Kentucky Samir Rawashdeh With slides based on material by H Huang Delmar Cengage Learning Chapter Summery
More informationINTRO TO I/O INTERFACE
Basic I/O Interface Introduction This chapter outlines some of the basic methods of communications, both serial and parallel, between humans or machines and the microprocessor. We first introduce the basic
More informationECE 4510/5530 Microcontroller Applications Week 7
45/553 Microcontroller Applications Week 7 Dr. Bradley J. Bazuin Associate Professor Department of Electrical and Computer Engineering College of Engineering and Applied Sciences MISC Stuff Keypad revisited
More informationUNIVERSITY OF HONG KONG DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING. Principles of Computer Operation
UNIVERSITY OF HONG KONG DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING Experiment PCO: Principles of Computer Operation Location: Part I Lab., CYC 102. Objective: The objective is to learn the basic
More informationLogic Chip Tester User Manual SW Version /8/2012. Chapter 1 Introduction/Background
Logic Chip Tester User Manual SW Version 1.00 4/8/2012 Chapter 1 Introduction/Background In the 1970 s and 80 s, many digital devices were designed using a number of 14, 16, 20, or perhaps 24- pin logic
More informationFrequency Generator for Pentium Based Systems
Integrated Circuit Systems, Inc. ICS969C-23 Frequency Generator for Pentium Based Systems General Description The ICS969C-23 is a low-cost frequency generator designed specifically for Pentium-based chip
More informationUNIVERSITY OF HONG KONG DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING
UNIVERSITY OF HONG KONG DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING Experiment PCO: Principles of Computer Operation Location: Part I Lab., CYC 102. Objective: The objective is to learn the basic
More information±15kV ESD-Protected, Single/Dual/Octal, CMOS Switch Debouncers
19-477; Rev 1; 1/99 ±15k ESD-Protected, Single/Dual/Octal, General Description The are single, dual, and octal switch debouncers that provide clean interfacing of mechanical switches to digital systems.
More informationECE 372 Microcontroller Design
!! "! E.g. Port A, Port B "! Used to interface with many devices!! Switches!! LEDs!! LCD!! Keypads!! Relays!! Stepper Motors "! Interface with digital IO requires us to connect the devices correctly and
More informationParallel I/O and Keyboard Scanning
4 4.1 Objectives: Microprocessors can monitor the outside world using input ports. They can also control it using output ports. The TM4C123G (Tiva) performs I/O using 6 ports. Computer keyboards are typically
More informationUNIT 3 THE 8051-REAL WORLD INTERFACING
UNIT 3 THE 8051-REAL WORLD INTERFACING 8031/51 INTERFACING TO EXTERNAL MEMORY The number of bits that a semiconductor memory chip can store is called chip capacity It can be in units of Kbits (kilobits),
More informationZ Z-280 MT8930, MT8992/3/4/5 MT8880 MT8888 MT8889 MT8980/1 MT8985, MT8986 (DIP-40) MT8986 (PLCC-44) MT8920B MT8952B
MSAN-145 How to Interface Mitel Components to Parallel Bus CPUs TABL OF CONTNTS Introduction ISSU 1 August 1993 1.0 Group 1 Components 1.1 Interfacing to the 6802 1.2 Interfacing to the 6809 1.3 Interfacing
More informationThis presentation will..
Component Identification: Digital Introduction to Logic Gates and Integrated Circuits Digital Electronics 2014 This presentation will.. Introduce transistors, logic gates, integrated circuits (ICs), and
More informationCS/ECE 5780/6780: Embedded System Design
CS/ECE 5780/6780: Embedded System Design John Regehr Lecture 2: 68HC12 Architecture & Lab 1 Introduction Duff s Device void foo (int x, int *y, int *z) { switch (x % 8) { case 0: do { *y++ = *z++; case
More informationcommodore semiconductor group NMOS 950 Rittenhouse Rd., Norristown, PA Tel.: 215/ TWX: 510/ (MEMORY, I/O, TIMER ARRAY)
commodore semiconductor group NMOS 950 Rittenhouse Rd., Norristown, PA 19403 Tel.: 215/666-7950 TWX: 510/660-4168 6532 (MEMORY, I/O, TIMER ARRAY) THE 6532 CONCEPT- The 6532 is designed to operate in conjunction
More informationUNIT V MICRO CONTROLLER PROGRAMMING & APPLICATIONS TWO MARKS. 3.Give any two differences between microprocessor and micro controller.
UNIT V -8051 MICRO CONTROLLER PROGRAMMING & APPLICATIONS TWO MARKS 1. What is micro controller? Micro controller is a microprocessor with limited number of RAM, ROM, I/O ports and timer on a single chip
More informationINTRODUCTION. Mechanical Considerations APPLICATION NOTE Z86E21 THERMAL PRINTER CONTROLLER ZILOG
ZILOG DESIGNING A LOW-COST THERMAL PRINTER USING THE Z86E21 TO CONTROL THE OPERATING CURRENT ON LOW-COST THERMAL PRINTERS PROVIDES DESIGN FLEXIBILITY AND HELPS SAFEGUARD PERFORMANCE. INTRODUCTION Compact
More informationTurning Ideas Into Reality ABCircuits POB 123 New Hill NC (919) C922-SO IC
ABCircuits www.abcircuits.com POB 123 New Hill 27562 (919) 290-7104 74C922-SO IC Keyboard / Keypad Encoder for up to 16 switches MM74C922 Replacement IC General Description The 74C922-SO is designed as
More informationHome Security System with Remote Home Automation Control
Home Security System with Remote Home Automation Control Justin Klumpp Senior Project Hardware Description Western Washington University April 24 2005 Professor Todd Morton Introduction: This document
More informationUniversity of Florida EEL 4744 Fall 1998 Dr. Eric M. Schwartz
Department of Electrical & Computer Engineering 15 October 199 Professor in ECE 31-Dec-9 12:22 PM Page 1/ Instructions: Show all work on the front of the test papers. If you need more room, make a clearly
More informationEE251: Thursday September 20
EE251: Thursday September 20 Parallel I/O aka General Purpose I/O aka GPIO Common Devices: Switches, LEDs, Keypads Read Lab 4 carefully, and Chapter 14 in text Think about what you would like to review
More information8051 I/O and Class 6 EE4380 Spring 03. Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas
8051 I/O and 8255 Class 6 EE4380 Spring 03 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Why I/O Ports Controllers need to get external inputs and produce
More informationIntroduction: - Page 1 -
A Guide for Motorola HCS12 Expanded Mode Bus-Design and for Connecting an HCS12 Expanded Mode Target to a Nohau HCS12 Full-ICE By: Doron Fael, Nohau October 20, 2003 Introduction: The Motorola HCS12 family
More informationMechatronics and Measurement. Lecturer:Dung-An Wang Lecture 6
Mechatronics and Measurement Lecturer:Dung-An Wang Lecture 6 Lecture outline Reading:Ch7 of text Today s lecture: Microcontroller 2 7.1 MICROPROCESSORS Hardware solution: consists of a selection of specific
More informationGL116 ENCODER/DECODER MANUAL GLOLAB CORPORATION
GL ENCODER/DECODER MANUAL GLOLAB CORPORATION Thank you for buying our GL Encoder / Decoder Module. This device was developed in response to many requests for an encoder and decoder that would serialize
More informationEE 308 Spring A software delay. To enter a software delay, put in a nested loop, just like in assembly.
More on Programming the 9S12 in C Huang Sections 5.2 through 5.4 Introduction to the MC9S12 Hardware Subsystems Huang Sections 8.2-8.6 ECT_16B8C Block User Guide A summary of MC9S12 hardware subsystems
More informationNational Semiconductor Application Note 368 Larry Wakeman March 1984
An Introduction to and Comparison of 54HCT 74HCT TTL Compatible CMOS Logic The 54HC 74HC series of high speed CMOS logic is unique in that it has a sub-family of components designated 54HCT 74HCT Generally
More informationDistributed by: www.jameco.com 1-800-831-4242 The content and copyrights of the attached material are the property of its owner. 16,384-BIT EPROM WITH I/O! 2048 Words x 8 Bits! Single + 5V Power Supply
More informationCAT25C02/04/08/16/32 2K/4K/8K/16K/32K SPI Serial CMOS E 2 PROM FEATURES
K/K/8K/6K/K SPI Serial CMOS E PROM FEATURES 0 MHz SPI Compatible.8 to 6.0 Volt Operation Hardware and Software Protection Zero Standby Current Low Power CMOS Technology SPI Modes (0,0 &,) Commercial, Industrial
More information3.3 Volt CMOS Bus Interface 8-Bit Latches
Q 3.3 Volt CMOS Bus Interface 8-Bit Latches QS74FCT3373 QS74FCT32373 FEATURES/BENEFITS Pin and function compatible to the 74F373 JEDEC spec compatible 74LVT373 and 74FCT373T IOL = 24 ma Com. Available
More informationFreescale Semiconductor, Inc.
Order this document by /D Software I 2 C Communications By Brad Bierschenk MMD Applications Engineering Austin, Texas Introduction I 2 C Overview The I 2 C (inter-integrated circuit) protocol is a 2-wire
More informationPROGRAMMABLE POWER SUPPLY
PROGRAMMABLE POWER SUPPLY MATTHIEU L. KIELA HARDWARE DESCRIPTION APRIL 25, 2006 WESTERN WASHINGTON UNIVERSITY ELECTRONICS ENGINEERING TECHNOLOGY ETEC 474, PROFESSOR MORTON INTRODUCTION In laboratory and
More informationDS1306. Serial Alarm Real Time Clock (RTC)
www.dalsemi.com FEATURES Real time clock counts seconds, minutes, hours, date of the month, month, day of the week, and year with leap year compensation valid up to 2100 96-byte nonvolatile RAM for data
More informationMemory & Simple I/O Interfacing
Chapter 10 Memory & Simple I/O Interfacing Expected Outcomes Explain the importance of tri-state devices in microprocessor system Distinguish basic type of semiconductor memory and their applications Relate
More informationand 8 Open-Drain I/Os
EVALUATION KIT AVAILABLE MAX7325 General Description The MAX7325 2-wire serial-interfaced peripheral features 16 I/O ports. Ports are divided into eight push-pull outputs and eight I/Os with selectable
More informationMC68HC12 Parallel I/O
EEL 4744C: Microprocessor Applications Lecture 6 Part 2 MC68HC12 Parallel I/O Dr. Tao Li 1 Software and Hardware Engineering (new version): Chapter 11 Or SHE (old version): Chapter 7 And Reading Assignment
More informationTUG Combo Board
TUG Combo Board Overview These notes supplement the Combo Board Manual providing a functional overview of the description and operation of the board. (Note: This Version does not yet fully cover the 6116
More informationATF16V8B. High Performance Flash PLD. Features. Block Diagram. Description. Pin Configurations
Features Industry Standard Architecture Emulates Many 20-Pin PALs Low Cost Easy-to-Use Software Tools High Speed Electrically Erasable Programmable Logic Devices 7.5 ns Maximum Pin-to-Pin Delay Several
More informationHistory of the Microprocessor. ECE/CS 5780/6780: Embedded System Design. Microcontrollers. First Microprocessors. MC9S12C32 Block Diagram
History of the Microprocessor ECE/CS 5780/6780: Embedded System Design Chris J. Myers Lecture 1: 68HC12 In 1968, Bob Noyce and Gordon Moore left Fairchild Semiconductor and formed Integrated Electronics
More informationAT24C01A/02/04/08/16. 2-Wire Serial CMOS E 2 PROM. Features. Description. Pin Configurations. 1K (128 x 8) 2K (256 x 8) 4K (512 x 8) 8K (1024 x 8)
AT24C01A/02/04/08/16 Features Low Voltage and Standard Voltage Operation 5.0 (V CC = 4.5V to 5.5V) 2.7 (V CC = 2.7V to 5.5V) 2.5 (V CC = 2.5V to 5.5V) 1.8 (V CC = 1.8V to 5.5V) Internally Organized 128
More informationDS1302. Trickle Charge Timekeeping Chip FEATURES PIN ASSIGNMENT PIN DESCRIPTION
DS132 Trickle Charge Timekeeping Chip FEATURES Real time clock counts seconds, minutes, hours, date of the month, month, day of the week, and year with leap year compensation valid up to 21 31 x 8 RAM
More informationDebounced 8 8 Key-Scan Controller
Debounced 8 8 Key-Scan Controller Description The SN7326 is a 64 key, key-scan controller. It offloads the burden of keyboard scanning from the host processor. The SN7326 supports keypad matrix of up to
More informationCONTENTS BIGAVR2 KEY FEATURES 4 CONNECTING THE SYSTEM 5 INTRODUCTION 6
CONTENTS BIGAVR2 KEY FEATURES 4 CONNECTING THE SYSTEM 5 INTRODUCTION 6 Switches 7 Jumpers 8 MCU Sockets 9 Power Supply 11 On-board USB 2.0 Programmer 12 Oscillator 14 LEDs 15 Reset Circuit 17 Push-buttons
More informationTIL311 HEXADECIMAL DISPLAY WITH LOGIC
SOLID-STATE HEXADECIMAL DISPLAY WITH INTEGRAL TTL CIRCUIT TO ACCEPT, STORE, AND DISPLAY -BIT BINARY DATA 7,6-mm (0.300-Inch) Character Height High Brightness Internal TTL MSI Chip With Latch, Decoder,
More informationIntroduction to the MC9S12 Hardware Subsystems
Setting and clearing bits in C Using pointers in C o Program to count the number of negative numbers in an area of memory Introduction to the MC9S12 Hardware Subsystems o The MC9S12 timer subsystem Operators
More informationDS1238A MicroManager PIN ASSIGNMENT PIN DESCRIPTION V BAT V CCO V CC
MicroManager www.dalsemi.com FEATURES Holds microprocessor in check during power transients Halts and restarts an out-of-control microprocessor Warns microprocessor of an impending power failure Converts
More informationChapter 19. Floppy Disk Controller Discussion. Floppy Disk Controller 127
Floppy Disk Controller 127 Chapter 19 Floppy Disk Controller 19-1. Discussion Without some "mass storage" device such as a floppy disk, even the largest computer would still be just a toy. The SK68K can
More informationHI-8683, HI ARINC INTERFACE DEVICE ARINC 429 & 561 Serial Data to 8-Bit Parallel Data APPLICATIONS DESCRIPTION. PIN CONFIGURATIONS (Top View)
October 2008 DESCRIPTION HI-8683, HI-8684 ARINC INTERFACE DEVICE ARINC 429 & 561 Serial Data to 8-Bit Parallel Data APPLICATIONS The HI-8683 and HI-8684 are system components for interfacing incoming ARINC
More informationIntroduction to Microcontrollers
Motorola M68HC11 Specs Assembly Programming Language BUFFALO Topics of Discussion Microcontrollers M68HC11 Package & Pinouts Accumulators Index Registers Special Registers Memory Map I/O Registers Instruction
More information68HC12 Training Lab Student Exercise Book
68HC12 Training Lab Student Exercise Book Date: 13 September, 2000 Document Revision:1.01 BiPOM Electronics 16301 Blue Ridge Road, Missouri City, Texas 77489 USA Telephone: (713) 661-4214 Fax: (281) 416-2806
More informationPAS 9796/DIO ENGINEERING SPECIFICATION
Document PAS018 DOC Revision C1 10/14/2009 PAS 9796/DIO ENGINEERING SPECIFICATION 160 CHANNEL VME DIGITAL INPUT / OUTPUT CARD Additional copies of this manual or other Precision Analog Systems (PAS) literature
More informationMicrocontrollers. Microcontroller
Microcontrollers Microcontroller A microprocessor on a single integrated circuit intended to operate as an embedded system. As well as a CPU, a microcontroller typically includes small amounts of RAM and
More information538 Lecture Notes Week 5
538 Lecture Notes Week 5 (Sept. 30, 2013) 1/15 538 Lecture Notes Week 5 Answers to last week's questions 1. With the diagram shown for a port (single bit), what happens if the Direction Register is read?
More informationPOTENTIOMETER. Revision Class. Instructor / Professor LICENSE
CME-11E9 EVBU LAB EXPERIMENT POTENTIOMETER Revision 03.11.13 Class Instructor / Professor LICENSE You may use, copy, modify and distribute this document freely as long as you include this license and the
More informationKeypad Interfacing. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff
Keypad Interfacing Typical keypads have 12 or 16 buttons Keypad A mechanical keypad simply consists of a set of vertical wires (one for each column) and a set of horizontal wires (one for each row) When
More informationSEVEN SEGMENT DISPLAY LAB EXPERIMENT
SEVEN SEGMENT DISPLAY LAB EXPERIMENT Class Instructor / Professor xiom anufacturing 1999 2813 Industrial Ln. Garland, TX 75041 (972) 926-9303 FAX (972) 926-6063 support@axman.com Rev 1.01 web: http://www.axman.com
More informationMICRO BURN IN PRODUCTS LISTED IN MODEL NUMBER ORDER FOLLOWED BY A BRIEF DESCRIPTION
MICRO BURN IN PRODUCTS LISTED IN MODEL NUMBER ORDER FOLLOWED BY A BRIEF DESCRIPTION MODEL 102P 102R DESCRIPTION Floor Stand (Plane) Floor Stand (Modified) HTRB Burn-In System (diode) Component Burn-In
More information538 Lecture Notes Week 5
538 Lecture Notes Week 5 (October 4, 2017) 1/18 538 Lecture Notes Week 5 Announements Midterm: Tuesday, October 25 Answers to last week's questions 1. With the diagram shown for a port (single bit), what
More informationInfrared Add-On Module for Line Following Robot
1 Infrared Add-On Module for Line Following Robot January 3, 2015 Jeffrey La Favre The infrared add-on module allows multiple line following robots to operate on the same track by preventing collisions
More informationLab 4: Digital Electronics BMEn 2151 Introductory Medical Device Prototyping Prof. Steven S. Saliterman
Lab 4: Digital Electronics BMEn 2151 Introductory Medical Device Prototyping Prof. Steven S. Saliterman Exercise 4-1: Familiarization with Lab Box Contents & Reference Books 4-1-1 CMOS Cookbook (In the
More informationAddress connections Data connections Selection connections
Interface (cont..) We have four common types of memory: Read only memory ( ROM ) Flash memory ( EEPROM ) Static Random access memory ( SARAM ) Dynamic Random access memory ( DRAM ). Pin connections common
More information2-Megabit (256K x 8) 5-volt Only CMOS Flash Memory AT29C020. Features. Description. Pin Configurations
Features Fast Read Access Time - 90 ns 5-Volt-Only Reprogramming Sector Program Operation Single Cycle Reprogram (Erase and Program) 1024 Sectors (256 bytes/sector) Internal Address and Data Latches for
More informationIntro to Logic Gates & Datasheets. Intro to Logic Gates & Datasheets. Introduction to Integrated Circuits. TTL Vs. CMOS Logic
Intro to Logic Gates & Datasheets Digital Electronics Intro to Logic Gates & Datasheets This presentation will Introduce integrated circuits (ICs). Present an overview of : Transistor-Transistor Logic
More informationCopyright 2011 R.S.R. Electronics, Inc. All rights reserved. 04/11. Ver. 1.0web
For XILINX WebPack Copyright 2011 R.S.R. Electronics, Inc. All rights reserved. 04/11 Ver. 1.0web 1 Table of Contents 1.0 INTRODUCTION...3 2.0 GENERAL DESCRIPTION...5 3.0 BRIEF DESCRIPTION Of PLDT-3 BOARD...6
More informationCourse Introduction. Content: 21 pages 4 questions. Learning Time: 35 minutes
Course Introduction Purpose: The intent of this course is to provide embedded control engineers with valuable implementation instructions on HCS08 port pins and the Keyboard Interrupt (KBI) module. Objectives:
More informationIntro to Logic Gates & Datasheets. Digital Electronics
Intro to Logic Gates & Datasheets Digital Electronics Intro to Logic Gates & Datasheets This presentation will Introduce integrated circuits (ICs). Present an overview of : Transistor-Transistor Logic
More informationQPro XQR17V16 Radiation Hardened 16Mbit QML Configuration PROM
R DS126 (v1.0) December 18, 2003 0 8 Product Specification 0 QPro XQR17V16 Radiation Hardened 16Mbit QML Configuration PROM Features Latch-Up Immune to LET >120 MeV/cm 2 /mg Guaranteed TID of 50 krad(si)
More informationKeywords Digital IC tester, Microcontroller AT89S52
Volume 6, Issue 1, January 2016 ISSN: 2277 128X International Journal of Advanced Research in Computer Science and Software Engineering Research Paper Available online at: www.ijarcsse.com Digital Integrated
More informationVMIVME bit High-Voltage Digital Input and/or Output Board with P2 I/O and Built-in-Test FUNCTIONAL CHARACTERISTICS
32-bit High-oltage Digital Input and/or Output Board with P2 I/O and Built-in-Test 32 bits of high-voltage outputs High-voltage outputs High-current sink (600 ma) High breakdown voltage (60 minimum) Output
More informationMX27C K-BIT [32K x 8] CMOS EPROM FEATURES GENERAL DESCRIPTION BLOCK DIAGRAM PIN CONFIGURATIONS PIN DESCRIPTION
FEATURES 32K x 8 organization Single +5V power supply +125V programming voltage Fast access time: 45/55/70/90/100/120/150 ns Totally static operation Completely TTL compatible 256K-BIT [32K x 8] CMOS EPROM
More informationVMIVME-2532A. 32-bit High-Voltage Digital Input/Output Board GENERAL SPECIFICATION SUMMARY
MIME-2532A 32-bit High-oltage Digital Input/Output Board 32 bits of high-voltage outputs High current sink (600 ) High breakdown voltage (70 ) Output clamp diodes Automatic surge current shutdown protection
More informationAm27C Megabit (131,072 x 8-Bit) CMOS EPROM DISTINCTIVE CHARACTERISTICS GENERAL DESCRIPTION BLOCK DIAGRAM
FINAL 1 Megabit (131,072 x 8-Bit) CMOS EPROM DISTINCTIVE CHARACTERISTICS Fast access time 45 ns maximum access time Low power consumption 20 µa typical CMOS standby current JEDEC-approved pinout Single
More informationFigure 1 Typical Application Circuit
4-CH CAPACITIVE TOUCH SENSOR WITH AUTO CALIBRATION August 2015 GENERAL DESCRIPTION The IS31SE5104 is a low power, fully integrated 4-channel solution for capacitive touch button applications. The chip
More information12 Push-Pull Outputs and 4 Inputs
EVALUATION KIT AVAILABLE MAX7326 General Description The MAX7326 2-wire serial-interfaced peripheral features 16 I/O ports. The ports are divided into 12 push-pull outputs and four input ports with selectable
More informationAN1239. HC05 MCU Keypad Decoding Techniques Using the MC68HC705J1A. Introduction
Order this document by /D Rev. 1.0 HC05 MCU Keypad Decoding Techniques Using the MC68HC705J1A By David Yoder CSIC Applications Introduction This application note demonstrates the use of a matrix keypad
More informationMAINTENANCE MANUAL KEYPAD/DISPLAY PANEL ASSEMBLIES 19D902913G3, G4, G10 (CONVENTIONAL) 19D902913G5, G6 (EDACS)
A MAINTENANCE MANUAL KEYPAD/DISPLAY PANEL ASSEMBLIES 19D902913G3, G4, G10 (CONVENTIONAL) 19D902913G5, G6 (EDACS) TABLE OF CONTENTS Page SPECIFICATIONS............................................... Front
More informationOPERATIONAL UP TO. 300 c. Microcontrollers Memories Logic
OPERATIONAL UP TO 300 c Microcontrollers Memories Logic Whether You Need an ASIC, Mixed Signal, Processor, or Peripheral, Tekmos is Your Source for High Temperature Electronics Using either a bulk silicon
More informationChapter 1 Microprocessor architecture ECE 3120 Dr. Mohamed Mahmoud http://iweb.tntech.edu/mmahmoud/ mmahmoud@tntech.edu Outline 1.1 Computer hardware organization 1.1.1 Number System 1.1.2 Computer hardware
More informationDS1305EN. Serial Alarm Real-Time Clock
Serial Alarm Real-Time Clock www.maxim-ic.com FEATURES Real-time clock (RTC) counts seconds, minutes, hours, date of the month, month, day of the week, and year with leap-year compensation valid up to
More informationFeatures. Ordering Information. Selector Guide. Applications. Pin Configurations. I 2 C Port Expander with 8 Open-Drain I/Os
General Description The MAX7321 2-wire serial-interfaced peripheral features eight open-drain I/O ports with selectable internal pullups and transition detection. Any port may be used as a logic input
More informationA23W8308. Document Title 262,144 X 8 BIT CMOS MASK ROM. Revision History. Rev. No. History Issue Date Remark
Preliminary 262,144 X 8 BIT CMOS MASK ROM Document Title 262,144 X 8 BIT CMOS MASK ROM Revision History Rev. No. History Issue Date Remark 0.0 Initial issue November 11, 1999 Preliminary PRELIMINARY (November,
More informationEmbedded Systems and Software
Embedded Systems and Software Lecture 12 Some Hardware Considerations Hardware Considerations Slide 1 Logic States Digital signals may be in one of three states State 1: High, or 1. Using positive logic
More informationEE345L Fall 2007 December 14, 2007, 9am-12 Version 1 Page 1 of 8
EE345L Fall 2007 December 14, 2007, 9am-12 Version 1 Page 1 of 8 Jonathan W. Valvano First: Last: This is the closed book section. You must put your answers in the boxes on this answer page. When you are
More informationACE24AC64 Two-wire Serial EEPROM
Description The ACE24AC64 series are 65,536 bits of serial Electrical Erasable and Programmable Read Only Memory, commonly known as EEPROM. They are organized as 8192 words of 8 bits (one byte) each. The
More informationATF20V8B. High Performance Flash PLD. Features. Block Diagram. Pin Configurations
Features Industry Standard Architecture Emulates Many 24-Pin PALs Low Cost Easy-to-Use Software Tools High Speed Electrically Erasable Programmable Logic Devices 7.5 ns Maximum Pin-to-Pin Delay Several
More informationQPro XQ17V16 Military 16Mbit QML Configuration PROM
R 0 QPro XQ17V16 Military 16Mbit QML Configuration PROM DS111 (v1.0) December 15, 2003 0 8 Product Specification Features 16Mbit storage capacity Guaranteed operation over full military temperature range:
More informationLecture 10 I/O and Interrupts
CPE 390: Microprocessor Systems Spring 2018 Lecture 10 I/O and Interrupts Bryan Ackland Department of Electrical and Computer Engineering Stevens Institute of Technology Hoboken, NJ 07030 Adapted from
More informationACE24AC128 Two-wire Serial EEPROM
Description The ACE24AC128 series are 131,072 bits of serial Electrical Erasable and Programmable Read Only Memory, commonly known as EEPROM. They are organized as 16,384 words of 8 bits (one byte) each.
More informationDS1305EN. Serial Alarm Real-Time Clock
Serial Alarm Real-Time Clock www.maxim-ic.com FEATURES Real-time clock (RTC) counts seconds, minutes, hours, date of the month, month, day of the week, and year with leap-year compensation valid up to
More informationXC95144 In-System Programmable CPLD
R 0 XC95144 In-System Programmable CPLD 0 5 Product Specification Features 7.5 ns pin-to-pin logic delays on all pins f CNT to 111 MHz 144 macrocells with 3,200 usable gates Up to 133 user pins 5V in-system
More informationDTMF BASED HOME AUTOMATION
DTMF BASED HOME AUTOMATION Vimlesh Kumar Agrahari 1, Md Arzoo 2, Harish Kumar 3 1, 2 Students, Electrical Engineering Department Greater Noida Institutes of Technology, Gr.Noida, (India) 3 Assistant Professor,
More informationLecture (02) PIC16F84 (I)
Lecture (02) PIC16F84 (I) By: Dr. Ahmed ElShafee ١ Review of Memory Technologies The PIC 16 Series PIC 16F84A The PIC 16F84A Memory The Oscillator Instruction Cycle Power up and Reset Parallel ports Technical
More informationDescription INPUT INTERFACING
SEMICONDUCTOR ICM711, ICM71 December 1993 Features ICM711 (LCD) Description -Digit ICM711 (LCD) and ICM71 (LED) Display Drivers Four Digit Non-Multiplexed 7 Segment LCD Display Outputs With Backplane Driver
More information