Protoboard Canvas IC Demo

In order to use the Protoboard Canvas IC breakouts with the Analog Discovery Studio, you will first need to solder on the desired IC, and then header pins to the outputs of the breakouts. The Digilent store carries 5-packs of 6-pin headers that can be broken into smaller pieces as necessary. Note that in order for the Canvas to fit flush to the Analog Discovery Studio, the pins will need to be trimmed with wire clippers on the bottom (Fig.1, left). Alternatively, the plastic piece can be moved to about 1/3 of the way down before soldering the pins on (Fig.1, right).

Figure 1: Header pin placement options

ASCII���
���JKJK0	
�2��
�L��c����������������������������@""����������1`��/�������q�����&��|��^��
"� "� "� "� "� "� "� "� "� "� "� "� "� "� "� "� "� "� "� "�
"� "� "� "� "� "� "� "� "� "� "� "� "�!"�!"�!"��� "�
"�!"�!"� "� "�!"� "� "� "� "���!"�!"����� "� "�
"�!"�!"�!"� "�`�	�`�	�P2�0"� "� "� "� "� "� "� "� "� "� "� "�
"� "� "� "� "� "� "� "� "� "� "�!"� "�!"�!"�!"� "�!"� "� "�
"� "� "� "� "� "� "� "�!"�!"�!"�!"�!"�!"� "� "� "� "� "� "�
"� "� "�!"�!"�!"�!"�!"�!"�!"� "� "� "� "� "� "� "�
"�!"�!"�!"�!"�!"�!"� "� "� "� "� "�0"�0"�0"�0"� "� "�
"�!"�!"�!"�!"� "� "�!"�!"�!"� "� "� "�
"�!"�!"�!"�!"�!"�!"�!"�!"�!"�!"�!"�!"� "� "� "�
"�!"�!"�!"�!"�!"�!"�!"�!"�!"�!"� "�!"�
"�!"�!"�!"�!"�!"�!"�!"�!"�!"�!"�!"�!"�!"�!"�!"� "� "� "�
"�!"�!"�!"�!"�!"�!"�!"�!"�!"�!"�!"�!"� "� "�
"�!"�!"�!"�!"�!"�!"�!"�!"�!"�!"�!"�!"�!"� "� "� "�
"�!"�!"�!"�!"�!"�!"�!"�!"�!"�!"�!"�!"�
#��!"��7�o������������������������������������������#"��""��""��""��""��""��%"������������������������������
���#�[#��#���!��""��""��|�57�o7�o������������������������������������������������������':}���������|��������������������������������������������������������������������������������:}��ϓ������������������������������������������������������������������������������������������������������������FAFA	����q��#�����3����FAFA#�����v���瓓����v���瓔����v���瓕����v���瓕���
�+�v���瓖���
�+�v���瓕���
�+�v���磔�1���v������1���v����Ó�1���v����Ò�(���v����Ò�(���v����Ó�(���v����Ô�����v����Ô�����v����Ô�����v����Ò����v����Ñ����v����Ó����v����Ó�&���v����Ó�&���v����Ò��$��v����Ó��$��v����Ò��$��v����Ò�����v����Ò�����v����Ó�����v����Ò����v����Ó����v����Ñ����v����Ñ����v����Ð����v����Ð����v����Ñ�������v����Ï�������v����Ñ��������������������������������������������������������������������������������������
�������FAFA�����������������������������������������������������������������������������������������������������������l����	����
����
����	A����������������
����������������������������$����"����%����,����<����0����/����/j�������������������>����F����O����M����|�������������������z����h����:����;����6����M����T����^����i������������������������z����o����R����N����K����h����q����}�����������������������������{����v����j����a����b����v���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
�	����������������������������������������������������������������j������������1�r���
��;	��V���<����������������������������������������������P������������������C���C��������������������������������������������������������������������������������P���8�������
��	���
������������������
���P���x���������������������������������������������������������������������������������������������������������������������
���V��Y�����V��������������
���	���
��������������u�������%����
���
���
���
���
���
���
���
���
��|
��t
��w
���
���
��^
��-
��V
��/
��4
��i
��w
��z
���
��;
��
���	��8	��N	��
��
��M
��Q
��Y
��	����&	�����	���	��
��
��.
���	��&	���	���	���	��
�� 
��
��
��
��
��
���
��
��
��
��
���	���
���	���	���	��
���	���	���	���	���	��������������G������
��
���������
���������������x
����t�������
���
������,���A���C�����B������������������������������������������������������������	��������Z������������������������������
���	�������K����������������������������������������������������������P	���������1
��������{�����������������������������������������������3��R�����������������������������
���������������������������
�����	���
������������C���G���K���v�������������
��d����7��������������������������������+����������������������������������
8�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ssdjag������������ssuniqueidt`3<%V3�����ssmtf�����������������������������������������������xxxxxxxx�SSCAL...

