]>
Commit | Line | Data |
---|---|---|
2e895291 GM |
1 | ------------------------------------------------------------------------------- |
2 | Lisa/M USB HID example (USB Full-Speed and SPI) | |
3 | ------------------------------------------------------------------------------- | |
4 | ||
5 | This capture is taken from the libopencm3 example for a USB HID device on the | |
fc997d14 | 6 | Paparazzi Lisa/M board. In this applicaton an SPI accellerometer is read and |
2e895291 GM |
7 | the values are transmitted on a USB IN endpoint as mouse movement. |
8 | ||
fc997d14 UH |
9 | Details: |
10 | http://libopencm3.org | |
11 | http://libopencm3.git.sourceforge.net/git/gitweb.cgi?p=libopencm3/libopencm3;a=tree;f=examples/stm32/f1/lisa-m/usb_hid | |
12 | http://paparazzi.enac.fr/wiki/User/LisaM | |
13 | ||
14 | ||
15 | Logic analyser setup | |
2e895291 GM |
16 | -------------------- |
17 | ||
47cd3c8f | 18 | The logic analyzer used was an Openbench Logic Sniffer (at 50MHz): |
2e895291 GM |
19 | |
20 | Probe Signal | |
fc997d14 | 21 | --------------- |
2e895291 GM |
22 | 0 USB_DM |
23 | 1 USB_DP | |
24 | 2 SPI_NCS | |
25 | 3 SPI_SCK | |
26 | 4 SPI_MOSI | |
27 | 5 SPI_MISO | |
28 | ||
47cd3c8f | 29 | The sigrok command line used was: |
2e895291 | 30 | |
47cd3c8f UH |
31 | sigrok-cli -d 0:samplerate=50mhz:rle=on \ |
32 | -p 1=USB_DM,2=USB_DP,3=SPI_NCS,4=SPI_SCK,5=SPI_MOSI,6=SPI_MISO \ | |
33 | --time=50ms -o lisa_m_usb_spi.sr | |
2e895291 GM |
34 | |
35 | The OLS can't actually capture 50ms, so it just captures as much as it can | |
fc997d14 | 36 | buffer. No triggering was used. |
2e895291 | 37 |