EasyManua.ls Logo

ST ST7 - Page 203

ST ST7
317 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
203/317
7 - Debugger and PROM Programmer Tutorial for ST72251
verter. When at the highest position, it provides the full V
CC
voltage that is converted to a value
of 255. The relationship provides for a frequency that changes from about 0.5 Hz to 10 Hz.
07-func
Since we use a timer to produce a frequency, this formula must be inverted to give something
like:
This formula requires performing 16-bit division at least . Since this would take too long a time,
we shall use a look-up table to convert the converted voltage into a number that can be written
to the timer reload register.
10
0 255
Hz
Analog to digital
conversion (ADC)
Frequency (f)
f = (9.5/255) ADC +0.5
0.5
t
ADC
=
+
1
95
255
05
.
.

Table of Contents

Related product manuals