OpenCores
URL https://opencores.org/ocsvn/phr/phr/trunk

Subversion Repositories phr

[/] [phr/] [trunk/] [doc/] [informe-tesis/] [reports/] [PPS/] [maximiq/] [manual usuario/] [tex/] [phr.tex] - Diff between revs 144 and 145

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 144 Rev 145
Line 1... Line 1...
 
 
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
%NEW CHAPTER  NEW CHAPTER  NEW CHAPTER  NEW CHAPTER  NEW CHAPTER%
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 
\chapter{La placa PHR}
\chapter{La placa PHR}
 
 
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
%NEW SECTION  NEW SECTION  NEW SECTION  NEW SECTION  NEW SECTION%
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 
\section{El chip FPGA}
\section{El chip FPGA}
 
 
\section{Memoria del FPGA}
\section{Memoria del FPGA}
 
 
\section{Interfaz JTAG}
\section{Interfaz JTAG}
 
 
\section{Relojes}
\section{Fuentes de \textsl{clock}}
 
 
\section{GPIO}
 
 
 
\begin{figure}[h]
 
\begin{center}
 
  \includegraphics{./img/phr/gpio_header.pdf}
 
\end{center}
 
\caption{Conector para entradas y salidas de propósito general.}
 
\label{phr:gpio}
 
\end{figure}
 
 
 
\section{MOD}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
%NEW SECTION  NEW SECTION  NEW SECTION  NEW SECTION  NEW SECTION%
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 
\section{Periféricos}
\section{Periféricos}
 
 
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 
\subsection{LEDs}
\subsection{LEDs}
 
 
\begin{table}
En la placa se encuentran ocho LEDs de montaje superficial indicados con el numero 9 en la Fig. \ref{intro:componentes}. Son etiquetados desde LED1 a LED8 y su relación con los pines de la FPGA se muestra en la Tabla \ref{phr:LEDpins}.
 
 
 
 
 
\begin{table}[h]
\begin{center}
\begin{center}
\begin{tabular}{|c|c||c|c|}
\begin{tabular}{|c|c|c|c|c|c|c|c|c|}
        \hline
 
        \textbf{Periférico} & \textbf{Pin}  & \textbf{Periférico} & \textbf{Pin}  \\
 
        \hline
 
        LED1 & 10 & LED5 & 14\\
 
        LED2 & 11 & LED6 & 15\\
 
        LED3 & 12 & LED7 & 16\\
 
        LED4 & 13 & LED8 & 17\\
 
        \hline
        \hline
 
        \textbf{Periférico} & LED1 & LED2 & LED3 & LED4 & LED5 & LED6 & LED7 & LED8 \\ \hline
 
        \textbf{Pin}        & 84   & 86   & 89   & 93   & 98   & 3    & 5    & 7    \\  \hline
\end{tabular}
\end{tabular}
\end{center}
\end{center}
\caption{Correspondencia entre los  pines de la FPGA y los LEDs (periféricos).}
\caption[Pines para los LEDs]{Correspondencia entre los  pines de la FPGA y los LEDs (periféricos).}
\label{phr:tabka}
\label{phr:LEDpins}
\end{table}
\end{table}
 
 
\subsection{Pulsadores \emph{(Tact switches)}}
Los cátodos de cada LED se conectan a potencial cero y los ánodos se conectan a los pines respectivos de la FPGA mediante un resistencia de 330 $\Omega$. Para enecender un determinado LED basta con poner la señal de control en alto.
\begin{figure}[h]
 
 
 
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 
 
\subsection{Pulsadores (\textsl{Tact switches})}
 
 
 
Están disponibles cuatro botones pulsadores como los esquematizados en la Fig. \ref{phr:tact} y son identificados con el numero 12 en la Fig. \ref{intro:componentes}. Los mismos son etiquetados como PBTN1, PBTN2, PBTN3 y PBTN4. Los pines de la FPGA relacionados con éstos periféricos se identifican en la Tabla \ref{phr:PBTNpins}. El esquemático detallado del circuito puede encontrarse en el Apéndice refAPENDICE.
 
 
 
\begin{figure}[b]
\begin{center}
\begin{center}
  \includegraphics{./img/phr/tact_switch.pdf}
  \includegraphics{./img/phr/tact_switch.pdf}
\end{center}
\end{center}
\caption{Tact.}
\caption{\textsl{Tact switches}.}
\label{phr:tact}
\label{phr:tact}
\end{figure}
\end{figure}
 
 
 
\begin{table}[h]
 
\begin{center}
 
\begin{tabular}{|c|c|c|c|c|}
 
        \hline
 
        \textbf{Periférico} & PBTN1 & PBTN2 & PBTN3 & PBTN4 \\ \hline
 
        \textbf{Pin}        & 77    & 78    & 82    & 83    \\  \hline
 
\end{tabular}
 
\end{center}
 
\caption[Pines para los \textsl{tact switches}]{Correspondencia entre los  pines de la FPGA y los botones.}
 
\label{phr:PBTNpins}
 
\end{table}
 
 
 
Cuando se presiona alguno de los botones se genera un valor lógico alto en el pin asociado de la FPGA. No hay circuito antirrebote y ésto debe ser tenido en cuenta al momento de escribir el código que luego vaya a cargarse en el dispositivo.
 
 
 
 
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 
\subsection{Llaves DIP}
\subsection{Llaves DIP}
 
 
 
 
\subsection{Displays de 7 segmentos}
\begin{table}[h]
 
\begin{center}
 
