{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

aLec03_numbers

# aLec03_numbers - Introduction to Embedded Microcomputer...

This preview shows pages 1–3. Sign up to view the full content.

Introduction to Embedded Microcomputer Systems Lecture 3.1 Jonathan W. Valvano Recap Get the reference materials on 9S12 instructions TExaS simulates hardware and software Overview How numbers are stored on the computer Precision, basis of numbers Unsigned and signed numbers Binary, hexadecimal, decimal TExaS ViewBox and Help system 2. Information. Precision is the number of distinct or different values. The ranges are given for unsigned decimal numbers. Binary bits Bytes Alternatives 8 1 256 10 2 1024 12 2 4096 16 2 65536 20 3 1,048,576 24 3 16,777,216 30 4 1,073,741,824 32 4 4,294,967,296 n [[n/8]] 2 n Table 3.1. Relationship between bits, bytes and alternatives as units of precision. EE319K Lecture 3 in class worksheet Question 1 . How many alternatives is 12 bits? Question 2. Range is -999 to 999. How many bits are needed? Decimal digits are used to specify precision of multimeters 0,1,2,3,4,5,6,7,8,9 is a full decimal digit (10 choices) 0,1 is a half decimal digit (2 choices) 0,1,2,3 is three quarters decimal digit (4 choices) + or - is a half decimal digit (2 choices) + or - 0,1 is three quarters decimal digit (4 choices) Table 3.2. represents THE DEFINITION of decimal digits. The specification of decimal digits goes 4, 4½, 4¾, 5, with no other possibilities in between. The numbers 4.3 and 4 are not valid representations of decimal digits. 3½ decimal digits 3¾ decimal digits 4½ decimal digits 000.0 k Ω 000.0 k Ω 000.00 k Ω 000.1 k Ω 000.1 k Ω 000.01 k Ω . . . . . . . . . 199.9 k Ω 399.9 k Ω 199.99 k Ω resolution 0.1k Ω 0.1k Ω 0.01k Ω precision 2000 4000 20000 alternatives range 0 to 199.9k Ω 0 to 399.9k Ω 90 to 199.9k Ω decimal digits exact range exact alternatives 3 0 to 999 1,000

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document