Page 248 - ARM Based Microcontroller Projects Using MBED
P. 248
234 8. INTERMEDIATE LEVEL PROJECTS
FIG. 8.108 The waveform to be generated.
The waveform takes the following values:
Time (ms) Amplitude (V) Time (ms) Amplitude (V)
0 0 11 1.6
1 0.2 12 1.6
2 0.4 13 1.4
3 0.6 14 1.2
4 0.8 15 1.0
5 1.0 16 0.8
6 1.2 17 0.6
7 1.4 18 0.4
8 1.6 19 0.2
9 1.6 20 0.0
10 1.6
8.32.2 Aim
The aim of this project is to show how an arbitrary waveform can be generated.
8.32.3 Circuit Diagram
In this project, analog input PA_4 is used as in the previous project.
8.32.4 The PDL
Fig. 8.109 shows the PDL of the program.