Recent Changes - Search:
<^< Analogue Data | Course index | Analogue to Digital Conversion >^>

Introduction to Microcontroller Programming * Course Index * Introduction * About the Author * About this Course * Feedback * Course Navigation * Quick Course Navigation * How to use this Course * Acronyms Used and Course Conventions

About PICmicro Chips * What is a PICmicro? * Microcontrollers * Digital versus Analogue ## The Digital World ## The Analogue World ## Analogue Data ##

Digital Data ## Analogue to Digital Conversion * Inputs and Outputs * Memory * Programming * 16F1937 Architecture

Clocking Your PICmicro Devices * Introduction * The Clock Circuit * Clock Settings * Clock Confusion

E-Blocks * Introduction to E-blocks * Using E-blocks * E-blocks Boards

Flowcode Step By Step * Introduction to Flowcode * Basic Flowcode Functions * Digital Outputs * Digital Inputs * Basic Loops * The LCD Display * Binary Numbers * Decisions * Goto (Connection Point) * 7-Segment Displays * Software Macro * Strings and Memory * A Simple Hi-Fi

PICmicro Projects * Introduction to PICmicro Projects * Construction Methods * Choosing a Power Source * Adding Inputs * Input Conditioning * Adding Outputs * Adding Drivers

Labs * Introduction and Lesson Plan * 1. Output * 2. Delay * 3. Connection Point * 4. Calculations * 5. Loop * 6. Input * 7. Decision * 8. LCD * 9. Keypad * 10. Analogue + EEPROM * 11. Software Macro * 12. External Interrupt * 13. Timer Interrupt

(:Summary:Contains the 'action' links (like Browse, Edit, History, etc.), placed at the top of the page, see site page actions:) (:comment This page can be somewhat complex to figure out the first time you see it. Its contents are documented at PmWiki.SitePageActions if you need help. :) * Print (:comment (:if group Site,SiteAdmin,Cookbook,Profiles,PmWiki*:) (:comment delete if and ifend to enable backlinks:) * %item rel=nofollow class=backlinks accesskey='$[ak_backlinks]'% [[{*$Name}?action=search&q=link={*$FullName} | $[Backlinks] ]] (:ifend:) :) * Login

Digital Data

<^< Analogue Data | Course Index | Analogue to Digital Conversion >^>(:nl:)

A digital signal carries its information in the form of a number. Electronic systems use the binary number system, which uses only the numbers 0 and 1, (more of this later.) These two numbers are coded as voltages.

We could decide on the following code: '0' = a low voltage. '1' = a high voltage.

Digital signals then have only two possible voltage values. These are usually the power supply voltages, or as close to them as the system can get, and 0V.

How can we enter these numbers into an electronic system? One (very slow) way would be to use a switch (an example of a digital sensor.) Look at the next circuit diagram:

When the switch is open (not pressed,) the output is pulled down to 0V by the resistor. This output could represent the number '0'. When the switch is closed (pressed,) the output is connected to the positive supply, and so is 5V in this case. This could represent the number '1'. (Note that it would be possible to reverse the positions of the switch and the resistor in the circuit above. In this case pressing the switch would put a logic 0 on the pin.)

The next diagram shows a more complex digital signal.

The binary number represented by the signal is given under the waveform. (:nl:)(:table style="clear:both":)

(:Summary: Website page footer:)

Print - (:comment (:if group Site,SiteAdmin,Cookbook,Profiles,PmWiki*:) (:comment delete if and ifend to enable backlinks:) %item rel=nofollow class=backlinks accesskey='$[ak_backlinks]'% [[{*$Name}?action=search&q=link={*$FullName} | $[Backlinks] ]] (:ifend:) :) Search - Login

Page last modified on August 19, 2011, at 10:29 AM