Depending on the application of the particular Canvas board being prepared, additional header pins may be needed for the power terminals at the top of the Canvas, as well as in the protoboard area. Two breadboards can also be attached using the sticky backing they come with. This demo uses header pins on the power terminals, and a single breadboard, as seen in Fig.2 below.

Figure 2: Canvas with header pins and a single breadboard

ASCII���
���JKJK0	
�2��
�L��c������\��\����������������������W�z����m��"���[��#
�����a���e��������
"� "� "� "� "� "� "� "� "� "� "� "� "� "� "� "� "� "� "� "�
"� "� "� "� "� "� "� "� "� "� "� "� "� "� "� "� "� "� "� "�
"� "� "� "� "� "� "� "� "� "� "� "� "� "� "� "�!"� "� "� "�
"� "� "� "� "� "� "� "� "�!"� "�!"�!"�!"��� "� "� "� "� "�
"� "� "� "� "� "� "� "� "� "� "� "�!"� "� "� "� "� "� "� "�
"� "� "� "� "� "� "�1"� "�1"� "� "� "� "� "� "� "� "� "� "�
"�!"� "�!"� "� "� "� "� "� "� "� "� "� "� "� "� "� "� "� "�
"� "� "� "� "� "� "� "� "� "� "� "� "� "� "� "� "�0"� "� "�
"� "� "� "� "� "� "� "� "� "� "� "� "� "� "� "� "� "�
"�0"�0"� "� "� "� "� "� "� "� "� "� "� "� "� "�
"�0"�0"�1"�1"�0"�1"� "� "� "� "� "� "� "� "� "� "� "� "�0"�
"�0"�0"�0"�1"�1"�1"�0"� "� "� "� "� "� "� "� "� "� "� "� "�
"�0"�1"� "� "� "� "� "� "� "� "� "� "� "� "� "� "� "� "� "�
"�
"�������f!�b������������������������������������������������f!�be!�be!�be!�be!�be!�be!�b��������������������������������������������������
�;g!�cg!�c������������������������������������������������������������������������
�ZZ���@���\�����������������������������������������������������������������������������������:}��ϓ������������������������������������������������������������������������������������������������������������FAFA����q�&(�����3����FAFA(�&����v����&&����v����&&����v����&&����v����&&����v�����&&���v�����'&���v�����&&���v�����&&�����v�����&&�����v�����&&�����v�����%&<�J���v�����$&<�J���v�����%&<�J���v�����%&.���	�v�����%&.���	�v�����&&�����v�����&&�����v�����&&�����v�����&&����v�����&&����v�����&&����v�����&&���v�����%&���v�����&&���v�����&&!����v�����%&!����v�����%&!����v�����&&���v�����%&���v�����%&���v�����%&
���v�����%&
���v�����%&.���v�����%&.���v�����%&.���v�����&&.���v�����&&����v�����&&����v�����&&���
�v�����&\�����
��������FAFA�(���
�2�
���
�2�
���
��
���
��
���������
�u�
���
��
���
�2�
���
�K�
���
�v�
���
��
���
��
���
�2�
�������������������������������������������������������������������������������������������������������������������������������������������	����������������&����(����*����&����
������������������������
������������!����&����(����#������������������������������	����������������������������������������������������������������������������
����������������
��������
���
�D�
����������������������&�����������������������������������������������������������������������
���������������������������������������������
�	��'����������������������������������������������������������������J��]�����1�r����	��;	��(���2�������������������������������������������������������������������I���I����������������������\��
�����������������������������������������������������������_���8��������	������	����������������
���d���x���������������]��������������������������������������������������������������������������������������������������������$��������$��������������
��
���
���������������������
���+	��	��������	���	���	��~	���	���	���	���	��|	���	��	��a�����g	��~	��A	��"
��>
��r
��X
��
��
��o
��n
��@
��
���	���	���	���	���	���	���	���	���	��	
���	���	���	���	���	���	���	���	���	���	���	���	���	���	���	���	���	���	���	���	���	���	���	���	��}	��w	���	���	���	���	��������������L������&
���	������������������������
���
������������
���������2���G���I������c���������������������������������������������������J��J���������������o�������������������������������	���	�������N��������������������������������������������������������������	��
������	�����	������������������������������������������������������������������������������������r
�������������������������
�������	���
������������I���L���N���}�������������
��d����>��������������������������������3����������������������������������(�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ssdjag������������ssuniqueidt`3<%V3�����ssmtf�����������������������������������������������xxxxxxxx�SSCAL...

The ICs selected for this demo are a 10-bit digital-analog converter (DAC) and a 4.9V, 1% voltage reference. The product numbers are LTC1661CMS8#TRPBF and ZRT050GC1TA, respectively. The DAC has an MSOP8 package, and the voltage reference has an SOP223 package. LTC1661 datasheet, ZRT050 datasheet.

Once all the parts are soldered on, connections will need to be made. Since each IC may differ in its pinout, refer to the datasheet of the specific IC you purchased. The connections shown here will be for the ICs selected for this demo. See Fig.3 below for how these ICs were connected.

Figure 3: DAC and Voltage Reference wiring diagram

ic-diagram.jpg

Connect the power supply and USB type-B cables into the Analog Discovery Studio, flip the power switch on, and open WaveForms. After selecting the device, open the Scope and Protocol windows. Set the offset of Channel 1 of the oscilloscope to -2.5V and the range to 500mV/div. This will display 0-5V, which is the approximate output range of the DAC. (Note that the voltage reference provides 4.9V, so the DAC will make 1023 steps between 0 and 4.9V in 4.79mV increments. If the variable power supply from the Analog Discovery Studio is used, the range can be modified to any value 0-5V in 10mV increments. However, the voltage reference can provide a more stable signal than the variable power supply.)

To communicate with the DAC, use the protocol analyzer to initially test the system before writing scripts for whatever use cases arise. The exact communication method will depend on the IC manufacturer, DAC resolution, and the serial interface it's designed for. In the case of the LTC1661, it uses a 16-bit input word that consists of a 4-bit control code, a 10-bit voltage value code, and 2 don't care bits. It uses 3-wire SPI as its communication protocol.

Since this DAC uses SPI, the protocol analyzer's “SPI” (red 1 in Fig.4 below) tab will need to be selected. Set the “Select” (2), “Clock” (3), and “DQ0” (4) (Data or “DIN” on the schematic above) DIO pins based on your configuration.

Figure 4: Protocol Analyzer Set Up

Looking at the register loading sequence (Fig.5 below), we see that the chip select (!CS/LD) needs to go low when communicating with the DAC. This means that on the protocol analyzer, “Active” will need to be set to “Low”. From the Fig.5 we can also tell that the most significant (left-most) bit gets transmitted first, so set “First bit” (5) to “MSBit”. “First word” (6) can be either, but if you want to send data in the order you read or write in English, set this to “MSWord”. Since the DAC doesn't need to communicate back to the Analog Discovery Studio, set the “Mode” (7) to “Write”. Set “Command bits” (8) to 4, and “Word bits” (9) to 12. These represent the 4-bit control code and the 10-bit voltage code plus the 2 don't care bits. To check that everything is working, set the “Command (DQ0)” (10) code to b1111 and the “Write(DQ0)” (11) code to b111111111111, press “Run” on the oscilloscope, and press “Execute” in the protocol analyzer. This should result in the output going to 4.9V. Again, these instructions are specific to the LTC1661, and other DACs will have other protocols. This guide should be used as a sample of how to interpret the operation instructions provided with a DAC. If a DAC doesn't have any control bits, leave the command line empty.

Figure 5: Register Loading Sequence