Total Pageviews

Sunday, 14 May 2017

USB to TTL Converter using MCP2221


USB 2.0 to UART/I2C Protocol Converter

            The USB to UART/ I2C converter enables USB connectivity in applications that have I2C and/or UART interfaces. It behaves like a standard serial port to the Operating System. Hence the existing Terminal softwares such as (Putty) and Terminal programs could be used. The TX and RX lines of the programmer are used for asynchronous serial communication. When the USB-TTL adapter receives a byte from the computer via USB, it will transmit that byte on the TX line and when it receives a byte on the RX input line, it will send that byte back to the computer via USB.

The bytes are sent and received eight bits at a time, with no parity and one stop bit. This coding is sometimes abbreviated 8N1. The bits must be non-inverted, meaning that a zero is sent as low voltage, and a one is sent as high voltage. All devices involved in asynchronous serial communication need to agree ahead of time on the duration of one bit (the baud rate), so all devices must be independently configured to run at the same baud rate before they will be able to communicate with each other. The USB-TTL adapter supports all integer baud rates from 110 to 115200 bits per second. 

Circuit :
         The circuit is built around MCP2221, which helps the protocol conversion. It reduces the need for external components by integrating the USB termination resistors and oscillator needed for USB operation. Hence the USB 2.0 can be used with full speed (upto 480 Mbps).


Using the Adapter :

       1)      Plug the adapter into a computer.
              




   2)    Go to Device Manager. The system doesn’t recognize the device since the drivers aren’t installed
 4)    Under the section: Documentation , download MCP2200/MCP2221 Windows Driver &        Installer and install it.
       5)    Once the drivers are installed the system should recognize the adapter  
       6)    Download MCP2221 I2C SMBUS Terminal application , install it and open it.
       7)    Under Settings , select the Device and set the Baud Rate.







 Prototype :

      

   
        
                 
      





No comments:

Post a Comment