Skip to main content

Practical Problems and Applications

  • Chapter
Interfacing to Microprocessors

Part of the book series: Macmillan Computer Science Series ((COMPSS))

  • 42 Accesses

Abstract

Many of the input signals needed by microprocessor systems are derived from mechanical switches or contacts. At first sight there appears to be no difficulty in connecting these devices to a PIA port; for example all port inputs can be connected via pull-up resistors to the +5 V supply, and the switch can be connected between a data line and earth. The normal condition is then that all inputs are high, and when one or more goes low, a switch has been operated. If processor action is required, all inputs could be connected to an AND gate as shown in figure 6.1, and the output used either to set a flag or create an interrupt. A service routine could then read the port, determine which line was earthed, store this fact and return from the service routine. One possible action would be to increment a counter keeping a running total of the number of operations of a set of contacts.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Copyright information

© 1983 J. C. Cluley

About this chapter

Cite this chapter

Cluley, J.C. (1983). Practical Problems and Applications. In: Interfacing to Microprocessors. Macmillan Computer Science Series. Palgrave, London. https://doi.org/10.1007/978-1-349-06497-7_6

Download citation

  • DOI: https://doi.org/10.1007/978-1-349-06497-7_6

  • Publisher Name: Palgrave, London

  • Print ISBN: 978-0-333-34061-5

  • Online ISBN: 978-1-349-06497-7

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics