The USB Add On is an Add On for BASCOM-AVR.
USB support for the AT90USB and MEGA USB series was added to BASCOM (except XMEGA chips). Some USB chips support host and device modes.
The USB162 supports only the device mode. It is a perfect chip for many projects that require an USB interface. The add on only supports the device mode. While the AT90USB1287 is supported and capable of doing both host and device modes, the add on only supports the device mode.
The Add On consists of the following :
-
An include file that is written in BASCOM-AVR BASIC with mixed assembler.
-
An OCX control that can be used for communication with HID devices.
-
A simple VB project that explains how to use the OCX control
-
Three examples that demonstrate CDC (serial class), generic HID device(input and output) , HID keyboard class.
Actual list of supported chips :
- AT90USB82
- AT90USB162
- AT90USB646
- AT90USB1286
- AT90USB1287
- Mega 8U2
- Mega 16U2
- Mega 16U4
- Mega 32U2
- Mega 32U4
(The USB Add requires a BASCOM-AVR serial. If you want to purchase both, use the temporarily serial AA-0000-00001)
The add on is a translation of the Atmel provided USB device mode samples. So all the work of porting this to BASCOM has been done. The samples are intended to be altered by the user.
The add on is not intended to learn you all aspects of USB communication. You need to use either atmel/microchip or other documentation.