The Makefile does not currently support download automatically to Linux or Mac machines. The sample code can be compiled from the command-line via the command 'make all' and downloaded to a Teensy 2.0 with the command 'make program' in windows.
As an example, the user can enter a letter back to the Teensy over the serial port and see a change in response.ĬP210x USB to UART Teensy 2.0 Sample Code The protocol is set up for 8 data bits, no parity, and one stop bit (8N1). The code initializes the hardware UART on the Teensy 2.0 and transmits "Hello World" repeatedly over the UART port at a baudrate of 34800. There is a cp210x.h and cp210x.c file included in the example.
You may need to install the avr-gcc compiler This code is tested to compile via avr-gcc under Windows and Linux.
This example will detail the wiring for a Teensy 2.0 microcontroller. Wiring: The CP210c module can be connected either a 5V or 3.3V logic level UART serial port.CP2102 with other USB-UART adapter circuit works similar to the PC through the driver's USB port into a virtual COM port in order to achieve the purpose of expansion. tiny26 Microcontroller Board (tiny26.1)ĬP2102 its high integration, built-in USB2.0 full-speed function controller, USB transceiver, crystal oscillator, EEPROM, and asynchronous serial data bus (UART), supports full-featured modem signals, without any external USB device.