MattairTech MT-X1S Manual Download Page 14

MT-X1S

Manual

prevents VBUS from rising to the level of the external voltage. 

Note that there is a minimum load of 

100uA for this regulator.

 The MT­X1S can consume less than 75uA in the deepest sleep modes. An 

onboard load resistor between 3.3V and Gnd is provided to ensure that this requirement is met. A 

MicroSD card inserted may consume enough to meet the specification without the resistor, thus it can 
be disconnected by using solder jumper J32.

The 3.3V regulator has thermal protection and foldback current limiting. There is a 10uF 

capacitor on both the input and output. Note that 10uF is the maximum allowed by the USB 

specification. When using the external header, additional capacitance may be needed with higher 
impedance voltage sources (ie: batteries, long cable runs). The regulator input can also be routed 

through J2 to the header pin labeled 5V (near the relay driver). 

Voltages greater than 5.5V on the 

external power input header require J2 to be disconnected, which will disable the relay driver kickback 

protection.

Clock Sources / RTC

By default, a 32.768KHz crystal is installed and connected to the TOSC pins of the XMEGA 

(R0 and R1). An HC49 crystal landing is available as well, with 22pF load capacitors preinstalled. An 
external clock can also be connected to pin R1. There are several internal clock options as well. The 

demo program makes use of the 32MHz internal RC oscillator. This oscillator is configured to be auto­
calibrated by a DFLL, which uses the 32.768KHz crystal as input. The crystal is also the source for the

RTC. A 2MHz RC oscillator and two different 32KHz oscillators are also available. A PLL and 
prescalers can be used to obtain the various clocks. Be aware that the ATxmega128a1u requires both

the 2MHz and 32MHz oscillators to be running and both DFLLs to be enabled for either DFLL to 
operate due to errata. Atmel ASF (Atmel Software Framework) does not support this arrangement, but

the example code shows how to set this up. Also note that the DFLL calibrated oscillators will still not 
be as accurate as an external high speed crystal. If using an external crystal, it must be 0.4MHz to 

16MHz. The PLL can be used to obtain higher clock speeds.

 
 

Programming Headers

 

The PDI header has the standard 6­pin layout. Because an onboard programmer is provided, 

an external programmer is not necessary. However, debugging requires use of an external debugger 

connected to the PDI header or the JTAG header. Because the RX/D pin is shared with the XMEGA 
PDI_DATA pin, an external programmer/debugger cannot be used when using the serial bridge as this

would cause contention. Jumper J19 can be disconnected to avoid this contention, but the onboard 
serial bridge will no longer be usable (an external bridge can be used if needed for debugging). 

Alternatively, the JTAG header can be used for debugging. When using an external debugger or 
programmer on the PDI header, the USB AVR should be in any mode other than the PDI programmer.

An ISP header is available for programming the USB AVR. It can also be programmed over USB (see 
Firmware Updates).

Solder Jumpers / USB Shield

 

There are many solder jumpers on the PCB connecting XMEGA pins to the onboard peripheral

devices. This allows unused devices to be disconnected, freeing up the XMEGA pin, which is also 

March 2, 2017

14

http://www.mattairtech.com/

Summary of Contents for MT-X1S

Page 1: ...MT X1S Manual March 2 2017 1 http www mattairtech com...

Page 2: ...32KB SPI SRAM 15 RS 232 RS 485 15 Audio Amplifier 16 1 25V Precision Reference 16 Temperature Sensor 16 8 channel Lowside Relay Driver 17 Installation 18 AVRISP mkII Compatible PDI Programmer 22 Usin...

Page 3: ...VR which provides these features will automatically sleep when USB is disconnected Alternatively the XMEGA can be connected directly to the USB connector The board can be powered via USB or an externa...

Page 4: ...1 25V precision voltage reference Use for signed differential conversions from 0V to 2 5V at the pin Routed to both reference inputs via solder jumpers Choice of RS 232 or RS 485 serial interface wit...

Page 5: ...USARTs with IrDA support for one USART Four two wire interfaces with dual address match I2C and SMBus compatible Four serial peripheral interfaces SPIs AES and DES crypto engine CRC 16 CRC CCITT and...

Page 6: ...and packages l 78 Programmable I O pins l 100 lead TQFP l 100 ball BGA l 100 ball VFBGA Operating voltage l 1 6 3 6V Operating frequency l 0 12MHz from 1 6V l 0 32MHz from 2 7V March 2 2017 6 http ww...

Page 7: ...A F1 J37 disconnects the debouncing capacitor of the Reset button for use with the XMEGA J38 connects Reset button to XMEGA PDI_CLK also reset Board Variants Rev B only Board Variants Rev B only Revis...

Page 8: ...ected it will turn off both the STS and PWR LEDs and enter sleep The RESET button should not be connected to the XMEGA The AT90USB162 will reset the XMEGA after the button is pressed Because the seria...

Page 9: ...3 Pin D1 to LED_2 J14 Pin D2 to LED_3 J15 Pin D3 to LED_4 J16 SPI F SCK pin F7 to relay driver clock input J17 SPI F MOSI pin F5 to relay driver SI input J18 USART F0 RXD pin F2 to AT90USB162 USART TX...

Page 10: ...tion above J37 The XMEGA reset line is also the PDI_CLK line used for programming debugging It cannot have a capacitor installed J37 disconnects the debouncing capacitor of the Reset button for use wi...

Page 11: ...when debugging If serial TX is required when debugging the JTAG header can be used Alternatively an external USB serial bridge can be connected ISP Header ISP header for the USB AVR which can be used...

Page 12: ...ther pin is routed to a header Pins R0 and R1 Both of these pins are routed to an HC49 crystal footprint A 22pF capacitor is also connected to each line If an external clock is used connect it to R1 S...

