ST7MDT20-EVC/US STMicroelectronics, ST7MDT20-EVC/US Datasheet - Page 25

no-image

ST7MDT20-EVC/US

Manufacturer Part Number
ST7MDT20-EVC/US
Description
BOARD EVALUATION/TRAINING/PROGRM
Manufacturer
STMicroelectronics
Datasheet

Specifications of ST7MDT20-EVC/US

Module/board Type
Evaluation Board
For Use With/related Products
ST72124,7231x,72321,72334,72511,72512,72521
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Other names
497-2897
Figure 12. ADC Resource Files
Only the “main.c” program must be completed, according to the explanatory comments.
I
I
I
3.5 EXERCISE 5: USING THE SPI DRIVER
The purpose of this exercise is to use the SPI driver to program the embedded SPI EEPROM.
The structure of the main module and the batch file for efficient HIWARE C language com-
piling as well as the ST72334 resource directory are located in the SPI directory.
First, open the “SPI.wsp” project file.
The resource files are displayed as shown in
Figure 13. SPI Resource Files
Table “tab[16]” contains the configuration for the 7-segment LED displays. When addressing
tab[i], the corresponding digit i is accessed when PDDR is pushed.
Label “lab1” is an infinite loop. It starts a new conversion, waits until it is completed, and
store the tens and ones unit value into the i and j registers. Then, it outputs the i and j values
on Port D, and decreases a counter so that the result is displayed on the LEDs. Then, it
starts again.
A high level on output PA3 (output PA2, respectively) selects the tens (ones, respectively)
value on the dedicated 7-segment LED display.
Figure 13.
TRAINING EXERCISES
25/33

Related parts for ST7MDT20-EVC/US