Skip to main content

Part of the book series: Computer Communications and Networks ((CCN))

  • 1926 Accesses

Abstract

External signal are frequently analog in nature, requiring inter-conversion between analog and digital domains.

The interface between the digital nature of the processor and peripheral analog devices for the PIC18 core is the subject of this chapter. Coverage includes a comparison and characterization of digital and analog signals, digital-to-analog (DAC) and analog-to-digital (ADC) techniques. Architecture, configuration and electrical considerations for the 10-bit ADC module as well as the Analog Comparator and Voltage Reference modules are discussed. Also covered is the interface to proprietary DAC devices to generate analog signals.

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

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 119.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 109.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Shannon, C.E.: Communication in the Presence of Noise, Proc. IRE, vol. 37, January 1949, pp. 10–21.

  2. 2.

    Also the PIC24/30/32 families and some PIC16 devices.

  3. 3.

    In the PIC18FXXK20 series, this is replaced by the FVRST (Fixed Voltage Reference STable bit in CVRCON2[6]. CVRCON2[7] holds the FVREN bit to enable this facility.

  4. 4.

    There is a small uncertainty range in this difference signal of ±10 mV maximum (±5 mV typical) due to Comparator offset voltages.

  5. 5.

    However, note that the Comparator module for this device is somewhat more flexible, with a several control registers to give the required options. For instance, each comparator has its own interrupt flag.

  6. 6.

    For instance the PIC24H family.

  7. 7.

    18- and 24-pin devices, lacking a Port E have up to 10 possible analog input channels.

  8. 8.

    Early PIC16 device ADC modules use one AD Result register to hold one 8-bit outcome.

  9. 9.

    For instance, the PIC18F1X20 use ADCON1 to individually enable each of the seven available analog inputs, and as a consequence the two VCFG bits move to ADCON0. The PIC18FXXK20 group use the two ANSELH:ANSEL registers to configure each of the 13 channels individually.

  10. 10.

    In the PIC18FXXK20 channel 15 is also special, connected to the FVR—see Fig. 14.6.

  11. 11.

    A conversion may be aborted at any time by clearing \(\mathsf{GO}/\overline{\mathsf{DONE}}\).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Sid Katzen .

Rights and permissions

Reprints and permissions

Copyright information

© 2010 Springer-Verlag London Limited

About this chapter

Cite this chapter

Katzen, S. (2010). Take the Rough with the Smooth. In: The Essential PIC18® Microcontroller. Computer Communications and Networks. Springer, London. https://doi.org/10.1007/978-1-84996-229-2_14

Download citation

  • DOI: https://doi.org/10.1007/978-1-84996-229-2_14

  • Publisher Name: Springer, London

  • Print ISBN: 978-1-84996-228-5

  • Online ISBN: 978-1-84996-229-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics