jgeisler0303 / PIC16F1454_USB2Serial

PIC 16F1454 USB to Serial Adapter Firmware
19 stars 10 forks source link

PIC 16F1454 USB to Serial Adapter Firmware

This firmware turns a PIC 16F1454 into a USB to Serial adapter like e.g. the famous FTDI FT232RL.

Advantages

Origin

The code is mainly a copy of the this project, which is basically a stand-alone copy of Microchip's CDC - Serial Emulator Demo code.

The following changes were made:

Obtaining the firmware

For your convenience, the pre-compiled .hex-file is can be downloaded here (right click "Save as...").

Getting it to run

If you come from the Arduino/AVR world and don't have a programmer for PICs, you can try out my fork of ardpicprog that enables you to program some PICs and especially the 16F1454 using a special sketch for your Arduino. Read this documentation and further detail for the 16F1454 here to learn how to use the programmer.

For a basic wiring instructions, please refer to the schematic on the original project page. Generally, the following connections need to be made:

For a USB powered circuit (5V serial signals!)

If your serial destination device runs on 3.3V, you either have to

Optionally:

Making changes

If you are running Linux and have the xc8 compiler installed, you should ba able to build the project yourself using make. Otherwise you will have to install the MPLAB.X IDE (the MPLAB.X directory is the IDE's project definition).