SmartWAV2-SerialMode_R1
SMARTWAV 2
Serial Mode
Vizic Technologies ©2020 | 14
5- Polyphonic Slave Serial Mode 0 - Standard Serial:
5.1- Master-Slave Host Interface:
SmartWAV 2 in this mode acts as a slave peripheral device, providing
a bidirectional serial interface to a master host controller via its
UART(Universal Asynchronous Receiver - Transmitter), the required pins
of Standard Serial Mode 0 are labeled with a white rectangle.
Any microcontroller or processor (AVR, PIC, mbed, raspberry PI,
ARDUINO, beaglebone, 8051, MBED, FPGA, ARM, STM, etc) or PC(by
serial interface RS232) as host, can communicate to the device over
this serial interface at different bps speeds.
The serial protocol is universal and easy to implement:
Serial Data Format: 8 Bits, No Parity, 1 Stop Bit.
BaudRate: 57600 bps(default).
Serial data is true and not inverted.
5.2- Command Protocol Flow Control:
SmartWAV 2 processor is a slave device and all communication and
events must be initiated first by the host, commands consist of a
sequence of data bytes beginning with the command/function byte.
When a command is sent from host to the processor, this executes the
command and when the operation is completed it will always return
a response*, the processor will also always send back a single
acknowledge byte called the ACK (4Fhex, ‘O’ ascii), in the case of
success, or NAK (46hex, ‘F’ ascii), in the case of failure or not
recognized command.
* Commands having specific responses may send back varying numbers of bytes,
depending upon the command and response. Processing and execution will take
a certain amount of time, depending on the command type and the operation
that has to be performed, but once the reply is sent, it means the processor has
finished and its ready to receive more commands.