Top Banner
7

Lecture 12 - Serial Peripheral Interfacing 12 - Serial... · Serial Peripheral Interface used by the DAC — how it works? ... Interfacing the FPGA to the DAC and ADC Overview of

May 01, 2018

Download

Documents

nguyenthuan
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Lecture 12 - Serial Peripheral Interfacing 12 - Serial... · Serial Peripheral Interface used by the DAC — how it works? ... Interfacing the FPGA to the DAC and ADC Overview of

� �

Page 2: Lecture 12 - Serial Peripheral Interfacing 12 - Serial... · Serial Peripheral Interface used by the DAC — how it works? ... Interfacing the FPGA to the DAC and ADC Overview of

�� ������������ ��������%���������$������ ������������������� ���!��������#������� � �������$���� ���������"������������ ���&� ���'�������#���� ������� ������ �����! ���������������� ������ �������� ����������������������������#

���"�"��&"�#�������������!������#���������$��+����!��$"������#����� ��' �!����#*��#����"�"#"����������-��3500.�����������-��2//1.)���#��$"������!������!� ��!����#�!�����-��.*�����������$# $#��"��$���!����(���$��#(������� �� �������#���#��#���!���#��������������"#�!��������"����#*������������"�#&���� $#��������")������!����� �#��#����#�!� !�%�����������%��#����-��/.��������#��!��!���#���2*4��������"����#�-��0.*��������()�#��!���"���1�� �!��!���&, �""���#�%�����#�!)�#����� $#����&������"��!�%�����!��#�(��!���������#����$# $#� ������#����(����������*�����"��"���#������#�� !�%�������#�!��������� $�"�,&��#�����$��#��������$# $#��!���#�������*

Page 3: Lecture 12 - Serial Peripheral Interfacing 12 - Serial... · Serial Peripheral Interface used by the DAC — how it works? ... Interfacing the FPGA to the DAC and ADC Overview of

�������� ����"���������&��� ������+*'���$� ������ ����������� ��������� �������� ��%������� ������ ���������� �� ��������"������%�������������� ���� ���� ������ ��$�"�������� ���������!���#��������������������������������������%����������������� ���� ����������������� �������� ���(�%�%�� ��� �� �������+*,-���������������������������� ��! � ��)%������ �� ������� ����� ������+�����,�%

�������� �� �������������������������)�%�%������������� � �����������������*#� �/4'����� ������������������������������� ����� ��� ����%�����������������)�*����� ���������� ������ ����� ���������������� ����������� � %���������� ������������������������������ � ��� ��%��������� � �����)����/3*���� � "��.%������/2������������ ������������������������� ���)����*�����������������������������)�� � �������� ���� ��*%����������������#��������� ������1%1�%������/1����������������� ��������������)!/����!0*%������/0�����������/����"��� ����������������#� ����������.����"��� ������������ ��������������������������� ��%����//����0����� ��������/.'����� � ��+5$.,����������������� � ���������� �������#��������%������/� ���.� ������&��� ���%���������)�� � �����*����� ��� ��������������������������������� ��� � ����������������� ������� ����������� � ���������������������)�%�%�������������������� �������*%��������������� #�������� ���� �������������������������(� �%

Page 4: Lecture 12 - Serial Peripheral Interfacing 12 - Serial... · Serial Peripheral Interface used by the DAC — how it works? ... Interfacing the FPGA to the DAC and ADC Overview of

������� �������������� �� �����"������"������$���������������������� ������������"��� � ����!������'������� ����"�������� ������ ������� ���#��������%�"�� ��������$� ������� �����+�!� �����-'.���� ���������'���� �"�������� ���$��������������� ������������������������ ���'����������������"��������!�������������� ������ ���� ��%�� ���������%����!�������� �(�����'��)��� �������������� �(�������������� �'*��������� ������"������������������ ����������!�������������� ����������� �'���� � �����!���������������������������������"�������� ������ ���&�����,� �'!� ������, ��'!'�������������������������� ��%���"����������������� ������������������������,� ����� ��'

������������ ����������%�#� ���!��������� �������������������� ���(���2���) ���#� ��������'���������� ����������������������"�����!�'������������"����� ���,�������������������40��$�������������-&�����.5&0/��������10*��������������������������!�������#��������%�������������������"���������������� ����������������������2������� ���������������10*�������������������'

