This is a simple terminal used for send and receive data via SPI (p5, p6, p7). It use the usb as serial (9600bps) interface port.
Commands:
#
All the numeric constants MUST be in Hexadecimal #
- C[level] - Change the [level] of the CS line (p8)
- D[data] - Send single byte of [data]
- M[data],[data], .. ,[data] - Send multiple bytes of [data]
- F[data],[size] - Send a flow sized [size] of [data] bytes
- R[size] - Receive [size] bytes
Examples
- C0 - Put the CS at logic level 0
- C1 - Put the CS at logic level 1
- Dab - Send out the byte 0xab
- M55,aa,01,ab,cd - Send out the bytes 0x55, 0xaa, 0x01, 0xab, 0xcd
- Fff,05 - Send out 5 bytes of value 0xff
- R10 - Receive 16 bytes
mbed.bld@0:7beba59b8a7d, 2014-05-19 (annotated)
- Committer:
- trombettamichele
- Date:
- Mon May 19 18:45:27 2014 +0000
- Revision:
- 0:7beba59b8a7d
Simple SPI Terminal
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
trombettamichele | 0:7beba59b8a7d | 1 | http://mbed.org/users/mbed_official/code/mbed/builds/8a40adfe8776 |