Home

ATtiny1634-EK1 User Guide

image

Contents

1. Atmel APPLICATION NOTE ATtiny1634 EK1 User Guide Atmel ATANO080 Features e Atmel ATtiny1634 MCU e Atmel ATA663254 SBC LIN transceiver with integrated voltage regulator e Touch e Three Atmel QTouch buttons e One Atmel OTouch slider e Analog I O e_ One potentiometer connected to the ADC of the Atmel ATtiny1634 MCU e Digital I O e Six user LEDs e Various headers for direct access e Two possible power sources for the Atmel ATtiny1634 MCU e Voltage regulator of the Atmel ATA663254 SBC e External 5V header e Connectivity e LIN Bus Kit Contents e Boards e 1x ATABtiny1634A V1 ATtiny1634 MCU with ATA663254 LIN SBC demonstrator slave board with touch sensors e 1x ATmega64M1 Xplained LIN to USB gateway e Other accessories e 1x 12V power supply 9341A AVR 12 13 1 1 Introduction Kit Overview The Atmel ATAtiny1634 EK1 automotive evaluation kit provides a hardware platform for evaluating the Atmel ATtiny1634 automotive MCU and Atmel ATA663254 SBC and for developing software for the Atmel ATtiny1634 MCU The Atmel ATtiny1634 is a high performance low power AVR microcontroller with 16KB of in system self programmable Flash memory and 1KB of internal SRAM designed specifically for automotive applications The ATABtiny1634A board included in the kit interfaces the ATtiny1634 MCU to different types of I O signals The board also provides interfaces to several capacitive touch buttons and one capacitive touch
2. AND CONDITIONS OF SALES LOCATED ON THE ATMEL WEBSITE ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTY OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE OR NON INFRINGEMENT IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT INDIRECT CONSEQUENTIAL PUNITIVE SPECIAL OR INCIDENTAL DAMAGES INCLUDING WITHOUT LIMITATION DAMAGES FOR LOSS AND PROFITS BUSINESS INTERRUPTION OR LOSS OF INFORMATION ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES Atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and products descriptions at any time without notice Atmel does not make any commitment to update the information contained herein Unless specifically provided otherwise Atmel products are not suitable for and shall not be used in automotive applications Atmel products are not intended authorized or warranted for use as components in applications intended to support or sustain life
3. PCB and observe the touch detection in the main GUI window The LEDs can also be switched ON and OFF by selecting the ON and OFF radio buttons in the GUI window Atmel Atmel ATANO080 APPLICATION NOTE 14 9341A AVR 12 13 6 GUI User Guide 6 1 Installation There are no special steps necessary to install the GUI There is one executable requiring Microsoft NET 4 0 or later for it to launch correctly 6 2 Explanation of Screens Figure 6 1 Screen 1 Atmel ATA1634 EK Interface lol x Be tes 1 Board Set Up Buttons 7 e Disable Autobaud I Slider Board Control and Status LED Controls DO D1 D2 D3 D4 D5 con GN oN GN on oN C orF orF or le arF amp or e or Potentiometer P1 Status Bo os Buttons Slider Status Button CS2 Button C53 Button C54 5 9 G Slider CS1 c Stop LIN Sleep Amel o USB Disconnected Board Status Frames Rx d 0 Atmel Application Tools Menu Allows selection of the e LIN bus analyzer tool for monitoring LIN bus traffic e Send message tool for sending a user defined LIN message e Status tool for viewing connection status counters Board setup area For configuring the board for use with the buttons or with the slider for enabling QTouch debugging and for disabling LIN autobaud Board control and status area For controlling the board LEDs and viewing the status of the bo
4. bytes This frame is subscribed to by the GUI to obtain the status of the ATAB1634 board e g to find the current potentiometer reading If a response is not received for a message that the GUI subscribes to a time out error is displayed for the frame Atmel ATANO080 APPLICATION NOTE 17 9341A AVR 12 13 Figure 6 4 Screen 4 Atmel ATA1 24 EK Interface Oj x File Tools Board Set Up jv Buttons Enable Touch Debug Disable Autobaud 1 Slider LED Controls Dn O xl L PID Data ength po fre pea ja js fr fo fa foo foo 2 Control and Status Subscribe Publish fe Periodic Single Shot end 5 BB sendLinMessage 10 x Length PID Data poo fra fos fos fos fir foo foo fo foo e Periodic Subscribe Single Shot Publish Atmel Send LIN Message Tool Launch from the application tools menu Send LIN message Field for entering the message length PID and data All fields are hexadecimal values Use this to select if the message should be sent period ically repeatedly or once only single shot Periodic messages are continuously sent until stopped by the user or until this window is closed Used to select between subscribe and publish Send Press to send the message If the message is periodic the button changes to stop after being pressed Stop Press to stop the transmission of a periodic message When a perio
5. in this mode The kit must be connected as outlined in Section 2 1 1 Kit Power Supply via a VBat Supply Voltage on page 3 The jumpers need to be set to the following positions for the stand alone mode to work as expected Header J6 jumpers for LEDs 0 4 mounted 1 2 3 4 5 6 7 8 Jumper J14 mounted Header J1 mounted 1 3 2 4 Jumper J2 mounted Jumper J15 mounted 1 2 5 6 9 10 Jumper J9 mounted 1 2 5 6 9 10 Jumper J11 mounted Jumper J12 not mounted With this jumper setting the Atmel ATTiny1634 MCU uses the ADC to continuously measure the QTouch slider and the potentiometer The LEDs DO D1 display the status of the potentiometer and light up in roughly linear fashion compared to the potentiometer position The D2 D4 LEDs display the status of the Atmel QTouch slider If the OTouch buttons are to be displayed the source code has to be recompiled to use the buttons in stand alone mode as described in Section 4 1 1 and jumper J15 must be configured to interface with the QTouch buttons as described in Section 4 1 QTouch Sensors on page 9 GUI Connected Mode A GUI running on a PC host is used to communicate with the gateway via the USB port for sending LIN commands to the LIN slave node System functionality can be summarized as follows e ATmega64M1 Xplained PCB is used as the LIN bus gateway and LIN bus master It uses the USB port to communicate with the host PC It also uses the LIN bus and acts as a master for sending LIN
6. messages to the LIN slave e__ The ATtiny1634A V1 PCB is used as a LIN bus slave device with QTouch peripherals The Atmel ATA663254 LIN SBC transceiver interfaces to the LIN bus The slave node can detect touch inputs and transmit the touch data on the LIN bus to the LIN master gateway which then relays it to the host PC for display in the GUI window By using the GUI on the host PC commands can also be sent to the LIN slave PCB e g to switch on the LED The input from the LIN slave node can also be displayed in the GUI window such as for displaying the push button or state of the potentiometer in real time Evaluating the System with the GUI To evaluate operation of the ATABtiny1634A board using the GUI both the ATABtiny1634A board and the ATmega64M1 Xplained board must be properly configured as described in Section 5 2 2 Step By Step Instructions for Connecting and Operating the Kit on page 11 Once both boards are properly configured and interconnected and the ATmega64M1 Xplained board is connected by USB to a PC then the GUI on the PC can be used to interact with the ATABtiny1634A board The software on the ATABtiny1634A board automatically switches from stand alone operation to GUl connected operation when it detects a valid LIN frame Section 6 GUI User Guide on page 15 provides more detailed information on how to use the GUI This mode works in a manner very similar to stand alone mode except that the potentiometer reading and
7. or operating with out the OTouch buttons or slider For proper operation the board jumpers must be set according to the configu ration selected Buttons slider status Indicates the current status of the buttons or slider Activity on the configured sensor on the board should be reflected on the GUI e g the illus tration shows that the CS3 button on the ATABtiny1634A board is being pressed The status is only shown for the configured function the function that is not configured is grayed out e g in this case the board is configured for buttons so the slider status is grayed out LED controls Click ON or OFF to control the ATABtiny1634A board LEDs the LEDs on the board will correspond to the selection on the GUI assuming the board jumpers are properly configured Potentiometer status Follows the potentiometer setting on the ATABtiny1634A board e g rotating the potenti ometer on the board should cause a corresponding change on the GUI Stop LIN Used to stop the transmission of application messages via the LIN Press again to restart the mes sage transmission via the LlN Sleep Press to send a sleep message to the ATABtiny1634A board once the sleep message is sent subseguent LIN messages are automatically stopped and the Stop LIN button 5 changes to Start LIN Press Start LIN to restart the LIN messages and thus also wake up the board Reset Press to send a reset message to the ATABtiny1634A board Disable Au
8. slider as well as six LEDs and a potentiometer The Atmel ATA6632 SBC integrating the LIN transceiver along with a voltage regulator and a watchdog enables the LIN bus functionality In addition to the variety of I Os provided directly on the board all MCU I O signals are made available on the header pins to support easy connection to external I Os When combined with available embedded software the ATABtiny1634A board is an ideal platform for initial development of customer specific applications To facilitate the connection to a LIN bus the kit includes an ATmega64 M1 Xplained board programmed to act as a USB to LIN gateway Using this gateway the ATABtiny1634A board can be connected to an available PC GUI application to monitor and control the on board I Os More generally the PC GUI application could be used along with the gateway board to simulate LIN master traffic to aid in the development of an ATABtiny1634A board LIN slave application This kit is supported by standard Atmel AVR development tools available at http www atmel com design support software tools default aspx The kit offers a set of features that enables the user to get started right away and gain an understanding of how to integrate the ATtiny1634 EK and the Atmel ATA663254 within their own design Figure 1 1 ATABtiny1634A_V1 PCB g E SL Aung iN i ATtiny1634 E A ed 3 j ka Atmel Atmel ATANO080 APPLICATION NOTE 2 9341A AVR 12 13 2 Getting Starte
9. status of the application The relevant headers are J6 and J1 To use the LEDs the pins on the J6 header must be connected 1 2 3 4 etc To use the LED2 and LED3 it is also necessary to connect the jumpers on pins 2 4 and 1 3 on the J1 header so that the Atmel ATtiny1634 MCU port can be connected directly to the LEDs The J1 header must be configured correctly to enable PC4 LED2 and PC5 LED3 connections alternatively the J1 header can be used to supply an external oscillator or a clock to the microcontroller LED5 can only be used if the J12 autobaud jumper is not mounted and the autobaud feature is disabled This requires recompiling the software or using the GUI to deactivate autobaud 4 3 Potentiometer A potentiometer can be connected to an Atmel ATtiny1634 MCU port pin to evaluate the ADC The potentiometer is connected to VCC_IO and GND resulting in the full ADC range being used when AREF VCC_IO is used Jumper J14 has to be mounted to use the potentiometer Atmel Atmel ATANO080 APPLICATION NOTE 9 9341A AVR 12 13 5 1 5 2 5 2 1 Example Software User Guide The example software delivered with this board demonstrates some of the basic functions of the Atmel ATTiny1634 and the Atmel ATA663254 Depending on whether the supplied GUI is to be used the software implements two different working modes ATABtiny1634A V1 in Stand Alone Mode The ATABtiny1634A V1 and the power supply included in the kit are required for running
10. the QTouch sensor status is reported to the GUI via LIN instead of controlling the LEDs allowing the LEDs to be controlled as outputs from the GUI Atmel Atmel ATANO080 APPLICATION NOTE 10 9341A AVR 12 13 5 2 2 Step By Step Instructions for Connecting and Operating the Kit The following section gives step by step interconnection and operating instructions These are in reference to the interconnection instructions for the ATABtiny1634A V1 and ATmega64M1 PCBs System setup and first time operation with the GUI is also illustrated The host GUI reports the interconnection status and depicts LIN frame TX and RX traffic and contents between the two PCBs 1 _ As described in Section 2 1 1 Kit Power Supply via a VBat Supply Voltage on page 3 configure the ATABtiny1634A V1 PCB by positioning the jumpers as described here Connect the jumper at J11 to enable the voltage supply socket on X2 from the wall adapter Connect J2 VCC_CPU and J3 VCC_ IO to enable VREG output voltage as the voltage source for the IO and the Atmel ATtiny1634 CPU Connect jumpers at J9 pins 1 2 5 6 9 10 use three 1x2 jumpers To use a GTouch slider Connect the jumpers on J15 pins 1 2 5 6 and 9 10 to interface to the OTouch slider Note the kit is shipped in this default configuration To use OTouch buttons Connect jumpers to J15 pins 2 4 6 8 and 10 12 use three 1x2 jumpers to interface to the OTouch buttons Connect J1 pins 1 3 2 4 use
11. two 1x2 jumpers to enable D2 and D3 when XTAL X1 is not used Connect the J12 AUTOBAUD jumper to synchronize the LIN slave baud rate to the LIN master baud rate for the first time After successful synchronization the synchronization timing is stored internally in the slave EEPROM for future use 2 Configure the ATmega64M1 Xplained board as described in Section 2 1 4 Configuring the ATmega64M1 Xplained on page 4 use a jumper wire to connect the VCC_5V_USB pin to the VCC_MCU pin 3 Interconnect the ATABtiny1634A V1 and ATmega64M1 Xplained boards for LIN communication Connect the ATmega64M1 Xplained board GND LIN and VS_LIN pins J205 Figure 2 3 on page 5 to the respective GND LIN and LIN_VS pins on the ATABtiny1634A V1 board 4 Connect the 12VDC power supply plug to the X2 socket on the ATABtiny1634A V1 board 5 Connect the USB cable to the ATmega64M1 Xplained board and the host PC the new USB device is detected and the USB driver is automatically installed Atmel Atmel ATANO080 APPLICATION NOTE 11 9341A AVR 12 13 Figure 5 1 Correctly Interconnected PCBs USB LED blinking green red See step 9 ATmega64M1 LED blinks See step 9 Connect VCC_MCU to 5V USB power pin step 2 Connect GND LIN and LIN_VS Provide 12V pins step 3 DC from the wall adaptor step 4 6 Open the Atmel ATA1634 EK interface GUI by executing ATA1634_GUI exe supplied in the kit download package 7 Once the main
12. D o PU N O SN ES Atmel Atmel ATANO080 APPLICATION NOTE 8 9341A AVR 12 13 4 Peripherals 4 1 QTouch Sensors The QTouch algorithms enable either the three QTouch buttons or the OTouch slider to be used Obviously the software used should match the connected sensors The software shipped with the kit uses the slider in stand alone mode To evaluate the use of the buttons in stand alone mode the source initializing the touch functionality located in the main c file must be changed Init Touch AtaDevTouch_init QT qt_sensor_flag OT un ENSOR_SLIDER ENSOR_STATE_SLIDER un EO Init Touch AtaDevTouch_init QT_SENSOR_BUTTONS qt_sensor_flag QT_SENSOR_STATE_BUTTONS Alternatively the GUl connected mode can be used to evaluate the buttons as described in Section 5 2 GUI Connected Mode on page 10 The jumpers on header J15 must be connected as shown below to use the CS2 to CS4 QTouch buttons Table 4 1 J15 Header in Button Configuration J15 Header Pins Pin 2 Pin 4 Pin 6 Pin 8 Pin 10 Pin 12 The jumpers on header J15 must be connected as shown below to use the CS1 QTouch slider Table 4 2 J15 Header in Slider Configuration J15 Header Pins Pin 1 Pin 2 Pin 5 Pin 6 Pin 9 Pin 10 In either method the following pins on the J9 header must be connected 1 2 5 6 9 10 4 2 LEDs Six LEDs can be used to display the
13. LIN messages to USB and vice versa lt can be used with the supplied GUI as well to monitor the status of the touch buttons potentiometer and to control the LEDs The LIN LIN_VS supply voltage and GND lines between the ATmega64M1 Xplained and the ATABtiny1634 V1 have to be connected using the J5 header on the ATABtiny1634 and the corresponding header on the ATmega64 Xplained Care has to be taken when setting up the connection When making the connections as shown in Figure 2 2 the outer red and black cables cross the middle cable The pin descriptions on the silkscreen should be read carefully Figure 2 2 LIN Connection Configuring the ATmega64M1 Xplained The following points need to be considered when using the ATmega64M1 Xplained as a USB to LIN bridge For a more detailed description of the board please refer to the ATmega64M1 Xplained hardware user guide 1 5VDC power supply is provided to the ATmega64M1 by connecting the VCC_MCU marked in green e g J300 pin to any of the USB 5V output sources marked in red e g VCC_5V_USB onboard on J406 pin 1 or J3 pin10 Please see example in Figure 2 3 Note If there is an existing jumper on the J201 header VCC_MCU and VCC_P3_V3 pins it must be removed Atmel Atmel ATANO080 APPLICATION NOTE 4 9341A AVR 12 13 Figure 2 3 Voltage Domain VCC_MCU J201 J300 J1 myn o A E 5 2 o a 2 VS_LIN LIN and GND must be connected to the corresponding signals
14. S3 CS4 or one slider CS1 34 Detailed Description of the Headers Table 3 2 J1 Header XTAL LED IC 7 LED3 LED2 PC5 PC6 External crystal pin 1 O o Bu N External crystal pin 3 Atmel Atmel ATANO080 APPLICATION NOTE 6 9341A AVR 12 13 Table 3 3 J5 Header IO pin Deser GND LIN LIN_VS GND VCC_CPU VCC_IO VCC_VREG GND o NOD o Bu N Table 3 4 J6 Header LEDs CAES PORTC2 LEDO cathode PORTA1 LED1 cathode PORTC4 LED2 cathode PORTC5 LED3 cathode PORTCO LED4 cathode PORTC1 LED5 cathode ON DOF Oo mn na O Se Eeo Table 3 5 J7 Header ISP Pin Description MISO VCC_IO SCK MOSI NRES MOSI O o pu N Table 3 6 J8 Header CO PB1 PB2 PC3 AREF GND VCC IO o o Bu N Atmel Atmel ATANO080 APPLICATION NOTE 7 9341A AVR 12 13 Table 3 7 J9 Header CI J15 pin 2 R5 touch channel 2 K C6 touch channel 2S NC NC J15 Pin 6 R4 touch channel 1 K C7 touch channel 1 S NC NC J15 pin 10 10 R3 touch channel O K C8 touch channel O S 11 NC 12 NC o NOD o BB o N o Table 3 8 J13 Header GTouch Debug A AWR oo 1 GND MOSI 3 SCK Table 3 9 J15 Header GTouch Sensor pin Description QTouch slider channel 2 end electrodes J9 pin 1 NC QTouch button CS4 QTouch slider channel 1 J9 pin 5 NC QTouch button CS3 OTouch slider channel O J9 pin 9 NC QTouch button CS2 o NO
15. ard potentiometer and QTouch buttons or slider If connectivity from the GUI through the gateway to the ATABtiny1634A board has not been established the controls are grayed out as shown USB connection status Indicates whether the ATmega64M1 Xplained LIN USB gateway is connected or not Status frame reception counter Counts each time a sta tus frame is received from the ATABtiny1634A board a continuously increasing count indicates complete con nectivity from the GUI through the ATmega64M1 Xplained LIN USB gateway to the Atmel ATtiny1634 MCU on the ATABtiny1634 board and back Atmel ATANO080 APPLICATION NOTE 15 9341A AVR 12 13 Figure 6 2 Screen 2 Application BB Atmel ATA1634 EK Interface m xJ Connection to ATABtiny1634A Board Established File Tools 1 Board Set Up I Buttons Enable Touch Debug Disable Autobaud I Slider 1 Board Control and Status LED Controls 2 DO D1 D2 D3 D4 D5 CON ON ON ON ON ON f OF OFF OFF OFF OFF OFF Potentiometer P1 Status HEHEREEEHHE 32 Vots 3 m Buttons Slider Status M Button CS2 Button CS3 Button CS4 c oL Pee Es Slider 251 4 Atmel i USB Connected Board Status Frames Rx d 423 6 7 8 Note Atmel Buttons slider configuration Configures the ATABtiny1634A board for operation with either 3x OTouch buttons or 1x QTouch slider
16. cable is connected the USB LED begins to flash by oscillating green red and the LEDO begins to alternate ON and OFF on the PCB of the ATmega64M1 Xplained The green red flashing of the USB LED indicates that the USB connection with the host GUI is correct The LEDO flashing OFF ON means the ATmega64M1 MCU device is executing Note LIN bus communication can only be established if the LED behavior is observed as indicated in step 9 above If the GUI window is not opened on the host and or the host does not have the USB port opened the USB LED stays red and the LEDO is OFF and the system is not ready for operation Reconnect the USB cable and restart the GUI application to reset the PCB USB LED must flash green red and the LEDO must alternate between ON and OFF 10 During normal operation the LIN frame counters should increment while the LIN error counter should stay at zero if no transmission errors are detected Note If the LIN Errors RX d parameter shows the error count incrementing and the status frame counter is NOT incre menting in the status window replace the AUTOBAUD jumper J12 and cycle the power on the ATABtiny1634A V1 PCB to synchronize the LIN slave Press the Clear button to reset the error counter in the status window The LIN Errors RX d should stay at zero and the LIN frames counter should increment during nor mal operation 11 To test the touch sensors push the touch buttons on the ATABtiny1634A V1
17. cribed in Section 2 1 3 Connecting the USB to LIN Bridge on page 4 and the board itself has power supply as described in Section 2 1 4 Configuring the ATmega64M1 Xplained on page 4 LEDs 1 to 4 on J8 should never be connected i e the jumpers should not be mounted When connecting the power and starting the GUI as described in Section 6 GUI User Guide on page 15 updates should be sent from the board to the GUI If the connection has been successfully established this is indicated by the USB connected message and the number of received frames continuously increasing on the lower right corner of the window as indicated in Figure 7 1 Figure 7 1 Check Connection Buttons Slider Button 1 Button 2 Button 3 Stop LIN Slider Status _ Sep Reset USE Connected Board Status Frames Rx d f 55524 If the connection is working properly the QTouch debug pins can be enabled by checking the Enable QTouch Debug checkbox The QT600 board must then be connected via SPI to the ATABtiny1634A PCB Table 7 1 illustrates the necessary connections Table 7 1 Connecting Header Touch Data with J6 on ATABtiny1634A V1 Header Touch Data on QT600 Header J6 on ATTiny1634 5 5 6 9 7 3 8 7 GND GND Atmel ATANO080 APPLICATION NOTE 20 Atmel i l 9341A AVR 12 13 8 Software Programming and Debugging Standard debugging and programming tools can be connected to the ATABtiny1634A board using the J7 6 pin ISP header To establish a conne
18. ction to a programmer the autobaud jumper J12 and the jumper on J6 connecting LED5 must be removed The NRST jumper should also be removed to avoid tool connection problems Atmel Atmel ATANO080 APPLICATION NOTE 21 9341A AVR 12 13 Atmel Enabling Unlimited Possibilities Atmel Corporation Atmel Asia Limited Atmel Munich GmbH Atmel Japan G K 1600 Technology Drive Unit 01 5 amp 16 19F Business Campus 16F Shin Osaki Kangyo Building San Jose CA 95110 BEA Tower Millennium City 5 Parkring 4 1 6 4 Osaki USA 418 Kwun Tong Roa D 85748 Garching b Munich Shinagawa ku Tokyo 141 0032 Tel 1 408 441 0311 Kwun Tong Kowloon GERMANY JAPAN Fax 1 408 487 2600 HONG KONG Tel 49 89 31970 0 Tel 81 3 6417 0300 www atmel com Tel 852 2245 6100 Fax 49 89 3194621 Fax 81 3 6417 0370 Fax 852 2722 1369 2013 Atmel Corporation All rights reserved Rev 9341A AVR 12 13 Atmel Atmel logo and combinations thereof Enabling Unlimited Possibilities AVR QTouch and others are registered trademarks or trademarks of Atmel Corporation or its subsidiaries Other terms and product names may be trademarks of others Disclaimer The information in this document is provided in connection with Atmel products No license express or implied by estoppel or otherwise to any intellectual property right is granted by this document or in connection with the sale of Atmel products EXCEPT AS SET FORTH IN THE ATMEL TERMS
19. d 2 1 Quick Start There are several ways to supply power to the kit 2 1 1 Kit Power Supply via a VBat Supply Voltage This is the easiest way to supply the kit with power When using this method please note that power for the entire board is supplied by the Atmel ATA663254 LIN SBC and is therefore limited to a maximum of 85mA The following steps ensure correct functionality 1 Mount the J2 J3 and J11 jumpers 2 Connect the 12VDC power supply plug to the X2 power input socket on the ATABtiny1634A V1 PCB to supply the board with power 2 1 2 Supplying Power to the MCU and the LIN SBC Independently This power supply variant allows more current to be driven than is available from the LIN SBC by supplying the current from an externally regulated 5VDC power supply 1 Mount the jumper J11 if the transceiver is to be used 2 Remove the J2 and J3 jumpers Connect 5VDC to J2 VCC_MCU and to J3 VCC_IO as indicated in Figure 2 1 The pins on J5 VCC_IO and J5 VCC_CPU can alternatively be used Figure 2 1 Independent MCU and LIN SBC Power Supply Connect external VCC_MCU to this pin Connect externa VCC_IO to this pin 3 Connect 7 to 28VDC to X2 if the transceiver is to be used The power LED D8 only lights up if J11 is mounted and sufficient voltage is supplied to X2 Atmel Atmel ATANO080 APPLICATION NOTE 3 9341A AVR 12 13 Connecting the USB to LIN Bridge The ATmega64M1 Xplained board is used to bridge all
20. dic publish message is being sent data fields can be altered the length and PID field cannot be altered while a periodic publish message is being sent Atmel ATANO080 APPLICATION NOTE 18 9341A AVR 12 13 Figure 6 5 Screen 5 BB Atmel ATA1634 EK Interface i ioj xj File Board Control and Status LED Controls fe T p in x Atmel Board SetUp I Buttons T Enable Touch Debug Disable Autobaud I Slider Tools USB Connected Connection Time 000141 Handshakes Asd 345 Checksum Errors 0 2 LIN Frames Td 2479 LIN Frames Fix d ring LIN Errors Red eo Status Tool 1 Launch from the application tools menu Connection status Displays USB connection status connection time approximately in seconds and various counters Clear Press to clear the counters Atmel ATANO080 APPLICATION NOTE 19 9341A AVR 12 13 7 Using QTouch Debug Mode The QT600 board must be ordered separately and allows QTouch debug mode to be used The QT600 board is part of the tool and available here http www atmel com tools QT600 aspx The board must be prepared as described below to use the QTouch debug tools supplied with Atmel Studio To prepare the kit for this mode the ATABtiny1634A V1 board must be set up as described in Section 2 1 1 Kit Power Supply via a VBat Supply Voltage on page 3 The connections to the ATmega64M1 Xplained board must also be prepared as des
21. on the ATABtiny1634 V1 2 2 Design Documentation and Related Links The following list contains links to the most relevant documents and software for the ATtiny1634 EK1 1 ATtiny1634 EK1 Design Documentation package containing schematics BOM assembly drawings 3D plots layer plots software etc 2 _ Atmel Studio http www atmel com atmelstudio free Atmel IDE for development of C C and assembler code for Atmel microcontrollers 3 IAR Embedded Workbench http www iar com en Products IAR Embedded Workbench AVR is a commercial C C compiler that is available for AVR devices There is a 30 day evaluation version as well as code size limited kick start version available from the IAR website 4 Device samples can be ordered from Atmel sample store http www atmel com system samplestore Atmel Atmel ATANO080 APPLICATION NOTE 5 9341A AVR 12 13 3 Headers Connectors and Jumpers The ATABtiny1634A V1 has several headers connectors and jumpers to configure and connect the board to different applications Table 3 1 Headers Overview Header Designator Description J1 J1 1x2 multiplexes PC5 and PC4 ports of the Atmel ATtiny1634 MCU between LEDs and XTAL pins J2 1x2 connects the Atmel ATtiny1634 VCC_CPU power pin to the VCC_VREG voltage regulator 2 output Please note that the VREG output of the Atmel ATA663254 is limited to 85mA J3 1x2 connects the VCC_IO power pin to the VCC_VREG voltage regula
22. tobaud Check to disable the LIN autobaud function The LIN autobaud implementation uses the same MCU pin as LED5 so LED5 is not enabled when autobaud is enabled Before disabling autobaud remove the autobaud jumper on the ATABtiny1634A board Atmel ATANO080 APPLICATION NOTE 9341A AVR 12 13 16 Figure 6 3 Screen 3 Atmel ATA1624 EK Interface loj x 4 File Tools i r gt Board Set Up P 2 M Buttons I Enable OTouch Debug I Disable Autobaud T Slider 3 Board Control and Status LED Controls Cl EIN Bus Analyzer lol xj 4 Type Size PID Data 5 04 03 7F 40 00 00 D4 03 7F 40 00 00 DO 00 04 03 7F 40 OD 00 D4 03 7F 40 00 00 P a P a P 16 05 27 812 5 04 03 Fr 40 P 5 P 5 Atmel LIN Bus Analyzer Tool Launch from the application tools menu LIN bus analyzer The display logs LIN message traffic most recent mes sages at the top of the display Type field From the perspective of the GUI acting as a master P Publish GUI sent PID and data S Subscribe GUI sent PID slave responded with data Stop Press to stop message logging changes to start after being pressed Start Press to start message logging changes to stop after being pressed The default software supports 2 LIN message frames PID 06 size 2 bytes This frame is published by the GUI to control the ATAB1634 board e g to turn LEDs ON or OFF PID 03 size 4
23. tor output Please note that the VREG output of the Atmel ATA663254 is limited to 85mA VCC_IO is the supply voltage for the J3 r 4 LEDs the potentiometer and is available on several headers J4 J4 1x2 can be used to enable the pull up resistor needed for a LlN master node The jumper on this header should be removed when operating the board as a LIN slave node J5 J5 1x8 connects ATABtiny1634A V1 PCB to external power supply VCC LIN_VS GND LIN IO pin VCC_VREG and external power supplies VCC_MCU VCC _ IO J6 J6 2x6 connects the Atmel ATtiny1634 IO ports to the DO D5 LEDs J7 J7 2x3 is used as the ISP header J8 J8 2x3 provides access to the Atmel ATtiny1634 ports PB1 PB2 PC3 AREF VCC_IO and GND pins J9 2x6 connects the Atmel ATtiny1634 to the QTouch on board sensors i e three buttons or a slider J9 5 Place 1x2 jumpers across to connect the on board buttons or a slider J10 J10 1x2 connects the NRES of the Atmel ATA663254 LIN SBC to the NRES of the ATtiny1634 MCU J11 J11 1x2 connects the external power supply on X2 to LIN_VS J12 J12 1x2 is the autobaud enable header It can be used to connect RXD1 to IC1 Timer1 Counter1 to measure sync bytes on RXD1 J13 J13 1x3 provides QTouch debug mode digital outputs J14 J14 1x2 is a potentiometer enable header Connects the potentiometer output to PBO using a jumper J15 J15 2x6 multiplexes between OTouch sensors Selects either three buttons CS2 C
24. window opens the QTouch sensor configuration can be selected in the board setup section select Buttons if J15 is configured to sense the QTouch buttons or select Slider if J15 is configured to support the slider functionality see Atmel ATANO080 APPLICATION NOTE 12 9341A AVR 12 13 Figure 5 2 Atmel ATA1634 EK Interface Main Window Atmel ATA1634 EK Interface Fie Boat Set Up Buttons C Enable GTouch Debug C Disable Autobaud C Slider Board Control and Status LED Controls DO D1 D2 D3 D4 D5 OoN ON OON ON OMN GON GOF GOF GOF Qor GOF OOF Potentiometer P1 Status OT va Buttons Slider Status Button C52 Button CS3 Button CS4 Stop LIN O O O Atmel USB Connected Board Status Frames Rx d 42406 Note When the USB is properly connected the USB Connected message appears at the bottom of the GUI window as shown in Figure 5 2 The incrementing frame count is also shown indicating proper data communication between the LIN nodes 8 Select from the pull down window Tools gt Status to open the status window see Figure 5 3 The LIN frame counter should be incrementing Atmel Atmel ATANO080 APPLICATION NOTE 13 9341A AVR 12 13 Figure 5 3 Status Window USE Connection Time Handshakes Red Checksum Errors LIN Frames T gt lt d LIN Frames Rd LIN Errors RX d Ox Connected 001770 274 0 1945 1882 D 9 Once the GUI window is opened and the USB

Download Pdf Manuals

image

Related Search

Related Contents

Higlasi-1A 標準取扱説明書  ハードウェアマニュアル - IDEC AUTO  Marley Clase NC® Torre de refrigeración  Samsung YP-GI1CW Vartotojo vadovas  Viewsonic ViewPad E72 8GB Black tablet  

Copyright © All rights reserved.
Failed to retrieve file