Microchip Technology ATtiny1607 Curiosity Nano Скачать руководство пользователя страница 8

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

USB-Level Framing Considerations

Sending data from the host to the CDC can be done byte-wise or in blocks, which will be chunked into 64-
byte USB frames. Each such frame will be queued up for sending to the CDC TX pin. Transferring a small
amount of data per frame can be inefficient, particularly at low baud rates, since the on-board debugger
buffers frames and not bytes. A maximum of 4 x 64-byte frames can be active at any time. The on-board
debugger will throttle the incoming frames accordingly. Sending full 64-byte frames containing data is the
most efficient.

When receiving data from the target, the on-board debugger will queue up the incoming bytes into 64-
byte frames, which are sent to the USB queue for transmission to the host when they are full. Incomplete
frames are also pushed to the USB queue at approximately 100 ms intervals, triggered by USB start-of-
frame tokens. Up to 8 x 64-byte frames can be active at any time.

If the host, or the software running on it, fails to receive data fast enough, an overrun will occur. When this
happens, the last-filled buffer frame will be recycled instead of being sent to the USB queue, and a full
frame of data will be lost. To prevent this occurrence, the user must ensure that the CDC data pipe is
being read continuously, or the incoming data rate must be reduced.

3.1.2 

Mass Storage Disk

A simple way to program the target device is through drag and drop with 

.hex

 files.

3.1.2.1 

Mass Storage Device

The on-board debugger implements a highly optimized variant of the FAT12 file system that has a number
of limitations, partly due to the nature of FAT12 itself and optimizations made to fulfill its purpose for its
embedded application.

The CURIOSITY drive is USB Chapter 9 compliant as a mass storage device but does not, in any way,
fulfill the expectations of a general purpose mass storage device. This behavior is intentional.

The on-board debugger enumerates as a Curiosity Nano USB device that can be found in the disk drives
section of the Windows device manager. The CURIOSITY drive appears in the file manager and claims
the next available drive letter in the system.

The CURIOSITY drive contains approximately one MB of free space. This does not reflect the size of the
target device's Flash in any way. When programming a 

.hex

 file, the binary data are encoded in ASCII

with metadata providing a large overhead, so one MB is a trivially chosen value for disk size.

It is not possible to format the CURIOSITY drive. When programming a file to the target, the filename may
appear in the disk directory listing. This is merely the operating system's view of the directory, which, in
reality, has not been updated. It is not possible to read out the file contents. Removing and replugging the
kit will return the file system to its original state, but the target will still contain the application that has
been previously programmed.

To erase the target device, copy a text file starting with “CMD:ERASE” onto the disk.

By default, the CURIOSITY drive contains several read-only files for generating icons as well as reporting
status and linking to further information:

AUTORUN.ICO

 - icon file for the Microchip logo.

AUTORUN.INF

 - system file required for Windows Explorer to show the icon file.

KIT-INFO.HTM

 - redirect to the development board website.

 ATtiny1607 Curiosity Nano

Curiosity Nano

©

 2019 Microchip Technology Inc.

 User Guide

DS50002897A-page 8

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

Страница 1: ...d by Atmel Studio Microchip MPLAB X Integrated Development Environment IDE the kit provides easy access to the features of the ATtiny1607 to explore how to integrate the device into a custom design Th...

Страница 2: ...et Regulator 10 3 3 2 External Supply 11 3 3 3 VBUS Output Pin 11 3 4 Target Current Measurement 12 3 5 Disconnecting the On Board Debugger 13 4 Hardware User Guide 15 4 1 Connectors 15 4 1 1 ATtiny16...

Страница 3: ...7 5 Getting Started with IAR 26 The Microchip Website 29 Product Change Notification Service 29 Customer Support 29 Microchip Devices Code Protection Feature 29 Legal Notice 30 Trademarks 30 Quality M...

Страница 4: ...stable Target Voltage MIC5353 LDO regulator controlled by the on board debugger 1 8 5 1V output voltage limited by USB input voltage 500 mA maximum output current limited by ambient temperature and ou...

Страница 5: ...icrochip microcontrollers and digital signal controllers It is called an Integrated Development Environment IDE because it provides a single integrated environment to develop code for embedded microco...

Страница 6: ...are The on board debugger controls a Power and Status LED marked PS on ATtiny1607 Curiosity Nano The table below shows how the LED is controlled in different operation modes Table 3 1 On Board Debugge...

Страница 7: ...tual control signal implemented on the USB interface but not in hardware in the on board debugger Asserting DTR from the host will indicate to the on board debugger that a CDC session is active will e...

Страница 8: ...T12 file system that has a number of limitations partly due to the nature of FAT12 itself and optimizations made to fulfill its purpose for its embedded application The CURIOSITY drive is USB Chapter...

Страница 9: ...mory mapped fuse values Disabling UPDI will render the debugger unable to contact the target device an external programmer capable of 12V UPDI activation will be required 3 2 Curiosity Nano Standard P...

Страница 10: ...ower consumer P3V3 DEBUGGER Power converter DEBUGGER Regulator VUSB Target Regulator Power Supply strap Adjust Level shifter VLVL VREG I O I O GPIO straps I O On Off Measure On Off ID system VOFF PTC...

Страница 11: ...pin is shorted to ground GND the on board debugger firmware disables the target regulator and it is safe to apply an external voltage to the VTG pin WARNING Applying an external voltage to the VTG pin...

Страница 12: ...connected from the on board power supply and VTG pin through a 100 mil pin header cut Target Power strap marked with POWER in silkscreen J101 To measure the power consumption of the ATtiny1607 and oth...

Страница 13: ...Ttiny1607 Curiosity Nano The signal names shown in Figure 3 1 are printed in silkscreen on the bottom side of the board Figure 3 6 On Board Debugger Connections to the ATtiny1607 DEBUGGER TARGET Level...

Страница 14: ...r short circuit them with tin solder to reconnect any cut signals Figure 3 7 Kit Modifications GPIO straps bottom side Power Supply strap top side ATtiny1607 Curiosity Nano Curiosity Nano 2019 Microch...

Страница 15: ...7 PA7 GND GND PC5 PC5 PC4 PC4 SW0 ATtiny1607 CURIOSITY NANO Analog Debug I2C SPI UART Shared pinout Peripheral Port PWM Power Ground 4 1 2 Using Pin Headers The edge connector footprint on ATtiny1607...

Страница 16: ...istor is enabled on pin PC4 Table 4 2 Mechanical Switch ATtiny1607 Pin Description Shared Functionality PC4 User switch SW0 Edge connector 4 2 3 On Board Debugger Implementation ATtiny1607 Curiosity N...

Страница 17: ...y1607 RX line Edge connector PB2 CDC RX UART TX ATtiny1607 TX line Edge connector UPDI DBG0 UPDI PB7 DBG1 GPIO Edge connector PC4 DBG2 GPIO Edge connector UPDI DBG3 RESET J202 not connected by default...

Страница 18: ...is the revision The boards with limited space have a sticker with only a QR code containing the product identifier revision and the serial number The serial number string has the following format nnnn...

Страница 19: ...es not have the Target Power strap described in 3 4 Target Current Measurement Instead the current can be measured across the Power Supply strap as described in 3 5 Disconnecting the On Board Debugger...

Страница 20: ...6 Document Revision History Doc rev Date Comment A 06 2019 Initial document release ATtiny1607 Curiosity Nano Document Revision History 2019 Microchip Technology Inc User Guide DS50002897A page 20...

Страница 21: ...terface CDC TX CDC RX UART RX UART TX VTG 1 8V 5 5V VOFF ID_SYS ID_SYS VOFF 2 2uF C205 GND TARGET BULK PC4_SW0 PB7_LED0 VBUS PB3_RXD PC5 PA0_UPDI GND CDC RX 3 CDC TX 4 DBG1 5 DBG2 6 0 TX 7 1 RX 8 2 SD...

Страница 22: ...TARGET ADJUSTABLE REGULATOR SRST 100n C104 GND SRST VCC_P3V3 GND Testpoint Array 1 2 3 4 5 6 7 8 9 10 TCK TDO TMS Vsup TDI GND TRST SRST VTref GND J102 SWCLK DEBUGGER TESTPOINTs DBG2_CTRL VOFF CDC_RX...

Страница 23: ...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 1 0 5 0 2 P A J 1 0 5 0 3 P A J 1 0 5 0 4 P A J 1 0 5 0 5 P...

Страница 24: ...1607 CURIOSITY NANO Analog Debug I2C SPI UART Shared pinout Peripheral Port PWM Power Ground 1 AN PWM RST INT CS RX SCK TX MISO SCL MOSI SDA 3 3V 5V GND GND 2 AN PWM RST INT CS RX SCK TX MISO SCL MOSI...

Страница 25: ...ely used Therefore the on board debugger will not interfere with any external debug tools Figure 7 5 Connecting the MPLAB PICkit 4 In Circuit Debugger Programmer to ATtiny1607 Curiosity Nano 2 3 4 5 6...

Страница 26: ...R is a proprietary high efficiency compiler which is not based on GCC Programming and debugging of ATtiny1607 Curiosity Nano is supported in IAR Embedded Workbench for AVR using the Atmel ICE interfac...

Страница 27: ...ally select the UPDI frequency Info If the selection of Debug Port mentioned in step 4 is grayed out the interface is preselected and the user can skip this configuration step Figure 7 7 Select Target...

Страница 28: ...Figure 7 8 Select Debugger Figure 7 9 Configure Interface ATtiny1607 Curiosity Nano Appendix 2019 Microchip Technology Inc User Guide DS50002897A page 28...

Страница 29: ...Representative Local Sales Office Embedded Solutions Engineer ESE Technical Support Customers should contact their distributor representative or ESE for support Local sales offices are also available...

Страница 30: ...logo MOST MOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip Designer QTouch SAM BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer Tachyon TempT...

Страница 31: ...rein are property of their respective companies 2019 Microchip Technology Incorporated Printed in the U S A All Rights Reserved ISBN 978 1 5224 4662 0 Quality Management System For information regardi...

Страница 32: ...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...

Отзывы: