SchmalzHaus logoDocumentation UBW32 Firmware
version 1.0 for UBW32 Boards
Back to main UBW32 page

Description:
The firmware (application) that comes with the UBW32 gives the user a basic set of input/output commands. For example, the user can set any I/O pin to be an input or output, read the inputs, write to the outputs, etc. Future versions of the firmware will allow more complicated commands (like analog input, timing related commands, PWM, SPI, USART, etc.)

Version Notes:
Commands:
    Notes for ALL commands:

    The "C" Command:
    The "O" Command:
    The "I" Command
    The "V" Command
    The "R" Command
   The "PD" Command    The "PI" Command
   The "PO" Command     The "CU" Command
<Parameter>
<Value>
<Value> meaning
1
0 or 1
0 = Turn off "OK" packets
1 = Turn on "OK" packets (default)

    The "BL" Command : Enter Boot Loader mode     The "T1" Command  : Execute Test 1
Errors Messages:
  
There are two ways that one might communicate with a UBW32:
  1. By typing commands into a terminal emulator on a computer, to 'test out' commands and how the system is working.
  2. By writing a computer program that will automatically generate commands to send to a UBW32.
The long error messages are very useful for debugging the system, and especially when using the UBW32 by hand from a terminal emulator. The long messages are not as useful when running under scenario 2) above, as the PC application has a much harder time parsing the long error messages.

To help make the error messages useful in both scenarios, each error message starts out with an exclamation mark "!" and then is immediately followed by an integer error number, then a space, and then the long text of the error message with a <CR><LF> at the end. This means that if your PC application wants to parse the error message, it can look in the data coming back from the UBW32 for the exclamation mark "!" and then read in the error number and ignore everything else until the next <CR><LF>.

Error Message List:
Version 1.0 Files:
    ZIP file of all project and source files necessary to build 1.0 here.
    v1.0 HEX here (for programming a UBW32)
    Browse the v1.0 build files here



Back to main UBW page
Questions? E-mail me at my e-mail address