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_LPC11U.h */
ceri 0:cbe01b678bd4 2 /* Endpoint configuration for LPC11U */
ceri 0:cbe01b678bd4 3 /* Copyright (c) 2011 ARM Limited. All rights reserved. */
ceri 0:cbe01b678bd4 4
ceri 0:cbe01b678bd4 5 #define NUMBER_OF_LOGICAL_ENDPOINTS (5)
ceri 0:cbe01b678bd4 6 #define NUMBER_OF_PHYSICAL_ENDPOINTS (NUMBER_OF_LOGICAL_ENDPOINTS * 2)
ceri 0:cbe01b678bd4 7
ceri 0:cbe01b678bd4 8 /* Define physical endpoint numbers */
ceri 0:cbe01b678bd4 9
ceri 0:cbe01b678bd4 10 /* Endpoint No. Type(s) MaxPacket DoubleBuffer */
ceri 0:cbe01b678bd4 11 /* ---------------- ------------ ---------- --- */
ceri 0:cbe01b678bd4 12 #define EP0OUT (0) /* Control 64 No */
ceri 0:cbe01b678bd4 13 #define EP0IN (1) /* Control 64 No */
ceri 0:cbe01b678bd4 14 #define EP1OUT (2) /* Int/Bulk/Iso 64/64/1023 Yes */
ceri 0:cbe01b678bd4 15 #define EP1IN (3) /* Int/Bulk/Iso 64/64/1023 Yes */
ceri 0:cbe01b678bd4 16 #define EP2OUT (4) /* Int/Bulk/Iso 64/64/1023 Yes */
ceri 0:cbe01b678bd4 17 #define EP2IN (5) /* Int/Bulk/Iso 64/64/1023 Yes */
ceri 0:cbe01b678bd4 18 #define EP3OUT (6) /* Int/Bulk/Iso 64/64/1023 Yes */
ceri 0:cbe01b678bd4 19 #define EP3IN (7) /* Int/Bulk/Iso 64/64/1023 Yes */
ceri 0:cbe01b678bd4 20 #define EP4OUT (8) /* Int/Bulk/Iso 64/64/1023 Yes */
ceri 0:cbe01b678bd4 21 #define EP4IN (9) /* Int/Bulk/Iso 64/64/1023 Yes */
ceri 0:cbe01b678bd4 22
ceri 0:cbe01b678bd4 23 /* Maximum Packet sizes */
ceri 0:cbe01b678bd4 24
ceri 0:cbe01b678bd4 25 #define MAX_PACKET_SIZE_EP0 (64)
ceri 0:cbe01b678bd4 26 #define MAX_PACKET_SIZE_EP1 (64) /* Int/Bulk */
ceri 0:cbe01b678bd4 27 #define MAX_PACKET_SIZE_EP2 (64) /* Int/Bulk */
ceri 0:cbe01b678bd4 28 #define MAX_PACKET_SIZE_EP3 (64) /* Int/Bulk */
ceri 0:cbe01b678bd4 29 #define MAX_PACKET_SIZE_EP4 (64) /* Int/Bulk */
ceri 0:cbe01b678bd4 30
ceri 0:cbe01b678bd4 31 #define MAX_PACKET_SIZE_EP1_ISO (1023) /* Isochronous */
ceri 0:cbe01b678bd4 32 #define MAX_PACKET_SIZE_EP2_ISO (1023) /* Isochronous */
ceri 0:cbe01b678bd4 33 #define MAX_PACKET_SIZE_EP3_ISO (1023) /* Isochronous */
ceri 0:cbe01b678bd4 34 #define MAX_PACKET_SIZE_EP4_ISO (1023) /* Isochronous */
ceri 0:cbe01b678bd4 35
ceri 0:cbe01b678bd4 36 /* Generic endpoints - intended to be portable accross devices */
ceri 0:cbe01b678bd4 37 /* and be suitable for simple USB devices. */
ceri 0:cbe01b678bd4 38
ceri 0:cbe01b678bd4 39 /* Bulk endpoint */
ceri 0:cbe01b678bd4 40 #define EPBULK_OUT (EP2OUT)
ceri 0:cbe01b678bd4 41 #define EPBULK_IN (EP2IN)
ceri 0:cbe01b678bd4 42 /* Interrupt endpoint */
ceri 0:cbe01b678bd4 43 #define EPINT_OUT (EP1OUT)
ceri 0:cbe01b678bd4 44 #define EPINT_IN (EP1IN)
ceri 0:cbe01b678bd4 45 /* Isochronous endpoint */
ceri 0:cbe01b678bd4 46 #define EPISO_OUT (EP3OUT)
ceri 0:cbe01b678bd4 47 #define EPISO_IN (EP3IN)
ceri 0:cbe01b678bd4 48
ceri 0:cbe01b678bd4 49 #define MAX_PACKET_SIZE_EPBULK (MAX_PACKET_SIZE_EP2)
ceri 0:cbe01b678bd4 50 #define MAX_PACKET_SIZE_EPINT (MAX_PACKET_SIZE_EP1)
ceri 0:cbe01b678bd4 51 #define MAX_PACKET_SIZE_EPISO (MAX_PACKET_SIZE_EP3_ISO)