Recent Changes - Search:
<^< Memory | Course index | Types of Memory >^>

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 * Inputs and Outputs * Memory ##

Storing Data ## Types of Memory ## PICmicro 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

Storing Data

<^< Memory | Course Index | Types of Memory >^>(:nl:)

Electronic sub-systems that store data are known as 'memory'. They can only store digital data.

One item of data is stored in one location in the memory. The data could be the correct combination to disarm a burglar alarm, or the temperature of an engine block. Each memory location has a unique address, a number used to identify the particular location. This means that we can draw up a map of the memory, showing what data is held in each location.

Address Data stored
In decimal In binary
0 000 11101001
1 001 00100101
2 010 10000101
3 011 11001101
4 100 01110100
5 101 00011011
6 110 11110011
7 111 10000101

The decimal version of the address is included to make the table easier to read. Electronic systems understand only binary numbers. This very small memory has 8 locations. Notice that it is normal to start the numbering at 0! This memory needs a 3 bit binary number to allow different addresses for each location. It allows us to store items of data that are 8 bits long. More jargon - 8 bits is also known as 1 'byte' (B). Our example memory system could be called a 8 x 1B memory.

Memory systems used in computers are much larger than this. Data is often stored as 32 bit numbers, allowing much larger numbers to be stored. There are many more locations, too. A typical computer memory now has millions of memory locations! (: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 September 29, 2011, at 09:23 AM