Starting with MCU+ SDK version 08.05.00, the Tamagawa firmware and examples are based on EnDAT hardware interface from PRU-ICSSG.
## Introduction
Tamagawa diagnostic application does below,
Configures pinmux, GPIO, UART, ICSS clock to 200MHz,
Initializes ICSS0-PRU1,
Loads the initialization section of PRU firmware & executes it.
This application is controlled with a terminal interface using a serial over USB connection between the PC host and the EVM.
Please connect a USB cable between the PC and the EVM/LP.
A serial terminal application (like teraterm/ hyperterminal/ minicom) is then run on the host.
To configure, select the serial port corresponding to the port emulated over USB by the EVM.
The host serial port should be configured to 115200 baud, no parity, 1 stop bit and no flow control.
Connect the Tamagawa encoders via TIDA-00179 cards on a 3 axis board (TIDEP-01015) to the EVM.
On AM243x LP, a Tamagawa encoder can be directly connected using a TIDA-00179 card.
\note
Only single channel configuration with Channel 0 is supported as of now on LP.
The connections between AM243x LP and TIDA-00179 for Channel 0 are:
TAMAGAWA_CHANNEL0_TX -> PRG0_PRU1_GPO1,
TAMAGAWA_CHANNEL0_TX_ENABLE -> PRG0_PRU1_GPO2,
TAMAGAWA_CHANNEL0_RX -> PRG0_PRU1_GPO13,
TAMAGAWA_CHANNEL0_CLK -> PRG0_PRU1_GPO0.
The Tamagawa receiver firmware running on ICSS0-PRU1 provides a defined interface. The Tamagawa diagnostic application interacts with the Tamagawa receiver firmware interface. It then presents the user with menu options to select Data ID code (as defined by Tamagawa) to be sent to the encoder. The application collects the data entered by the user and configures the relevant interface. Then via the Tamagawa receiver interface, the command is triggered. Once the command completion is indicated by the interface, the status of the transaction is checked. If the Status indicates success, the result is presented to the user.
Other than the basic EVM setup mentioned in <ahref="@VAR_MCU_SDK_DOCS_PATH/EVM_SETUP_PAGE.html"target="_blank"> EVM Setup </a>, additional hardware required to run this demo is mentioned below
- **When using CCS projects to build**, import the CCS project and build it using the CCS project menu (see <ahref="@VAR_MCU_SDK_DOCS_PATH/CCS_PROJECTS_PAGE.html"target="_blank"> Using SDK with CCS Projects </a>).
make command (see <ahref="@VAR_MCU_SDK_DOCS_PATH/MAKEFILE_BUILD_PAGE.html"target="_blank"> Using SDK with Makefiles </a>)
- Launch a CCS debug session and run the executable, see <ahref="@VAR_MCU_SDK_DOCS_PATH/CCS_LAUNCH_PAGE.html"target="_blank"> CCS Launch, Load and Run </a>