1 / 36

ELE22MIC Lecture 10

ELE22MIC Lecture 10. MULTIPLEXOR - DATA SELECTOR DEMULTIPLEXOR - DATA DISTRIBUTOR Parallel to Serial Data Conversion External Address Bus Latching Address Strobe timing Diagram Address Decoding using a 74ls138 Serial Peripheral Interface - SPI. Microprocessors: Web Resources.

keown
Download Presentation

ELE22MIC Lecture 10

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ELE22MIC Lecture 10 • MULTIPLEXOR - DATA SELECTOR • DEMULTIPLEXOR - DATA DISTRIBUTOR • Parallel to Serial Data Conversion • External Address Bus Latching • Address Strobe timing Diagram • Address Decoding using a 74ls138 • Serial Peripheral Interface - SPI

  2. Microprocessors: Web Resources

  3. Multiplexor - Data Selector • Multiplex (MUX) many inputs to one output • Switch selects the one signal source from many input signals. • Like Stereo source selection

  4. Two Input Multiplexor Output = (Input0 & Select#) | (Input1 & Select)

  5. Four Input Multiplexor

  6. Eight Input Multiplexor

  7. 74F151 8-Input MUX

  8. 74F151 8-Input MUX Pin Names and Loading / Fanout

  9. Mux vs DeMux

  10. Parallel to Serial Conversion (1) • Many digital systems use parallel binary data communication for speed (eg CPU data bus, printer etc), but when large distances are to be covered, the number of lines required makes the parallel transmission costly and thus undesirable. • Referring to the schematic on the next page: A multiplexor can be used convert parallel data to serial data. Parallel data can be latched into the 74F373 gate, then output as a serial data stream from the 74F151 as a binary count sequence is created by the 74LS160.

  11. Parallel to Serial Conversion (2)

  12. Parallel I/O

  13. External Address Latch • The Address Bus (Bits 0..7) and Data Bus (Bits 0..7) are multiplexed onto Port C when in expanded mode - external RAM, ROM & Peripherals • We want to extend the Address Bus external to the 68HC11 - MAR is presented on C0..PC7/A0..A7/D0..D7 pins • The 68HC11’s AS pin strobes high to load the address into the external address latch. • The address latch presents the address onto the system’s external address bus.

  14. External Address Latch

  15. Address Strobe Timing Diagram

  16. Applications of a de-multiplexor • The Memory Chip Select device used on the original IBM PC is a 74LS138 de-multiplexor. • The 74LS138 is used to activate 1 of 8 lines based on the conditions of the three binary select inputs A, B & C, and the three enable inputs. • The 74LS138 Outputs are “Active Low”.

  17. 74LS138 8-Output DEMUX De-Multiplex one input to many outputs -Reverse operation of a multiplexor 74LS138 Truth Table

  18. DeMultiplexor • The 74LS138 can be implemented by the logic shown. • The 54LS138 is identical in function, but can operate over the “Mil-spec” -55°C to 125°C Temperature Range. • The 74LS138 can operate over the Commercial 0°C - 70°C Temperature Range.

  19. Memory Select

  20. Address Decoding & Chip Select • A15 -> G1#, E -> G, A14 -> A2, A13 -> A1 • R/W# -> A0 • Chip is enabled when A15 = 0 & E is High • Y2 = (A14#) & (A13) & Write (R/W#=0) & E • Y3 = (A14#) & (A13) & Read (R/W#=1) & E • Y4 = (A14) & (A13#) & Write (R/W#=0) & E • Y5 = (A14) & (A13#) & Read (R/W#=1) & E

  21. Write Data Timing Diagram

  22. Serial Peripheral Interface (SPI) During an SPI transfer, data is simultaneously transmitted (shifted out serially) and received (shifted in serially). A serial clock line synchronises shifting and sampling of the information on the two serial data lines. A slave select line allows individual selection of a slave SPI device; slave devices that are not selected do not interfere with SPI bus activities. On a master SPI device, the slave select line can optionally be used to indicate a multiple-master bus contention.

  23. Serial Peripheral Interface (SPI) The SPI can be used to add an extra 8 bit output port using an 8-bit shifter and latches. MasterOutSlaveIn MOSI (Serial Data) -> Pin14 (MSB sent first) Clock ->Pin 11 SS# = Pin 12 = Low during transmission Reset# = Pin 10 = 5V OE# = Pin 13 = 0V

  24. Serial Peripheral Interface (SPI) ACCESS_SPI: LDAA #50 ; 0101 0000 STAA 1028 ; SPI Control Register (SPCR) LDAA #38 ; 0011 1000 STAA 1009 ; DDRD LDAA #55 ; 0101 0101 STAA 102A ; LDAB 1029 ; BITB #80 ; BEQ B7C2 ; LDX #1000 ; BCLR 08, X 20 ; 1008 = Port D BSET 08, X 20 ; BRA ACCESS_SPI

  25. 68HC11 Flash Technology (1)

  26. 68HC11 Flash Technology (2) Erasure of Cells is performed by providing a tunnelling voltage to the control gate which causes the charge on the floating gate to be removed. When read, each cell returns a logical ‘1’ value.

  27. 68HC11 Flash Technology (3) Programming of Cells is performed by providing a tunnelling voltage to the control gate which causes the charge to be placed on the floating gate. The write process writes the ‘0’s into each cell.

  28. 68HC11 I/O & Control Bits (2)

  29. Logic Family - Propagation Delay (H-L)

  30. Logic Family - Propagation Delay (L-H)

  31. Logic Family - Propagation Delay (3)

  32. Bus Design Rules Bus lines have very low line impedances (20 .. 40 Ohms). • Bus lines have to be terminated to prevent line reflections (signal distortion, circuit malfunctions due to undershoots). • Take care of propagation times (25 ns/m). Settling time of signals on TTL-type buses is 2 x tp (no incident wave switching). • Take care of control lines (clock, read, write, etc.). • Provide shielding between control lines and data / address lines.

  33. Bus Design Rules • A multiplexed data and address bus reduces design problems (50% less signal lines and 50% less line driver). • Driver output current is 100 mA/line. Provide adequate and low inductance GND return path (simultaneous switching)! • Rule of thumb: 25% of all backplane connector pins have to be GND lines! • Use multilayer boards with separate GND and Vcc plane for backplanes.

  34. Acknowledgements • I used Altium Protel 98 and Protel DXP to create these schematic diagrams • Logic Timing Diagrams are from Texas Instruments (TI) Logic Selection Guide - Digital Design Seminar • National Semiconductor data sheets 74LS138. • Motorola 11rm.pdf Reference Manual

More Related