background image

Info: 

 For all operating systems: Be sure to use a terminal emulator that supports DTR signaling. See 

3.1.2.4  Signaling

.

3.1.2.3 

Limitations

Not all UART features are implemented in the on-board debugger CDC. The constraints are outlined here:

Baud rate

: Must be in the range of 1200 bps to 500 kbps. Any baud rate outside this range will be set to the

closest limit, without warning. Baud rate can be changed on-the-fly.

Character format

: Only 8-bit characters are supported.

Parity

: Can be odd, even, or none.

Hardware flow control

: Not supported.

Stop bits

: One or two bits are supported.

3.1.2.4 

Signaling

During USB enumeration, the host OS will start both communication and data pipes of the CDC interface. At this
point, it is possible to set and read back the baud rate and other UART parameters of the CDC, but data sending and
receiving will not be enabled.

When a terminal connects on the host, it must assert the DTR signal. As this is a virtual control signal implemented
on the USB interface, it is not physically present on the board. Asserting the DTR signal from the host will indicate to
the on-board debugger that a CDC session is active. The debugger will then enable its level shifters (if available), and
start the CDC data send and receive mechanisms.

Deasserting the DTR signal will not disable the level shifters but disable the receiver so no further data will be
streamed to the host. Data packets that are already queued up for sending to the target will continue to be sent out,
but no further data will be accepted.

Remember: 

 Set up the terminal emulator to assert the DTR signal. Without the signal, the on-board

debugger will not send or receive any data through its UART.

Tip: 

 The on-board debugger’s CDC TX pin will not be driven until the CDC interface is enabled by the

host computer. Also, there are no external pull-up resistors on the CDC lines connecting the debugger and
the target, which means that during power-up, these lines are floating. To avoid any glitches resulting in
unpredictable behavior like framing errors, the target device should enable the internal pull-up resistor on
the pin connected to the debugger’s CDC TX pin.

3.1.2.5 

Advanced Use

CDC Override Mode

In normal operation, the on-board debugger is a true UART bridge between the host and the device. However, in
certain use cases, the on-board debugger can override the basic operating mode and use the CDC TX and RX pins
for other purposes.

Dropping a text file into the on-board debugger’s mass storage drive can be used to send characters out of the
debugger’s CDC TX pin. The filename and extension are trivial, but the text file must start with the characters:

CMD:SEND_UART=

The maximum message length is 50 characters – all remaining data in the frame are ignored.

The default baud rate used in this mode is 9600 bps, but if the CDC is already active or has been configured, the
previously used baud rate still applies.

 ATtiny3217

Curiosity Nano

©

 2020 Microchip Technology Inc.

 User Guide

DS40002193A-page 9

Содержание ATtiny3217 Curiosity Nano

Страница 1: ...features of the ATtiny3217 to explore how to integrate the device into a custom design The Curiosity Nano series of evaluation boards include an on board debugger No external tools are necessary to pr...

Страница 2: ...3 1 3 4 Special Commands 11 3 1 4 Data Gateway Interface DGI 12 3 1 4 1 Debug GPIO 12 3 1 4 2 Timestamping 12 3 2 Curiosity Nano Standard Pinout 13 3 3 Power Supply 13 3 3 1 Target Regulator 14 3 3 2...

Страница 3: ...tory 29 7 Appendix 30 7 1 Schematic 30 7 2 Assembly Drawing 32 7 3 Curiosity Nano Base for Click boards 33 7 4 Disconnecting the On board Debugger 34 7 5 Getting Started with IAR 35 The Microchip Webs...

Страница 4: ...egulator controlled by the on board debugger 1 8 5 5V output voltage limited by USB input voltage 500 mA maximum output current limited by ambient temperature and output voltage 1 2 Kit Overview The M...

Страница 5: ...ns on a PC Windows Mac OS Linux to develop applications for Microchip microcontrollers and digital signal controllers It is called an Integrated Development Environment IDE because it provides a singl...

Страница 6: ...Solutions Microchip PIC and AVR Device Solutions contains complete applications for use with Microchip development boards ready to be adapted and extended ATtiny3217 Curiosity Nano website Kit inform...

Страница 7: ...et application through terminal software A Data Gateway Interface DGI for code instrumentation with logic analyzer channels debug GPIO to visualize program flow The on board debugger controls a Power...

Страница 8: ...et Send Terminal Receive Terminal Send Info As shown in Figure 3 1 the debugger s CDC TX pin is connected to a UART RX pin on the target for receiving characters from the host computer Similarly the d...

Страница 9: ...packets that are already queued up for sending to the target will continue to be sent out but no further data will be accepted Remember Set up the terminal emulator to assert the DTR signal Without th...

Страница 10: ...system that has several limitations partly due to the nature of FAT12 itself and optimizations made to fulfill its purpose for its embedded application The Curiosity Nano USB Device is USB Chapter 9...

Страница 11: ...MPLAB X IDE which will automatically clear the CRC fuses after erasing 3 1 3 4 Special Commands Several utility commands are supported by copying text files to the mass storage disk The filename or e...

Страница 12: ...application They are typically used to plot the occurrence of low frequency events on a time axis for example when certain application state transitions occur The figure below shows the monitoring of...

Страница 13: ...ff input Disables the target regulator and target voltage when pulled low VTG Target voltage GND Common ground Figure 3 3 Curiosity Nano Standard Pinout USB DEBUGGER PS LED NC ID CDC RX CDC TX DBG1 DB...

Страница 14: ...programming dialog Any change to the target voltage is persistent even through a power toggle The resolution is less than 5 mV but may be limited to 10 mV by the adjustment program Info Voltage setti...

Страница 15: ...detects the new situation and turns the target voltage regulator back on 3 3 2 External Supply ATtiny3217 Curiosity Nano can be powered by an external voltage instead of the on board target regulator...

Страница 16: ...orst case current consumption of approximately 5 A Typical values may be as low as 100 nA 3 3 3 VBUS Output Pin ATtiny3217 Curiosity Nano has a VBUS output pin that can be used to power external compo...

Страница 17: ...PS LED is Lit 2 This can be the issue if power jumper J100 and or J101 is cut and the target voltage regulator is set to a value within the specified voltage range for the target device To fix this so...

Страница 18: ...they can be disconnected completely as described in 7 4 Disconnecting the On board Debugger 3 5 Programming External Microcontrollers The on board debugger on ATtiny3217 Curiosity Nano can be used to...

Страница 19: ...s Info Atmel Studio allows any microcontroller and interface to be selected when Hide unsupported devices is set to False also microcontrollers and interfaces which are not supported by the on board d...

Страница 20: ...ernal voltage as a reference for its level shifters Read more about the power supply in 3 3 Power Supply The on board debugger and level shifters actively drive data and clock signals DBG0 DBG1 and DB...

Страница 21: ...3 6 Connecting External Debuggers Even though there is an on board debugger external debuggers can be connected directly to the ATtiny3217 Curiosity Nano to program debug the ATtiny3217 The on board d...

Страница 22: ...Nano 2 3 4 5 6 7 8 1 VDD Ground DATA 2 VDD 3 Ground 4 PGD 5 Unused 6 Unused 7 Unused 8 Unused 1 Unused MPLAB PICkit 4 USB DEBUGGER PS LED NC ID CDC RX CDC TX DBG1 DBG2 VBUS VOFF DBG3 DBG0 GND VTG CURI...

Страница 23: ...D CDC RX CDC TX DBG1 DBG2 VBUS VOFF DBG3 DBG0 GND VTG CURIOSITY NANO CAUTION To avoid contention between the external debugger and the on board debugger do not start any programming debug operation wi...

Страница 24: ...PA5 ADC0 AIN5 PTC XY1 TCA0 WO5 PA6 PA6 ADC0 AIN6 PTC XY2 PA7 PA7 ADC0 AIN7 PTC XY3 PB5 PB5 ADC0 AIN8 PTC XY12 GND GND PB6 PB6 PB7 PB7 SW0 DEBUGGER ATtiny3217 Analog Debug I2C SPI UART Peripheral Port...

Страница 25: ...abled on pin PB7 Table 4 2 Mechanical Switch ATtiny3217 Pin Description Shared Functionality PB7 User switch SW0 Edge connector On board debugger 4 2 3 Crystal The ATtiny3217 Curiosity Nano Board has...

Страница 26: ...d debugger for programming and debugging MPLAB Data Visualizer can be used as a front end for the CDC and debug GPIO 4 2 4 1 On Board Debugger Connections The table below shows the connections between...

Страница 27: ...ATtiny3217 Pin Debugger Pin Function Shared Functionality PA0 DBG3 RESET J202 not connected by default Edge connector ATtiny3217 Hardware User Guide 2020 Microchip Technology Inc User Guide DS4000219...

Страница 28: ...six digits of the serial number which is listed under kit information contain the product identifier and revision Tip The Kit Window can be opened in MPLAB X IDE through the menu bar Window Kit Windo...

Страница 29: ...6 Document Revision History Doc rev Date Comment A 03 2020 Initial document release ATtiny3217 Document Revision History 2020 Microchip Technology Inc User Guide DS40002193A page 29...

Страница 30: ...29 PWM 3 24 ADC 2 23 ADC 1 22 ADC 0 21 GND 20 3 19 2 18 ADC 7 28 ADC 6 27 ADC 5 26 PWM 4 25 DEBUGGER TARGET ID 2 VOFF 33 RESERVED 1 VBUS 34 CNANO34 pin edge connector J200 PB2_USART0_TX PB3_USART0_RX...

Страница 31: ...NTs DBG2_CTRL VOFF CDC_RX_CTRL 47k R109 DBG1 CDC_TX_CTRL CDC_RX_CTRL SWCLK REG_ADJUST DBG2_GPIO DBG3_CTRL DBG2_CTRL UPDI UPDI GPIO GPIO RESET Signal DBG0 DBG1 DBG2 DBG3 ICSP Interface DAT CLK GPIO MCL...

Страница 32: ...0 5 P A J 1 0 2 0 4 P A J 1 0 2 0 3 P A J 1 0 2 0 2 P A J 1 0 2 0 1 C O J 1 0 2 P A J 1 0 5 0 1 1 P A J 1 0 5 0 1 0P A J 1 0 5 0 8 P A J 1 0 5 0 9 P A J 1 0 5 0 7 P A J 1 0 5 0 6 P A J 1 0 5 0 1 P A J...

Страница 33: ...CA0 WO1 PA5 PA5 ADC0 AIN5 PTC XY1 TCA0 WO5 PA6 PA6 ADC0 AIN6 PTC XY2 PA7 PA7 ADC0 AIN7 PTC XY3 PB5 PB5 ADC0 AIN8 PTC XY12 GND GND PB6 PB6 PB7 PB7 SW0 DEBUGGER ATtiny3217 Analog Debug I2C SPI UART Peri...

Страница 34: ...supply strap will disconnect the on board power supply Tip Any connection that is cut can be reconnected using solder alternatively a 0 0402 resistor can be mounted Tip When the debugger is disconnec...

Страница 35: ...g 1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project 2 In the category General Options select the Target tab Select the device for the project or if...

Страница 36: ...Figure 7 7 Select Target Device Figure 7 8 Select Debugger ATtiny3217 Appendix 2020 Microchip Technology Inc User Guide DS40002193A page 36...

Страница 37: ...Figure 7 9 Configure Interface ATtiny3217 Appendix 2020 Microchip Technology Inc User Guide DS40002193A page 37...

Страница 38: ...is available through the website at http www microchip com support Microchip Devices Code Protection Feature Note the following details of the code protection feature on Microchip devices Microchip pr...

Страница 39: ...lus ProASIC Plus logo Quiet Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProvider Vite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the U S A...

Страница 40: ...7252 China Xiamen Tel 86 592 2388138 China Zhuhai Tel 86 756 3210040 India Bangalore Tel 91 80 3090 4444 India New Delhi Tel 91 11 4160 8631 India Pune Tel 91 20 4121 0141 Japan Osaka Tel 81 6 6152 7...

Отзывы: