EE 319K Introduction To Microcontrollers
EE 319K Introduction To Microcontrollers
Introduction to Microcontrollers
8-1
Fixed Point Numbers
Why? (wish to How? (value = I*)
represent non-integer I (Variable Integer) is a
values) 16-bit unsigned integer.
It is stored and
Next lab measures
manipulated in memory.
distance from 0 to 3
(Fixed Constant) that
cm represents the
E.g., 1.234 cm resolution. It is not
When? (range is stored but is usually
known, range is written in comments ;
small) implicit.
Range is 0 to 3cm
(What about negative
Resolution is 0.003 cm numbers?)
SP top
next
SP
The tsx and tsy instructions do not modify the stack pointer.
Below: The tsx instruction creates a stack frame pointer