Page 13: ...Not Installed USB Serial Bridge Power Status LEDs There are two green LEDs that are used to indicate USB status the mode of operation communication activity programmer status and more The following ta...

Page 14: ...illator and two different 32KHz oscillators are also available A PLL and prescalers can be used to obtain the various clocks Be aware that the ATxmega128a1u requires both the 2MHz and 32MHz oscillator...

Page 15: ...d slot has a spring loaded mechanism that locks the card in place when inserted push in push out The contacts are gold plated It is connected to SPI E using four pins All pins have external 47Kohm pul...

Page 16: ...is connected to the XMEGA DAC A0 on pin A2 which can be disconnected using a solder jumper The shutdown pin is routed to pin Q3 and has a 47 Kohm pull resistor to keep the IC in shutdown when Q3 is n...

Page 17: ...be disconnected using the solder jumpers Note that MISO is not connected so the XMEGA cannot read from the IC Also note that the SPI F SS line is not used as the chip select but instead Q2 is used Thu...

Page 18: ...t AVRISPmkII driver https www mattairtech com software MattairTech_AVRISPmk II_Driver_Signed zip CDC Driver latest CDC driver https www mattairtech com software MattairTech_CDC_Driv er_Signed zip AVR...

Page 19: ...R 20100110 and install it first To use AVRDUDE you will need to download and install an update to libusb win32 available at http sourceforge net projects libusb win32 files libusb win32 releases Choos...

Page 20: ...mulator can be configured Windows XP includes HyperTerminal which has been tested with the MT X1S and will be documented here There are several other terminal emulators available freely on the Interne...

Page 21: ...e viewtopic t 42631 All firmware written for the MT X1S is developed under Linux using this toolchain Drivers TODO drivers should already be installed GCC Toolchain TODO see opening paragraph AVRDUDE...

Page 22: ...ted Using Atmel Studio AVR Studio Start Atmel Studio and open or create a new project An example project which can be used as a template is available for the MT X1S at http www mattairtech com softwar...

Page 23: ...will be pulsing Select the ATxmega128A1 as the device and PDI as the interface and click Apply You should now be connected to the AVRISP mkII compatible programmer with serial number 000200012345 Now...

Page 24: ...ts flash memory Load your hex file then click Program The hex file for the MT X1S_Simple_Demo is located in the Debug folder You will need to erase the target first if you do not have Erase Flash befo...

Page 25: ...not be enabled in sampled mode when active or idle BODACT Sampled mode is OK for other sleep modes BODPD Now you may wish to look at the other pages Note that any firmware upgrade feature should not b...

Page 26: ...MT X1S Manual Using AVRDUDE TODO ie avrdude p x128a1 c avrisp2 P usb U flash w myfirmware hex March 2 2017 26 http www mattairtech com...

Page 27: ...ost Only the connection between the USB AVR and the XMEGA use these settings Note that when configuring the speed to be manual it is possible to set the speed higher than 2MHz but the maximum speed su...

Page 28: ...ter Value Manual Speed Async 1X Async 2X Synchronous UBRR fosc 16 BAUD 1 UBRR fosc 8 BAUD 1 UBRR fosc 2 BAUD 1 BAUD fosc 16 UBRR 1 BAUD fosc 8 UBRR 1 BAUD fosc 2 UBRR 1 where fosc 8000000 March 2 2017...

Page 29: ...SB is disconnected or suspended Power Down or Standby Ready Signal USB ready signal is open drain active low on XCK pin from USB AVR Disabled or Enabled AVRISPmkII select which software will be interf...

Page 30: ...th the XMEGA via the USB serial bridge MicroSD Card Demo The SD card demo makes use of the FatFS module from ChaN FAT12 FAT16 and FAT32 are supported Press h for a help menu Audio Demo You can load wa...

Page 31: ...ads required for Firmware Updates Software Version Driver URL MT X1S Firmware latest At90USB162 N A http www mattairtech com software MT X1S MT_X1S hex FLIP 3 4 2 DFU driver http www atmel com tools F...

Page 32: ...t the AT90USB162 Click on the File menu and open the appropriate hex file More information will appear about the program Be sure that erase is checked The MT X1S firmware cannot be loaded unless the f...

Page 33: ...eep files are just hex files but with the eep extension instead of hex More information will appear about the file when selected Both Program and Verify should be checked Click run to program the EEPR...

Page 34: ...on while powering the board or press reset then release This will start the DFU bootloader Now launch the FLIP utility When it has loaded click on the chip icon and select your XMEGA variant Next clic...

Page 35: ...ase dfu programmer atxmega128a1u flash Blink_128a1u hex dfu programmer atxmega128a1u flash eeprom YourEep eep if applicable dfu programmer atxmega128a1u start to jump to application section without re...

Page 36: ...x please ensure that you are using the new AVRISPmkII driver which now must be downloaded separately see installation Prior versions of Atmel Studio included this driver Support Information Support I...

Page 37: ...MT X1S Manual Schematic Schematic March 2 2017 37 http www mattairtech com...

Page 38: ...MT X1S Manual March 2 2017 38 http www mattairtech com...

Page 39: ...ed MattairTech LLC supplied this development product AS IS without any warranties with all faults at the buyer s and further users sole risk The user assumes all responsibility and liability for prope...

Page 40: ...that the name of the author not be used in advertising or publicity pertaining to distribution of the software without specific written prior permission The author disclaim all warranties with regard...

Page 41: ...ling CAUTION Improper fuse settings may result in an unusable AVR Be certain that you know the effects of changing the fuses that you understand the convention used for describing the state of the fus...

Page 42: ...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...

Reviews: