ADC Niose test Connect four analog signals to your MBED. and then run the Windows app. The four traces are displayed on an oscilloscope like display. I have used a USB HID DEVICE link, so connections to D+, D- are required. The MBED code is otherwise quite basic, So you can modify it to your own test needs. Additionaly, there is a 16 bit count value, in my MBED code Mainly to test if MSB & LSB are correct.

Dependencies:   mbed

Committer:
ceri
Date:
Sat Nov 19 22:54:22 2011 +0000
Revision:
0:cbe01b678bd4
just enough to work

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ceri 0:cbe01b678bd4 1 /* USBEndpoints.h */
ceri 0:cbe01b678bd4 2 /* USB endpoint configuration */
ceri 0:cbe01b678bd4 3 /* Copyright (c) 2011 ARM Limited. All rights reserved. */
ceri 0:cbe01b678bd4 4
ceri 0:cbe01b678bd4 5 #ifndef USBENDPOINTS_H
ceri 0:cbe01b678bd4 6 #define USBENDPOINTS_H
ceri 0:cbe01b678bd4 7
ceri 0:cbe01b678bd4 8 /* SETUP packet size */
ceri 0:cbe01b678bd4 9 #define SETUP_PACKET_SIZE (8)
ceri 0:cbe01b678bd4 10
ceri 0:cbe01b678bd4 11 /* Options flags for configuring endpoints */
ceri 0:cbe01b678bd4 12 #define DEFAULT_OPTIONS (0)
ceri 0:cbe01b678bd4 13 #define SINGLE_BUFFERED (1U << 0)
ceri 0:cbe01b678bd4 14 #define ISOCHRONOUS (1U << 1)
ceri 0:cbe01b678bd4 15 #define RATE_FEEDBACK_MODE (1U << 2) /* Interrupt endpoints only */
ceri 0:cbe01b678bd4 16
ceri 0:cbe01b678bd4 17 /* Endpoint transfer status, for endpoints > 0 */
ceri 0:cbe01b678bd4 18 typedef enum {
ceri 0:cbe01b678bd4 19 EP_COMPLETED, /* Transfer completed */
ceri 0:cbe01b678bd4 20 EP_PENDING, /* Transfer in progress */
ceri 0:cbe01b678bd4 21 EP_INVALID, /* Invalid parameter */
ceri 0:cbe01b678bd4 22 EP_STALLED, /* Endpoint stalled */
ceri 0:cbe01b678bd4 23 } EP_STATUS;
ceri 0:cbe01b678bd4 24
ceri 0:cbe01b678bd4 25 /* Include configuration for specific target */
ceri 0:cbe01b678bd4 26 #if defined(TARGET_LPC1768) || defined(TARGET_LPC2368)
ceri 0:cbe01b678bd4 27 #include "USBEndpoints_LPC17_LPC23.h"
ceri 0:cbe01b678bd4 28 #elif defined(TARGET_LPC11U24)
ceri 0:cbe01b678bd4 29 #include "USBEndpoints_LPC11U.h"
ceri 0:cbe01b678bd4 30 #else
ceri 0:cbe01b678bd4 31 #error "Unknown target type"
ceri 0:cbe01b678bd4 32 #endif
ceri 0:cbe01b678bd4 33
ceri 0:cbe01b678bd4 34 #endif