lecture 12 - serial peripheral interfacing 12 - serial... · serial peripheral interface used by...

7

Upload: nguyenthuan

Post on 01-May-2018

242 views

Category:

Documents


8 download

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

��

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

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

��

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