Blame view

motherboard/doc/src/stm32_motherboard_datasheet.tex 9.17 KB
14b996da3   benny   First commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
  \documentclass[a4paper,10pt]{report}
  \usepackage[utf8]{inputenc}
  \usepackage[T1]{fontenc}
  \usepackage{kpfonts}
  \usepackage[american]{babel}
  \usepackage[pdftex]{color,graphicx} % formats accéptés: .jpg,.mps,.pdf,.png
  \graphicspath{{figures/}} % chemin vers le repertoire contenant les figures
  \usepackage{pdfpages} % Include pdf file
  \usepackage[colorlinks=true,menucolor=blue,linkcolor=blue,pdfstartview=FitH]{hyperref} % Enable typesetting of hyperlinks
  \usepackage[tablegrid]{vhistory}
  
  % Utile uniquement pour les tableaux
  %\usepackage{multirow}% fusioner les lignes d'un tableau
  %\usepackage{colortbl}% colorier le fond d'une cellule d'un tableau
  
  %% Pour lier la position des éléments flottants aux limites de sections %%
  %\usepackage{placeins}
  %% Insertion de figure dans le texte %%
  %\usepackage{floatflt} 
  %% Place les flottants apres le point d'insertion %%
  %\usepackage{flafter} 
  
  % Divers
  \usepackage{xspace}% pour ajouter une espace inteligente
  \usepackage{verbatim}% pour insérer du texte sans traitement (utile pour ajouter un bout de code par exemple)
  \usepackage{cite}% pour numéroter les référrences bibliographique dans l'ordre de citation
  
  
  %--- macros simples ----------------------------------------------------
  
  ewcommand{\cad}{c'est-\'a-dire\xspace}
  
  ewcommand{\etal}{\mbox{$et$ $al$}\xspace}
  
  ewcommand{\ie}{\mbox{i.e.}\xspace}
  
  ewcommand{\degree}{\mbox{$^{\circ}$}}% pour afficher le signe 'degré'
  
  ewcommand{\warningsymbol}{{\fontencoding{U}\fontfamily{futs}\selectfont\char 66\relax}}
  
  \usepackage{color} % requie pour la définition de 'red' et 'green'
  
  ewcommand{\rcolor}{\cellcolor{red}}% utile pour colorier une cellule de tableau
  
  ewcommand{\gcolor}{\cellcolor{green}}% utile pour colorier une cellule de tableau 
  
  ewcommand{\ccolor}{\cellcolor[gray]{0.85}}% utile pour colorier une cellule de tableau
  
  
  %--- JPH style --------------------------------------------------------
  %% Modification de l'environnement enumerate %%
  %% premier niveau de liste numerotee en chiffres arabes %%
  \renewcommand{\theenumi}{\arabic{enumi}}
  %% presentation du prenier niveau de liste numerotee %%
  \renewcommand{\labelenumi}{\textbf{\theenumi .}}
  %% second niveau de liste numerotee en chiffres arabes %%
  \renewcommand{\theenumii}{\arabic{enumii}}
  %% presentation du second niveau de liste numerotee %%
  \renewcommand{\labelenumii}{\theenumi .\theenumii .}
  %% troisieme niveau de liste numerotee en chiffres arabes %%
  \renewcommand{\theenumiii}{\arabic{enumiii}}
  %% presentation du troisieme niveau de liste numerotee %%
  \renewcommand{\labelenumiii}{\theenumi .\theenumii .\theenumiii .}
  
  %% Personalisation des en-tetes et des pieds de page %%
  %% Pages ordinaires %%
  \usepackage{fancyhdr}
  \renewcommand{\headheight}{13pt} %% warning 12pt toot small
  \lhead{\scriptsize{\soustitre}}
  \chead{}
  %\rhead{\tiny \textit{\the\month~\the\year}}
  \rhead{\tiny \textit{\today}}
  \lfoot{\scriptsize{BD}}
  \cfoot{---~\thepage~---}
  \rfoot{\scriptsize{FEMTO-Engineering}}
  %% Page de tete de chapitre %%
  \fancypagestyle{chapitre}{%
    \fancyhead{}
    \fancyfoot{}
    \lhead{\textbf{\textsc{FIP}}~ --~\textsl{ANALOGIQUE}~--}
    \chead{}
    \rhead{\tiny \textit{\today}}
    %\rhead{\tiny \textit{\the\month~\the\year}}
    \lfoot{\scriptsize{BD}}
    \cfoot{---~\thepage~---}
    \rfoot{\scriptsize{STM32 motherboard starting guide}}
  }
  %% Page de redefinition du style plain par defaut %%
  \fancypagestyle{plain}{%
    \fancyhead{}
    \fancyfoot{}
    \lhead{\textbf{\textsc{\titre}}}%~ --~\textsl{\soustitre}~--}
    \chead{}
    \rhead{\tiny \textit{\today}}
    %\rhead{\tiny \textit{\the\month~
  umber\year}}
    \lfoot{\scriptsize{BD}}
    \cfoot{---~\thepage~---}
    \rfoot{\scriptsize{STM32 motherboard starting guide}}
  }
  \pagestyle{fancy}
  
  %% Page de titre %%
  \title{
     \includegraphics[width=4cm,keepaspectratio=true]{femto_engineering_logo.png}
     \\
     \bigskip
     \vfill
     {\Huge \textbf{\titre}}
     %\\
     %\textit{\soustitre}
     \\
     \textsl{\sousoustitre}
     \vfill
     \bigskip
     \includegraphics[width=4cm,keepaspectratio=true]{femto_engineering_logo.png}
  }
  \vfill
  \bigskip
  \author{
    \textcopyright\ Benoit~\textsc{Dubois}
    \thanks{benoit.dubois@femto-engineering.fr}
    %\thanks{benoit.dubois\at{}femto-engineering.fr}
  }
  \date{
      %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    %%%%%%%%%%%%%%\mois~
  umber\year
    %%%%%%%%%%%%\thanks{Compiled with \LaTeXe{} the \today.}
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    \vfill
    \includegraphics[width=8cm,keepaspectratio=false]{stm32_on_motherboard_v0-2-0.jpg}
    \vfill
  }
  
  %% Titre %%
  
  ewcommand{\titre}{STM32 motherboard}
  
  %% Sous-titre %%
  
  ewcommand{\soustitre}{Starting guide}
  
  %% Sous-sous-titre %%
  
  ewcommand{\sousoustitre}{\textsc{Starting guide 2}}
  %-----------------------------------------------------------------------
  
  \begin{document}
  
  \maketitle
  \pagenumbering{roman}
  
  \begin{versionhistory}
    \vhEntry{1.0}{2021, january 10}{BD}{First release}
  \end{versionhistory}
  
  \tableofcontents
  \pagebreak
  
  \pagenumbering{arabic}
  
  
  \chapter{Hardware}
  \section{Overview}
  \begin{figure}[htp]
   \centering
   \includegraphics[width=0.5\linewidth]{motherboard_v0-2-0.jpg} 
   \caption{Motherboard for STM32F407G}
   \label{fig:stm32motherboard}
  \end{figure}
  \begin{figure}[htp]
   \centering
   \includegraphics[width=0.5\linewidth]{stm32f407.jpg} 
   \caption{STM32F407G board}
   \label{fig:stm32disc}
  \end{figure}
  This report cover use of STM32 motherboard v0.2.0.
  In the document, the term ``STM32Disc'' refer to the STM32 Discovery board (Fig.\ref{fig:stm32disc}) and the term ``STM32Mother'' refer to the STM32 motherboard (Fig.\ref{fig:stm32motherboard}).
  
  \begin{itemize}
   \item Motherboard for STM32Disc (reference STM32F407G-DISCxx)
   \item Euroboard standard format: rack plugable
   \item Powered from standard 5V/15V Euroboard standard or from external 5V/15V power supply (section~\ref{sec:power})
  \end{itemize}
  
  \section{I/O}
  
  \subsection{SPI PMOD}
  \begin{figure}[htp]
   \centering
   \includegraphics[width=0.5\linewidth]{motherboard_v0-2-0_spi.jpg} 
   \caption{SPI PMOD interface}
   \label{fig:spi_intf}
  \end{figure}
  Three SPI bus are availlables from board.
  Find pin name in use for each bus in table~\ref{tab:spipinname}.
  \begin{table}[htbp]
    \begin{center}
      \begin{tabular}{|c|c|c|c|c|c|c|}
        \hline
        Bus & SCK & MISO & MOSI & CS1 & CS2 & CS3 \\
        \hline
        SPI1 & PB3 & PB4 & PB5 & PE0 & PE1 & PD7 \\
        SPI2 & PB13 & PB14 & PB15 & PD8 & PD9 & PD10 \\
        SPI3 & PC10 & PC11 & PC12 & PD0 & PA14 & PA15 \\
        \hline
      \end{tabular}
      \caption{OTA transistor sizes before and after DfR 
      \label{tab:spipinname}}
    \end{center}
  \end{table}
  
  \subsection{I2C PMOD}
  \begin{figure}[htp]
   \centering
   \includegraphics[width=0.5\linewidth]{motherboard_v0-2-0_i2c.jpg} 
   \caption{I2C PMOD interface}
   \label{fig:i2c_intf}
  \end{figure}
  
  \subsection{Integrated ADC and DAC}
  \begin{figure}[htp]
   \centering
   \includegraphics[width=0.5\linewidth]{motherboard_v0-2-0_adc_dac.jpg} 
   \caption{ADC and DAC interface}
   \label{fig:adc_dac_intf}
  \end{figure}
  
  \subsection{VNH5019}
  The board integrate an interface to a VNH5019 shield (Fig.\ref{fig:vnh5019_intf}).
  The VNH5019 is a H-bridge motor driver handled by PWM.\\
  \begin{figure}[htp]
   \centering
   \includegraphics[width=0.5\linewidth]{motherboard_v0-2-0_vnh5019.jpg} 
   \caption{VNH5019 interface}
   \label{fig:vnh5019_intf}
  \end{figure}
  
  \warningsymbol You need to select timer 4 and channel 1 or 2 only (see Fig.\ref{fig:timer4}) in your software development if you want to use the VNH5019 interface.
  \begin{figure}[htp]
   \centering
   \includegraphics[width=0.5\linewidth]{timer4.png} 
   \caption{VNH5019 interface}
   \label{fig:timer4}
  \end{figure}
  
  \subsection{GPIO}
  \begin{figure}[htp]
   \centering
   \includegraphics[width=0.5\linewidth]{motherboard_v0-2-0_gpio.jpg} 
   \caption{GPIO interface}
   \label{fig:gpio_intf}
  \end{figure}
  
  \subsection{U(S)ART}
  \begin{figure}[htp]
   \centering
   \includegraphics[width=0.5\linewidth]{motherboard_v0-2-0_usart.jpg} 
   \caption{U(S)ART interface}
   \label{fig:usart_intf}
  \end{figure}
  USART2 RX: A3
  USART2 TX: A2
  
  UART4 RX: A1
  UART4 TX: A0
  NOTE: A0 also connects to the user switch.
  To use UART4 you should set MICROPY\_HW\_HAS\_SWITCH to 0 (if you build micropython), and also remove SB20 (on the back of the STM32 board near the USER switch).
  
  \subsection{NRST}
  NRST pin is connected to Reset button of the STM32Disc.
  This pin can be used to deport a reset button on the front panel of the STM32Mother for example.
  
  \section{Power}\label{sec:power}
  \begin{figure}[htp]
   \centering
   \includegraphics[width=0.5\linewidth]{motherboard_v0-2-0_powersupply.jpg} 
   \caption{Power supply}
   \label{fig:power_intf}
  \end{figure}
  \subsection{Supply from DIN 5V}
  Set the jumper of connector P11 (surrounded in red on fig.~\ref{fig:power_intf})
  
  \subsection{Supply from DIN 15V}
  Set the jumper of connector P11 (surrounded in red on fig.~\ref{fig:power_intf})
  To use a power supply of 15~V, you need to 
  
  
  \subsection{Supply from external 5V}
  \subsection{Supply from external 15V}
  
  
  
  ewpage
  \addcontentsline{toc}{chapter}{Annexes}
  
  \begin{appendix}
  \chapter{Schematic}
  \includepdf[pages=-]{stm32discovery_mboard_schematic_v0_2.pdf}
  
  \chapter{Layout}
  \includepdf[pages=-]{figures/pcb_top_v0_2.pdf}
  \includepdf[pages=-]{figures/pcb_bottom_v0_2.pdf}
  \end{appendix}
  
  
  \end{document}