This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:eval:user-guides:circuits-from-the-lab:cn0507 [14 Jan 2021 05:12] – user interwiki links Robin Getz | resources:eval:user-guides:circuits-from-the-lab:cn0507 [30 Jul 2021 07:36] (current) – [Registration] Zuedmar Arceo | ||
---|---|---|---|
Line 79: | Line 79: | ||
+ | ===== Creating A new PC Applications ===== | ||
+ | This would discuss on how the customers can make their own PC application that could communicate with the existing firmware using UART communication. This also includes the UART settings and communication protocols | ||
+ | |||
+ | ==== UART Configuration ==== | ||
+ | * Baud rate: 115200 | ||
+ | * 8 bit | ||
+ | * No parity bits | ||
+ | * 1 stop bit | ||
+ | * No flow control | ||
+ | |||
+ | ==== UART Communication Protocol ==== | ||
+ | The microcontroller waits for commands. The command list are listed on the table below. Once the microcontroller receives a command, it will perform what the command is supposed to do. After that, it will send back an output. | ||
+ | |||
+ | === UART Input Packet === | ||
+ | The microcontroller expects an input packet as follows: The **header** contains the total size of the packet and the command hex code. If the command requires an input, the next bits after the header shall contain the input parameters. For example, a cmd_normal command with 1.7 GHz start frequency, 3.4 GHz stop frequency, 68 MHz step size, and port set to Port 1. More details can be found on the image below | ||
+ | |||
+ | {{: | ||
+ | |||
+ | |||
+ | |||
+ | === UART Output Packet === | ||
+ | The general output packet of the microcontroller has the 2 bytes header, 2 byte command, command output (size depends on the command) and the 2 bytes delimeter (0xAAAA). For more details please see the image below. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | |||
+ | === Command List === | ||
+ | The table below will show all the available commands with their respective hex code, input values and the return values. | ||
+ | {{: | ||
+ | |||
+ | =====Registration===== | ||
+ | <WRAP round tip 80% > | ||
+ | Receive software update notifications, | ||
+ | </ | ||
+ | |||
+ | //End of Document// | ||