]>
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 | ||
fc997d14 | 18 | The capture was taken using the Openbench Logic Sniffer at a sample rate |
2e895291 GM |
19 | of 50MHz. |
20 | ||
21 | Probe Signal | |
fc997d14 | 22 | --------------- |
2e895291 GM |
23 | 0 USB_DM |
24 | 1 USB_DP | |
25 | 2 SPI_NCS | |
26 | 3 SPI_SCK | |
27 | 4 SPI_MOSI | |
28 | 5 SPI_MISO | |
29 | ||
30 | The command line used was: | |
31 | ||
32 | sigrok-cli -d 0:samplerate=50mhz:rle=on \ | |
33 | -p 1=USB_DM,2=USB_DP,3=SPI_NCS,4=SPI_SCK,5=SPI_MOSI,6=SPI_MISO \ | |
34 | --time=50ms -o lisa_m_usb_spi.sr | |
35 | ||
36 | The OLS can't actually capture 50ms, so it just captures as much as it can | |
fc997d14 | 37 | buffer. No triggering was used. |
2e895291 | 38 |