\begin{tabular}{|c|c|c|c|c|c|c|c|c|}
 
        \hline
 
        \textbf{Periférico} & SW1 & SW2 & SW3 & SW4 & SW5 & SW6 & SW7 & SW8 \\ \hline
 
        \textbf{Pin}        & 85  & 88  & 90  & 94  & 97  & 4   & 6   & 9   \\  \hline
 
\end{tabular}
 
\end{center}
 
\caption[Pines para las llavess]{Correspondencia entre los  pines de la FPGA y las llaves.}
 
\label{phr:DIPSpins}
 
\end{table}
 
 
 
 
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 
 
\subsection{Display de segmentos}
 
 
 
La placa PHR cuenta con un display siete segmentos cuádruple de \emph{ánado comun} indicado con el índice 13 en la Fig. \ref{intro:componentes}. El circuito de conexión entre la FPGA y el display se muestra en la Fig. \ref{phr:quad7seg} y se resalta la denominación alfabética para los segmentos de los caracteres.
 
 
 
Ésta misma figura además muestra como ejemplo, el estado de los pines de la FPGA para indicar el numero 3 en la posición 2. Al tener ésta configuración, cada LED encenderá con un \emph{nivel bajo} en el pin correspondiente al segmento pero además necesitará que el ánodo del caracter particular esté energizado. Éste ultimo también es activo por bajo (\textsl{active low}).
 
 
\begin{figure}[h]
\begin{figure}[h]
\begin{center}
\begin{center}
  \includegraphics{./img/phr/quad7seg.pdf}
  \includegraphics{./img/phr/quad7seg.pdf}
\end{center}
\end{center}
\caption{Circuito 7 segmentos.}
\caption[Circuito del display de segmentos]{Conexionado del display de seite segmentos cuádruple.}
\label{phr:quad7seg}
\label{phr:quad7seg}
\end{figure}
\end{figure}
 
 
 
Para dar el efecto deseado de representar una cifra de 4 dígitos se recurre a la técnica de multiplexación en el dominio del tiempo. La técnica consiste en mostrar uno a uno y ciclicamente cada caracter a una frecuencia suficientemente alta para que el ojo humano persiva una imagen completa. Un diagrama temporal de las señales se muestra en la Fig. ref.
 
 
 
\begin{figure}[h]
 
\begin{center}
 
  \includegraphics{./img/phr/multiplex.pdf}
 
\end{center}
 
\caption[Diagrama de multiplexado]{Diagrama temporal de la multiplexación.}
 
\label{phr:multiplex}
 
\end{figure}
 
 
 
Si bien el método requiere algo mas de complejidad que la conexion directa a cada segmento de cada caracter, reduce el numero de pines necesarios de $8 \times 4=32$ a $8+4=12$ lo cuál representa un significativo ahorro en recursos de hardware.
 
 
 
La Tabla \ref{phr:quad7seg:pines} muestra los pines de conexión de la FPGA a las distintas entradas del periférico. La Tabla \ref{phr:quad7seg:chars} tiene valores de control para que los segmentos muestren digitos y las letras desde la \emph{A} hasta la \emph{F} para poder representar números en formato hexadecimal.
 
 
 
\begin{table}[h]
 
\begin{center}
 
 
 
\begin{tabular}{|c|c|c|c|c|}
 
        \hline
 
        \textbf{Periférico} & Caracter1 & Caracter2 & Caracter3 & Caracter4 \\ \hline
 
        \textbf{Pin}        & 59        & 57        & 61        & 60        \\  \hline
 
\end{tabular}
 
 
 
\vspace{.2cm}
 
 
 
\begin{tabular}{|c|c|c|c|c|c|c|c|c|}
 
        \hline
 
        \textbf{Segmento} & A  & B  & C  & D  & E  & F  & G  & DP  \\   \hline
 
        \textbf{Pin}      & 65 & 64 & 72 & 70 & 68 & 62 & 73 & 71  \\   \hline
 
\end{tabular}
 
 
 
\end{center}
 
\caption[Pines para el diplay de segmentos]{Conexionado del diplay de 7 segmentos cuádruple a la FPGA.}
 
\label{phr:quad7seg:pines}
 
\end{table}
 
 
 
\begin{figure}[h]
 
\begin{center}
 
  \includegraphics{./img/phr/chars.pdf}
 
\end{center}
 
\caption[Display: caracteres comunes]{Representaciones de caracteres comunes en los displays de siete segmentos.}
 
\label{phr:quad7seg:chars}
 
\end{figure}
 
 
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 
\subsection{Puerto serie}
\subsection{Puerto serie}
 
 
\begin{figure}[h]
\begin{figure}[h]
\begin{center}
\begin{center}
  \includegraphics{./img/phr/3232.pdf}
  \includegraphics{./img/phr/3232.pdf}
Line 72... Line 172...
\caption{Circuito de la interfaz RS-232}
\caption{Circuito de la interfaz RS-232}
\label{phr:3232}
\label{phr:3232}
\end{figure}
\end{figure}
 
 
 
 
 No newline at end of file
 No newline at end of file
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
%NEW SECTION  NEW SECTION  NEW SECTION  NEW SECTION  NEW SECTION%
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 
 
 
 
\section{Entradas y salidas de propósito general}
 
 
 
\begin{figure}[h]
 
\begin{center}
 
  \includegraphics{./img/phr/gpio_header.pdf}
 
\end{center}
 
\caption{Conector para entradas y salidas de propósito general.}
 
\label{phr:gpio}
 
\end{figure}
 
 
 
 
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.