90 likes | 178 Views
ECE 447 – Lecture 6 . Input and Output Interfacing. LED displays Switch buttons. Maximum currents at the outputs of Motorola 68HC11and 68HC24. V DD =5 V. Maximum sink current. V OHmin =4.5 V. I OLmax = 1.6 mA. Maximum source current. I OHmax = 0.8 mA. V OLmax = 0.4 V. GND=0 V.
E N D
ECE 447 – Lecture 6 Input and Output Interfacing LED displays Switch buttons
Maximum currents at the outputs of Motorola 68HC11and 68HC24 VDD=5 V Maximum sink current VOHmin=4.5 V IOLmax = 1.6 mA Maximum source current IOHmax = 0.8 mA VOLmax= 0.4 V GND=0 V Sufficient to drive one input of a TTL device and about 10 inputs of an LSTTL device
Light Emitting Diode - LED + Forward current Forward voltage IF VF – Typical values for most common LEDs IF = 10-20 mA VF = 1.7-2.4 V
68HC11 - LED interface (1) VDD=5 V R=? VDD – VF – VOL Forward current IF VF Forward voltage VOL Low Level Output Voltage VOL Low Level Output Current (sink current) IOL buffer IF IOLmax R = (VDD – VF – VOL) / IF
68HC11 - LED interface (2) VDD=5 V R1=? VDD – VF – VCE Forward current IF Forward voltage VF VCE Collector-Emitter Voltage R2=? IOH ICE Collector-Emitter Current IF ICEmax VOH VBE R1 = (VDD – VF – VCE) / IF R2 = (VOH – VBE) / IOH Base-Emitter Voltage
Key Debouncing key bounce, tBOUNCE key bounce, tBOUNCE typically, tBOUNCE < 10 ms debouncing delay debouncing delay update display
Key Debouncing - Auto-repeat debouncing delay debouncing delay update display update display update display Auto-repeat delay, typically 0.5 s
Class Exercise 4 Design a system based on MC68HC11 that increments a digit displayed by a 7-segment LED display each time a button is pressed.