CASP UDIO Target Example Project

This project demonstrates how to model target for exchanging UDIO data with the host or other device. Arduino Uno is used for this example, other boards supported by CASP can also be used with minimal changes to this model. The model does the following

·         Reads A0 pin value and transfer the value to the host as a UDI 32-bit integer data at byte index 0.

·         Controls the frequency of the on-board LED based on the frequency value received from host at byte index 0 as a UDO 32-bit floating point value.

·         Controls pin-3 (PWM) based on the amplitude value received from the host at byte index 4 as a UDO 32-bit integer value.

Getting Started

1.      Ensure, the board is connected to the computer.

2.      Open the project. The model looks similar to below figure.

3.      Open ‘Setup Simulation’ window and change the ‘Target Programmer Port’ to which the board is connected.

4.      Click on Run button to program the board.