background image

 

MT­DB­U2

   

                            Manual

 

October 29, 2015

1

http://www.mattairtech.com/

Содержание MT-DB-U2

Страница 1: ...MT DB U2 Manual October 29 2015 1 http www mattairtech com...

Страница 2: ...to 5 5V 12 Externally Powered 3 0V to 3 6V 12 USB Shield 12 Arduino Compatibility 13 Features 13 Pin Mapping 13 Installation 14 Using Arduino 14 Using Libraries 15 USB Serial interface 15 CDC Bootload...

Страница 3: ...ble with HV programming The USB connections are also routed to header pins which allows for panel mount USB connectors The PCB is high quality with ENIG gold plated finish red soldermask and white scr...

Страница 4: ...mory Endpoint 0 for Control Transfers from 8 up to 64 bytes 4 Programmable Endpoints IN or Out Directions Bulk Interrupt and IsochronousTransfers Programmable maximum packet size from 8 to 64 bytes Pr...

Страница 5: ...5x5mm TQFP32 packages Operating Voltages 2 7 5 5V Operating temperature Industrial 40 C to 85 C Maximum Frequency 8 MHz at 2 7V Industrial range 16 MHz at 4 5V Industrial range October 29 2015 5 http...

Страница 6: ...MT DB U2 Manual MT DB U2 Hardware MT DB U2 Hardware Layout Header Pins October 29 2015 6 http www mattairtech com...

Страница 7: ...MT DB U2 Manual Solder Jumpers October 29 2015 7 http www mattairtech com...

Страница 8: ...d to this pin when solder jumper J2 is set The LED is connected to ground through a 240 ohm resistor The user application is free to use this LED Drive the pin high to turn on the LED D7 HWB This pin...

Страница 9: ...n external clock is is used solder jumper J6 can be switched to connect the microcontroller pin directly to header pin rather than the onboard crystal An external clock signal can then be applied to p...

Страница 10: ...pullup on the reset line ISP Header The ISP header is configured by default to allow ISP programming using an external programmer That is RESET is routed to pin 5 Pin 1 is marked on the board it is th...

Страница 11: ...3V Vcc 5V UVcc Vcc Disable 8 MHz WARNING Care must be taken when configuring the solder jumpers It is possible to cause permanent damage to the device or the power supply by improperly setting the ju...

Страница 12: ...Externally Powered 3 0V to 3 6V In this configuration solder jumper J8 is set such that both UVcc and 3 3V are connected to Vcc Vcc is then supplied externally with 3 0V to 3 6V on the Vcc header pin...

Страница 13: ...as the original HardwareSerial cpp ie Serial println Hello Based on LUFA USB library by Dean Camera www fourwalledcubicle com USART1 also available can be used at the same time Arduino AVRDUDE compati...

Страница 14: ...ware tools avr avr include avr power h with arduino user directory hardware MattairTech install power h 8 Now plug in the board with the jumper installed so that the bootloader runs Point the driver i...

Страница 15: ...s a reorganized subset of the LUFA USB library by Dean Camera fourwalledcubicle com It implements a CDC class device which appears as a COM port on the host computer A terminal emulator or the Arduino...

Страница 16: ...rial The default setting is USB_WAITFORCONNECT_DISABLED USB_AUTORESET_ENABLED USB_AUTORESET_DISABLED If USB_AUTORESET_ENABLED is set the bootloader will be invoked automatically by the Arduino IDE If...

Страница 17: ...one and after any subsequent printing during tone generation Otherwise some data may not be sent until the tone stops and autoflushing returns to normal operation The USB LED handling if enabled will...

Страница 18: ...oblems ie a delayed response to user input then change both buffer sizes to 1 CDC Bootloader The CDC bootloader uses the AVR109 protocol and can be used withing the Arduino environment or directly wit...

Страница 19: ...rrently list the bootloader directory as caterina the bootloader used on the Leonardo The actual bootloader is a modified version of the LUFA CDC bootloader by Dean Camera lufa lib org It resides in t...

Страница 20: ...3886 and install Once FLIP is installed the DFU bootloader drivers can be loaded Install the HWB jumper and power up the board or press reset This will enter the DFU bootloader The LED should be puls...

Страница 21: ...er and power up the board or press reset This will enter the DFU bootloader The LED should be pulsing Now launch the FLIP utility When it has loaded click on the chip icon and select the Atmega32U2 Oc...

Страница 22: ...e quickly loaded onto the ATmega32U2 You may also program the EEPROM If so click on Select EEPROM at the bottom Then click on the File menu and open the appropriate eep file You will have to change th...

Страница 23: ...wnload version 0 5 4 or higher from http dfu programmer sourceforge net The following commands can be used dfu programmer atmega32u2 erase dfu programmer atmega32u2 flash eeprom YourHex eep if applica...

Страница 24: ...bitlash net type HELP 1706 bytes free print free bytes free 1702 bytes free pinMode 13 1 d13 1 x 255 d 0 function brighter if x 255 d 0 else a13 x snooze 2 saved function dimmer if x 0 d 1 else a13 x...

Страница 25: ...y examples that can be easily compiled for the ATmega32U2 See the CDC Bootloader section for details on installing the CDC Serial driver The old demo requires an ANSI terminal to allow drawing of the...

Страница 26: ...MT DB U2 Manual Schematic Schematic October 29 2015 26 http www mattairtech com...

Страница 27: ...pport forum is planned Support for AVRs in general can be found at AVRfreaks http www avrfreaks net There I monitor the forums section as the user physicist Justin Mattair MattairTech LLC PO Box 1079...

Страница 28: ...TRATION OR EVALUATION PURPOSES ONLY It is not a finished product and may not yet comply with some or any technical or legal requirements that are applicable to finished products including without limi...

Страница 29: ...tor to power itself be sure not to exceed the regulator maximum current output CAUTION The MT DB U2 contains static sensitive components Use the usual ESD procedures when handling CAUTION Improper fus...

Страница 30: ...B 8KB SRAM 5V 500mA LDO regulator 3V 30V input Auto power source selection IC USB External 16MHz and 32 768KHz crystals Arduino compatible CDC or DFU bootloader MT DB X4 USB AVR XMEGA board ATxmega128...

Отзывы: