The T-Format System Solution is a
communications-only demonstration. The demo sends a command, receives the response,
and checks for errors. This pattern is repeated for each of the T-Format commands.
While running the demo, you can monitor output signals of the MCU with a logic
analyzer or scope. Example transactions for Data ID 2 and Data ID D are shown in
Figure 3-7 and Figure 3-8.
Note: Only the F2837xD requires an
external connection between the CLB's generated SPI clock and the SPICLK pin. Other
devices have an internal connection between the CLB and the SPICLK. For devices with
an internal connection, the SPICLK can also be brought out to a pin for monitoring.
The test connection for SPI CLK is shown in the device input/output diagrams in
Section 2.3.5.2.
Examine the waveforms:
- The SPI CLK frequency is 2.5 MHz
as required by the T-Format specification.
- The ControlField in the request
matches the ControlField in the response. For example, in Data ID2, the
ControlField is 0x49. The example software checks for this match and will halt
if there is an error.
- The number of fields in the
response is expected based on the request.
- The CRCField (last field) in the
response is correct for the data received. The example software checks for this
and will halt if there is an error.
- Verify the encoder ID based on
your encoder's specification.
- Try different cable lengths, up
to 100 m, and observe the change in the waveforms. Only the time between the
request and response should change.
Manually turn the motor or encoder's
shaft:
- Turn the shaft in one direction.
Notice the position and turns in the watch-window changes.
- Turn the shaft in the opposite
direction. Observe the position and turns change in the opposite direction.