DM240415 Microchip Technology, DM240415 Datasheet - Page 19

Accessory Development Starter Kit For Android General Purpose

DM240415

Manufacturer Part Number
DM240415
Description
Accessory Development Starter Kit For Android General Purpose
Manufacturer
Microchip Technology
Series
-r
Datasheet

Specifications of DM240415

Processor To Be Evaluated
PIC24FJ256GB110-I/PT
Processor Series
PIC24F
Data Bus Width
16 bit
Interface Type
USB
Operating Supply Voltage
3.3 V
Design Resources
PIC24F ADK Schematic
Main Purpose
Reference Design, Tablet
Embedded
Yes, MCU, 16-Bit
Utilized Ic / Part
PIC24F
Primary Attributes
Android OS, Development Platform for Accessories, Arduino Compatible
Secondary Attributes
Royalty Free, No Fee Licensed Software Library
Lead Free Status / Rohs Status
 Details

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DM240415
Manufacturer:
MICROCHIP
Quantity:
12 000
Microchip's Accessory Framework for Android(tm)
4.2.1.2
4.2.1.3
HardwareProfile.h provides configuration information to the source version of the library. This tells the library and demo code
information about the hardware that it needs to know for configuration, such as the system clock speed, which pins are being
used for certain stack or demo features, etc.
When moving this library to your own hardware platform, you will need to create your own HardwareProfile.h file that
specifies the requirements of your board.
usb_config.h is used to configure the build options of the source version of this library. At the moment this is also required in
the pre-compiled format as well.
When using with the pre-compiled format, please do not modify this file as it must match exactly how the library
was built.
For users developing with the source version of the library, this file provides several configuration options for customizing the
USB stack. There are a few options that are required.
The USB_SUPPORT_HOST option must be enabled.
The USB_ENABLE_TRANSFER_EVENT option must be enabled.
The USB_HOST_APP_DATA_EVENT_HANDLER must be defined and the function that is referenced must be implemented.
The USB_ENABLE_1MS_EVENT must be enabled.
The AndroidTasks (
called periodically from the user application.
#define
The USB_SUPPORT_BULK_TRANSFERS should be defined.
For use with PIC32, the USB_PING_PONG_MODE option must be set to USB_PING_PONG__FULL_PING_PONG. This is
also recommended for PIC24F but not required.
#define
If you modify the TPL in the usb_config.c ( see page 15) file (see section usb_config.c ( see page 15) for more details),
then the NUM_TPL_ENTRIES and NUM_CLIENT_DRIVER_ENTRIES entries in the usb_config.h file should be updated to
match.
Below is a complete example of a usb_config.h file for an Android accessory demo:
#define
#define
#define
#define
#define
#define
#define
#define
#define
#define
{
}
HardwareProfile.h
usb_config.h
USBTasks()
USBHostTasks();
AndroidTasks();
USB_PING_PONG_MODE
USB_SUPPORT_HOST
USB_PING_PONG_MODE
NUM_TPL_ENTRIES 2
NUM_CLIENT_DRIVER_ENTRIES 1
USB_ENABLE_TRANSFER_EVENT
USB_HOST_APP_DATA_EVENT_HANDLER USB_ApplicationDataEventHandler
USB_ENABLE_1MS_EVENT
USB_MAX_GENERIC_DEVICES 1
USB_NUM_CONTROL_NAKS 20
USB_SUPPORT_INTERRUPT_TRANSFERS
see page 25)() function should be added to the USBTasks() function call or it should be
USB_PING_PONG__FULL_PING_PONG
USB_PING_PONG__FULL_PING_PONG
\
\
\
\
14
14
4

Related parts for DM240415