�������������"������������2�������������!����������3��������� ���'��������!���*�#*40���� ������������������"����+ ������� ������1��$�����������������������������������%������������������ ���������������������������������������������������,���1��$-'��������������������� ������������������������������������ ������������������������������������������������������������������'��������������������������������������������������10*����������������#������������� �� �'���������������������������������������������� ������������������������������'

��"������"���������������� �*��� �������!�� ���#'

Page 5: Lecture 12 - Serial Peripheral Interfacing 12 - Serial... · Serial Peripheral Interface used by the DAC — how it works? ... Interfacing the FPGA to the DAC and ADC Overview of

��������������������� ������� ��� ��"������������������%�&�����������)*"����� �����+'���� ���������������������������%���$(�� &������)+�������������"������������������������������������� ���#������������� ��������#�������"�������������%���&�����������)*!�������������������� ���"������������������ �� �������������%���&��������������������������������)*����"

��

�����#������ ����� �!����!��!'��!���������"� ������!������*� � �����(��

�!��!�������!������� !�!�&�$��������� ������� �� ��!��&�$�� !��!�!��������%�����%���!������!������*���*����� !�!�(����!�� � !�!�&����* !��!�� �� ��!��&�����$��$��!��������*���!�������$������!���� ����!�����������"�!(����!�� ������!���&�!�������� ����!������������������!��������$���!���������#�� ���(��������!�� !�!�����*���*�����$��!�����!������#�� ����!�����������!��&�$������ �������!����%����*�������������(�������!��!������� &�$����!"���!��!������� !�!��$��!�����������!����,+)��!���!��!�����������(

Page 6: Lecture 12 - Serial Peripheral Interfacing 12 - Serial... · Serial Peripheral Interface used by the DAC — how it works? ... Interfacing the FPGA to the DAC and ADC Overview of

��

�������" ��������� �����" ���� ��!���"#���'�!����� �"�����"��� !"������ !)������������� ��"����$��36�!"�"�!)� "�"��2��!�"��������!"�"�(�%��"������ �����%���"��"�����!��"�"��"������)���� �����-� �.%������!���%���"�$�/��!�*3+ ����%��%��"��� �"������-!"� "�"������!!� "��)��������#�"�$��#��������-�!��������-���� ��!����������� !")���'�����#�"�%����%�'!����"��"�����&"�!"�"�(��)�)�!"�"��$��#�����!�#���'�3)�����"���!"�"������������$�!�"��!"�"��3(��"��#!"����"� �#���"��!"�"��35(�%������� �!����!�"���'����2�"��34����"���"���������� ����� �)���"�"����������!"�"��35(�%����,�!!� "����-�!�.�)�)��������/(��!!� "����-���.��%/�������������"��"������!"�"�)

��

������#%��������������������� �� �������������������'������������!������� ����������������%��������� ����������������'�� �� ������ �������� ��� �������������&3'���������6)����!�� ����������������������� �����������������������!�� ��'�� �� ����#�������!����������������������������������#��������'4'�����*����98�/���%�����*��%�4(�220������) ������������������37)����!�� �������������������������'5'�����*����98�/�����*���-36&2.%�3(�20������) ������������������

��������������������������������������������������'����������������������$���*���+��"�����!�,������"����������!������!��������������������+����������������������������������������������������������������������,'

Page 7: Lecture 12 - Serial Peripheral Interfacing 12 - Serial... · Serial Peripheral Interface used by the DAC — how it works? ... Interfacing the FPGA to the DAC and ADC Overview of

��

���� ���������������������������� ����$������������� ���� �� ������������������ � ������ ��� �������!��������������� �������������������� ���������� ���������� ��������� ���������!�

���#"����##������������������������������������� ���� ��������������������

��

������������� ��������� ���� ���� ���������� ���&%��� ��� ��������������#� ������"���������� ���"����%��������!��#�������$�� ��!��#��������!�%���� ���� ������� ������������ �� �� ������ �� �$� ��������� �������"���������� ����� ��#��������!��������� ����� �� � ��� ��!��� ��%