Engineers in the Wild: Writing SYZYGY DNA Using the ADP3450

Engineers in the Wild Post 5

Editor’s Note – In this series, we will take a behind the scenes look at how an engineer tackles a project from beginning to end. What challenges will come up? How can we face problems and come up with solutions? Aside from project completion, what are successes that we can celebrate along the way?

Now that the DNA data has been set up (discussed in the previous post), it’s time for the data to be written inside the flash of the attiny44a microcontroller available on the designed boards. The firmware which has been loaded into the attiny to perform SYZYGY® operations was acquired from the SYZYGY® GitHub.

Now, it’s time to bring out the ADP3450! As illustrated in Figure 1 below, is the ADP connected to the designed test Zmod boards which are mounted on the Eclypse Z7. The connections are the ground and the two I2C data signals (SCL and SDA) going to the microcontroller (note that the microcontroller is powered by the 3.3V on the Zmod connector provided by the Eclypse Z7).

Zmod I2C Connections to the ADP3450
Figure 1: Zmod I2C Connections to the ADP3450

Once the connections were set up and the ADP3450 connect to the PC, WaveForms was opened. The protocol option in Waveforms has been used to communicate via I2C to the microcontroller. The I2C 7-bit address of the microcontroller depend to which Zmod connector the board is connected to. Zmod connector A on the Eclypse Z7 provides 7-bit I2C address 0x30 (Hexadecimal) while Zmod connector B provides 7-bit address 0x31. It is also important to note that the attiny microcontroller on the Zmod is, according to its firmware, set up as an I2C slave.

The I2C tab on WaveForms protocol panel has been selected. Since we need to communicate to the attiny as an I2C master, The Master tab has been chosen. Figure 2 below illustrates the I2C master setting applied to the WaveForms software.

WaveForms I2C Settings
Figure 2: WaveForms I2C Settings

The digital outputs DIO 0 and DIO 1 have been used for I2C communication! Also note that a ground connection is necessary for I2C to function properly. The DNA data in the Excel sheet has been copied to a row with the low byte of the address of every byte under the data so as to make it easy to copy and paste to the WaveForms software (Figure 3).

DNA Data in a Row in the Excel Sheet
Figure 3: DNA Data in a Row in the Excel Sheet

It is important to note that the DNA data begins on 16-bit address 0x8000 in the flash memory of the attiny on the Zmod. The DNA data is copied 16 bytes at a time into the write panel of WaveForms and is written by pressing the write button. Important: after each of the 16 bytes are written it is important to update the address!

WaveForms DNA Data Writing via I2C (First 16 bytes)
Figure 4: WaveForms DNA Data Writing via I2C (First 16 bytes)
WaveForms DNA Data Writing via I2C (Second and Third 16 bytes)
Figure 5: WaveForms DNA Data Writing via I2C (Second and Third 16 bytes)

Once the data has been written, WaveForms also has a read function, which is very convenient in this case to confirm the correct data has been written in the correct addresses. Once the DNA data has been written and confirmed by reading back, we are ready to begin. Switching off and on again the Eclypse should lead to the SmartVIO controller of the Eclypse to enable the VIO voltages for the Zmod or Zmods. This will be confirmed by the small led behind the Zmod connector on the Eclypse Z7 to go ON as shown in the image below.

Eclypse Z7 with Correctly Configured Zmods
Figure 6: Eclypse Z7 with Correctly Configured Zmods

Now that the Zmods have been correctly configured, the next step is to analyze some signals outputted by the ZYNQ 7000 chip which are routed to the Zmod ports! This will be done using the very handy Analog Discovery PRO (ADP3450) and will be discussed in detail in the next post or two!

Author

Be the 1st to vote.

Leave a Reply

Your email address will not be published. Required fields are marked *