|
Micropendous4
Open Hardware Development Board for the AT90USB1287
Micropendous4 is an Open Hardware Development Board for Atmel's AT90USB1287 USB AVR Microcontroller. It has both a USB-miniB connector and a USB-A connector and an on-board USB switch to switch the active connector. It also includes 128kbytes of external SRAM. The relevant KiCAD design files can be found in the latest Micropendous Distribution or via SVN in the /Micropendous/Design/Micropendous4 directory. Pinout
Features
QuickNotes
MCU = at90usb1287 BOARD = USER F_CPU = 16000000 /* disable JTAG to allow corresponding pins to be used */
#if ((defined(__AVR_AT90USB1287__) || defined(__AVR_AT90USB647__) || \
defined(__AVR_AT90USB1286__) || defined(__AVR_AT90USB646__) || \
defined(__AVR_ATmega16U4__) || defined(__AVR_ATmega32U4__) || \
defined(__AVR_ATmega32U6__)))
// note the JTD bit must be written twice within 4 clock cycles to disable JTAG
// you must also set the IVSEL bit at the same time, which requires IVCE to be set first
// port pull-up resistors are enabled - PUD(Pull Up Disable) = 0
MCUCR = (1 << JTD) | (1 << IVCE) | (0 << PUD);
MCUCR = (1 << JTD) | (0 << IVSEL) | (0 << IVCE) | (0 << PUD);
#endifSwitching Active USB ConnectorThe board has two USB connectors selectable with the USB-B/^A header, USB-miniB (device mode) and USB-A (host mode). The USB-B/^A header has two pins, one GND, and one connected to the USB switch control. If the USB switch control is left open or set to logic HIGH, the USB-miniB connector is active (left picture below). If it is GNDed or set to logic LOW, the USB-A connector is active (right picture below). Both connectors share GND and VBUS.
Enabling OTGOn-The-Go (OTG) is a USB mode where connected devices negotiate which will be the host and which will be the device. For example, a photo printer might host a camera but will become a device when connected to a PC. To enable OTG mode the ENG resistor must be mounted. This resistor connects the miniB USB connector's ID pin to pin PE3 of the USB AVR. Note that mounting this resistor will mean you cannot use pin PE3 in your application. The ENH resistor is a standard 0805 resistor and can be any value between 0 and 100 Ohm. You can also just short the two pads with some wire or solder. Be careful not to solder to the USB-A connector's shield.
Removing your Micropendous4 from a BreadboardBe careful when removing your Micropendous4 from a Breadboard. Be careful not to damage the SRAM IC. Use a mini screwdriver to pry one corner, then another, then another, then start from the first, etc... It should take you about 20 or so careful corner nudges before the Micropendous4 will separate from a breadboard.
|