ALec03_numbers - Introduction to Embedded Microcomputer Systems Lecture 3.1 Recap Get the reference materials on 9S12 instructions TExaS simulates

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

View Full Document Right Arrow Icon
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
Background image of page 1

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

View Full DocumentRight Arrow Icon
Introduction to Embedded Microcomputer Systems Lecture 3.2 Jonathan W. Valvano 0 to 1999 2,000 0 to 3999 4,000 4 0 to 9999 10,000 0 to 19,999 20,000 0 to 39,999 40,000 5 0 to 99,999 100,000 0 to 199,999 200,000 0 to 399,999 400,000 N 0 to 10 N -1 10 N 0 to 2*10 N -1 2*10 N
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/19/2010 for the course E E 16280 taught by Professor Valvano during the Fall '10 term at University of Texas at Austin.

Page1 / 5

ALec03_numbers - Introduction to Embedded Microcomputer Systems Lecture 3.1 Recap Get the reference materials on 9S12 instructions TExaS simulates

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online