background image

Info: 

 On older Windows systems, a USB driver is required for CDC. This driver is included in MPLAB X

and Atmel

®

 Studio installations.

3.1.1.2 

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

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. This is a virtual 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 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: 

 Enable to set up your terminal emulator to assert the DTR signal. Without it, the on-board

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

3.1.1.4 

Advanced Use

CDC Override Mode

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

Dropping a text file (with extension 

.txt

) into the on-board debugger’s mass storage drive can be used to send

characters out of the CDC TX pin. 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
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.

 PIC16F15376 Curiosity Nano

Curiosity Nano

©

 2019 Microchip Technology Inc.

 User Guide

50002900B-page 7

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

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

Страница 1: ...Microchip MPLAB X Integrated Development Environment IDE the kit provides easy access to the features of the PIC16F15376 to explore how to integrate the device into a custom design The Curiosity Nano...

Страница 2: ...ls 16 5 Hardware Revision History and Known Issues 18 5 1 Identifying Product ID and Revision 18 5 2 Revision 2 18 5 3 Revision 1 18 6 Document Revision History 19 7 Appendix 20 7 1 Schematic 20 7 2 A...

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

Страница 4: ...like data sheets and kit documentation The PIC16F15376 device is programmed and debugged by the on board debugger and therefore no external programmer or debugger tool is required 2 3 Design Documenta...

Страница 5: ...76 Curiosity Nano on microchipDIRECT Purchase this kit on microchipDIRECT PIC16F15376 Curiosity Nano Getting Started 2019 Microchip Technology Inc User Guide 50002900B page 5 Downloaded from Arrow com...

Страница 6: ...D Control Operation Mode Status LED Boot Loader mode LED blink at 1 Hz during power up Power up LED is ON Normal operation LED is ON Programming Activity indicator The LED flashes slowly during progra...

Страница 7: ...r Enable to set up your terminal emulator to assert the DTR signal Without it the on board debugger will not send or receive any data through its UART 3 1 1 4 Advanced Use CDC Override Mode In normal...

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

Страница 9: ...C NC ID ID CDC RX CDCRX CDC TX CDCTX DBG1 DBG1 DBG2 DBG2 VBUS VBUS VOFF VOFF DBG3 DBG3 DBG0 DBG0 GND GND VTG VTG CURIOSITY NANO 3 3 Power Supply The kit is powered through the USB port and contains tw...

Страница 10: ...rd debugger on PIC16F15376 Curiosity Nano are 2 3 5 1V Info The target voltage is set to 3 3V in production It can be changed through MPLAB X project properties Any change to the target voltage is per...

Страница 11: ...power supply The debugger and signal level shifters will be powered from the USB cable Both regulators the debugger and the level shifters are powered down when the USB cable is removed 3 3 3 VBUS Out...

Страница 12: ...Target Power strap top side Tip A 100 mil pin header can be soldered into the Target Power strap J101 footprint for easy connection of an ammeter Once the ammeter is not needed anymore place a jumper...

Страница 13: ...CDC RX CDC TX DBG3 DBG2 DBG1 DBG0 GPIO straps LDO VOFF LDO VBUS VTG VCC_EDGE Power Supply strap Target Power strap By cutting the GPIO straps with a sharp tool as shown in Figure 3 7 all I Os connect...

Страница 14: ...page 14 Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloade...

Страница 15: ...ignals shown in the image above such as UART I2C SPI ADC PWM and others are shown at specific pins to comply with the Curiosity Nano board standard These signals can usually be routed to alteriative p...

Страница 16: ...4 2 Mechanical Switch PIC16F15376 Pin Description Shared Functionality RE2 User switch SW0 Edge connector 4 2 3 Crystal The PIC16F15376 Curiosity Nano board has a footprint for a 32 768 kHz crystal Th...

Страница 17: ...of the signals the pins can be configured to anything the user wants For further information on how to use the capabilities of the on board debugger see Section 3 Curiosity Nano Table 4 4 On Board De...

Страница 18: ...vision s serial number The product identifier for PIC16F15376 Curiosity Nano is A09 3251 5 2 Revision 2 Revision 2 adds the Target Power strap and staggered the holes along the edge of the PCB for con...

Страница 19: ...rrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloade...

Страница 20: ...1_SCL RC4_MOSI RC5_MISO RC6_SCK RD4_SS RD0_TX RD1_RX RD2 RD3 RB0_TX RB3_RX RB4 RC7 RE3_MCLR RB7_ICSPDAT RA7_ANA7 RA6_ANA6 RA5_ANA5 RA4_ANA4_PWM RA3_ANA3_PWM RA2_ANA2 RA1_ANA1 RA0_ANA0 RD7 RD6 RD5 RB5...

Страница 21: ...PIO DBG3_CTRL DBG2_CTRL UPDI UPDI GPIO GPIO RESET Signal DBG0 DBG1 DBG2 DBG3 ICSP Interface DAT CLK GPIO MCLR DBG3 CDC TX CDC RX UART RX UART TX UART RX UART TX TARGET TARGET 1k 1k R110 VBUS_ADC DMN65...

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

Страница 23: ...GND GND 3 AN PWM RST INT CS RX SCK TX MISO SCL MOSI SDA 3 3V 5V GND GND Xplained Pro Extension EXT1 1 2 19 20 Curiosity Nano Base for click boards TM RA0 RA3 RA7 RA6 RD4 RC3 RC6 RC2 RC5 RB1 RC4 RB2 3...

Страница 24: ...the on board debugger can not enter programming mode of the PIC16F15376 and will typically fail at reading the device ID CAUTION To avoid contention between the external debugger and the on board deb...

Страница 25: ...ne of the most secure families of its kind on the market today when used in the intended manner and under normal conditions There are dishonest and possibly illegal methods used to breach the code pro...

Страница 26: ...e CryptoCompanion CryptoController dsPICDEM dsPICDEM net Dynamic Average Matching DAM ECAN EtherGREEN In Circuit Serial Programming ICSP INICnet Inter Chip Connectivity JitterBlocker KleerNet KleerNet...

Страница 27: ...ng Tel 60 4 227 8870 Philippines Manila Tel 63 2 634 9065 Singapore Tel 65 6334 8870 Taiwan Hsin Chu Tel 886 3 577 8366 Taiwan Kaohsiung Tel 886 7 213 7830 Taiwan Taipei Tel 886 2 2508 8600 Thailand B...

Отзывы: