Microchip Technology AVR-IoT Wx Скачать руководство пользователя страница 11

Parity

: Can be odd, even, or none.

Hardware flow control

: Not supported.

Stop bits

: One or two bits are supported.

4.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 will 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.

4.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.

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 debugger’s CDC TX pin. Transferring a small amount
of data per frame can be inefficient, particularly at low baud rates, because the on-board debugger buffers frames
and not bytes. A maximum of four 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 method.

When receiving data on the debugger’s CDC RX pin, 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
eight 64-byte frames can be active at any time.

 AVR-IoT Wx Hardware User Guide

Hardware User Guide

©

 2020 Microchip Technology Inc.

 User Guide

DS50002805B-page 11

Содержание AVR-IoT Wx

Страница 1: ...ecure represented by the ATECC608A secure element Connected represented by the ATWINC1510 Wi Fi controller module The AVR IoT Wx Development Board features the following elements The on board debugger...

Страница 2: ...tHub Get started with application code AVR IoT WG website Find schematics design files and purchase the board Set up for Google Cloud IoT Core AVR IoT WA website Find schematics design files and purch...

Страница 3: ...an 21 5 4 List of Antenna Types 21 6 Hardware Revision History and Known Issues 22 6 1 Identifying Product ID and Revision 22 6 2 AVR IoT WG 22 6 3 AVR IoT WA 23 7 Document Revision History 24 8 Appen...

Страница 4: ...Worldwide Sales and Service 33 AVR IoT Wx Hardware User Guide 2020 Microchip Technology Inc User Guide DS50002805B page 4...

Страница 5: ...tions with the Microchip ATmega4808 AVR microcontroller ATECC608A secure element and WINC1510 Wi Fi controller module The preprogrammed demo application publishes data from the on board light and temp...

Страница 6: ...PD0 PF5 USER SWITCH 1 PF6 USER SWITCH 0 ATWINC1510 Wi Fi Module Micro USB Connector Power Status LED Programmer Debugger ADC AIN7 ATMEGA4808 Microcontroller Charge Status LEDs LiPo Connector MCP73871...

Страница 7: ...MPLAB Data Visualizer is a program used for processing and visualizing data The Data Visualizer can receive data from various sources such as serial ports and on board debugger s Data Gateway Interfac...

Страница 8: ...Google Cloud IoT Core and the firmware is available on GitHub https github com microchip pic avr solutions avr iot google sensor node mplab For in depth information about the preprogrammed demo appli...

Страница 9: ...power up Power up The LED is ON Normal operation The LED is ON Programming Activity indicator The LED blinks slowly during programming debugging Drag and drop programming Success The LED blinks slowly...

Страница 10: ...ll enumerate as Curiosity Virtual COM Port and appear in the Ports section of the Windows Device Manager The COM port number can also be found there Info On older Windows systems a USB driver is requi...

Страница 11: ...debugger s CDC TX pin 4 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 d...

Страница 12: ...hen programming an Intel 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 CUR...

Страница 13: ...gramming mode immediately thereafter Exact timing can vary according to the programming interface of the target device Debugger firmware v1 16 or newer Info The commands listed here are triggered by t...

Страница 14: ...providing a timestamp resolution of a half microsecond 4 2 On Board Debugger Connections The table below shows the connections between the target and the debugger section All connections between the...

Страница 15: ...The charger is configured to limit the charge current to 100 mA to prevent the overcharging of small capacity batteries Minimum recommended battery capacity is 400 mAh WARNING The MCP73871 has a batte...

Страница 16: ...ing event system intelligent analog and advanced peripherals 4 4 2 mikroBUS Socket AVR IoT Wx features a mikroBUS socket for expanding the functionality of the development board using MikroElektronika...

Страница 17: ...roperable with various vendors 802 11 b g n access points This module provides SPI ports to interface with a host controller WINC1510 provides internal Flash memory as well as multiple peripheral inte...

Страница 18: ...to authenticate the hardware with cloud providers to uniquely identify every board Note 7 bit I2C address 0x58 Table 4 7 ATECC608A Connections ATECC608A Pin ATmega4808 Pin Function Shared Functionalit...

Страница 19: ...able on the AVR IoT Wx board that can be controlled with PWM or GPIO The LEDs can be activated by driving the connected I O line to GND Table 4 10 LED Connections ATmega4808 Pin Function Description P...

Страница 20: ...This equipment generates uses and can radiate radio frequency energy and if not installed and used in accordance with the instructions may cause harmful interference to radio communications However th...

Страница 21: ...e so chosen that the equivalent isotropically radiated power e i r p is not more than that necessary for successful communication Conform ment la r glementation d Industrie Canada le pr sent metteur r...

Страница 22: ...rr where nnnn is the identifier and rr is the revision Boards with limited space have a sticker with only a data matrix code containing the product identifier revision and serial number The serial nu...

Страница 23: ...MR210PB1952 firmware 19 5 2 The firmware was upgraded to version 19 6 1 in production PCB revision 3 Related Links 4 3 2 Battery Charger 6 3 AVR IoT WA 6 3 1 Revision 1 Revision 1 of AVR IoT WA is th...

Страница 24: ...ment B 03 2020 Updated with AVR IoT WG revsion 9 updated with information about AVR IoT WA A 10 2018 Initial document release AVR IoT Wx Hardware User Guide Document Revision History 2020 Microchip Te...

Страница 25: ...TARGET VCC_TARGET PA3_I2C_SCL PA2_I2C_SDA VCC_TARGET GND 100n C205 PA3_I2C_SCL PA2_I2C_SDA PA5_SPI_MISO PA6_SPI_SCK PA4_SPI_MOSI PF5_SW1_DGI GND Cr yptoAuthenticationTM Temper atur e Sensor GND VCC_TA...

Страница 26: ...G_ADC RESERVED S0_3_CLK DBG0_CTRL CDC_TX_CTRL BOOT DEBUGGER POWER STATUS LED 1k R110 DBG1 DBG1_CTRL REG_ENABLE 100k R107 100k R108 SWCLK 100k R113 GND SRST DEBUGGER TESTPOINT DBG2_CTRL CDC_RX_CTRL 100...

Страница 27: ...RST PA0 PD6 INT MOSI PA4 PA2 SDA t C IoT E b R 8 3 Mechanical Drawings The figures below show the board s mechanical drawing and connector placement Figure 8 4 Mechanical Drawing 100mil 1000mil 100mi...

Страница 28: ...ed 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 not listed the core of the...

Страница 29: ...Figure 8 6 Select Target Device Figure 8 7 Select Debugger AVR IoT Wx Hardware User Guide Appendix 2020 Microchip Technology Inc User Guide DS50002805B page 29...

Страница 30: ...Figure 8 8 Configure Interface AVR IoT Wx Hardware User Guide Appendix 2020 Microchip Technology Inc User Guide DS50002805B page 30...

Страница 31: ...le 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 products mee...

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

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

Отзывы: