Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 12:03 21 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : PIC16F1455 USB Serial Bridge

Author Message
Chris Roper
Senior Member

Joined: 19/05/2015
Location: South Africa
Posts: 280
Posted: 02:51am 23 Jul 2015
Copy link to clipboard 
Print this post

I Received the samples I had on order from Microchip and amongst them were a few PIC16LF1455's. These Devices are available from DigiKey and others for <$1.5, are in DIP packaging suitable for use in a Breadboard and contain a USB peripheral that requires no external Xtal (They Sync to the USB Host frequency).

I set one up on the breadboard to test and Flashed it with a hex file I found on the net (Attached) and tested it as a USB Serial Bridge.

To my surprise and pleasure it worked first time.

I am yet to do any extensive testing but can confirm that it correctly Autobaud's at test rates from 9600 Baud up to 115200 Baud. Above 115200 I started seeing issues but 115200 should be fine for working with Micromite and similar.

It also provides RTS, CTS and DTR signals which I have not tested, but should work as the original code was intended to drive an XBEE Module. Here is a link to the page I got it from: http://sky.geocities.jp/home_iwamoto/P16F145x/P16_L04.htm

I have tested it at both 3V3 and 5V operating voltages and it worked fine up to and including 115200 BAUD.

Bottom line, for $1.50 and a 100nf bypass cap you can add USB-Serial to your breadboard without the need for FTDI Chips, boards or adaptor modules.

I will test it on the Breadboard with MicroMite, Arduino and ChipKIT CPU's over the next couple of days and report back here.

For now I just wanted to let you know it works and pass on the hex file and drivers for anyone else keen to try it.

Cheers
Chris

2015-07-23_124703_XBeeWriter.inf.zip 2015-07-23_125006_XBee_PIC16F1455.hex.zipEdited by Chris Roper 2015-07-24
http://caroper.blogspot.com/
 
geraldfryjr

Regular Member

Joined: 02/03/2014
Location: United States
Posts: 61
Posted: 03:50am 23 Jul 2015
Copy link to clipboard 
Print this post

This is very cool I have been looking in to this sort of thing.

I have a Uc32 from chipkit and it has the FTDI232 and I can't get it to work with MPIDE and UCEIDE in linux but it works fine in windows and it is all because of the FTDI chip.

I was thinking about just switching it over to some other bootloader like the Pinguino or something even though I do have MPLABX and the PK3 work with as well.

I am not very proficient with C yet and I have been accustomed to using the MPIDE IDE because that was how it was designed to be used.

I also have the BasicI/O board for it and all of the drivers work perfectly using the MPIDE and UCEIDE without in issues in windows but not in linux.
I am hoping that they will work okay in MPLABX but I haven't got that far as to try it out yet.

Do let us know if you find a work around for this type of issue or even a better way for that matter.

There is a thread already started in the Chipkit forum on this issue but nobody has provided an answer and I do plan on making a thread in the Digilent forum as well, I have already brought this issue to there attention.

I did recently get some MPC2221's and some MCP2200's to try out for this type of issue and I have read that the MCP2221's or MCP2200's work well also.

Cheers !!!

jer Edited by geraldfryjr 2015-07-24
Keep on DIYin' !!!
 
Chris Roper
Senior Member

Joined: 19/05/2015
Location: South Africa
Posts: 280
Posted: 11:58am 23 Jul 2015
Copy link to clipboard 
Print this post

  geraldfryjr said   This is very cool I have been looking in to this sort of thing.

I have a Uc32 from chipkit and it has the FTDI232 and I can't get it to work with MPIDE and UCEIDE in linux but it works fine in windows and it is all because of the FTDI chip.


I Don't have Linux so can't test it in that environment and I am not even sure if Microchip have a Linux driver/inf file.

I am surprised that you had issues with MPIDE and Chipkit under Linux though, I will have a look at the Chipkit forums and follow up.

Cheers
Chris

http://caroper.blogspot.com/
 
Chris Roper
Senior Member

Joined: 19/05/2015
Location: South Africa
Posts: 280
Posted: 12:17pm 23 Jul 2015
Copy link to clipboard 
Print this post

As mentioned I Breadboarded a PIC16F1455 and MicroMite combination and tried working with it for a few hours in a normal, hardware / software development cycle.

Being a 14 pin package it takes very little extra breadboard space and it gives the functionality I was hoping to get from a PIC32MX270 version of the micromite without having to sacrifice any I/O pins or add a Xtal.

It does share the one problem that a Micromite 270 would have though and that is having to enumerate each time the power is cycled. This is a problem because it means the console has to be reconnected after it enumerates.

To get around this I use a reset button so that the power can be applied, the terminal connected and then press reset to establish the console session.

The above would not be an Issue if the PIC16 were separately powered Via USB. I don't have any 3v3 regulators to hand but will pick some up on Monday, if not before, and try it out.

I am generally very impressed.

I think this Chip will make a good companion to any hobbyist Micromite design, on Strip Board or BreadBoard, and is far cheaper than an FTDI module.

Cheers
Chris

Edited by Chris Roper 2015-07-24
http://caroper.blogspot.com/
 
BobD

Guru

Joined: 07/12/2011
Location: Australia
Posts: 935
Posted: 12:25pm 23 Jul 2015
Copy link to clipboard 
Print this post

  Chris Roper said   I am generally very impressed.

I think this Chip will make a good companion to any hobbyist Micromite design, on Strip Board or BreadBoard, and is far cheaper than an FTDI module.

Cheers
Chris


And it can't suffer from being cloned and then having FTDI drivers zap it. A good find.Edited by BobD 2015-07-24
 
geraldfryjr

Regular Member

Joined: 02/03/2014
Location: United States
Posts: 61
Posted: 12:34pm 23 Jul 2015
Copy link to clipboard 
Print this post

Thanks!!

The say it works in Linux,

http://ww1.microchip.com/downloads/en/DeviceDoc/MCP2200_MCP2221_CDC_Linux_Readme.txt

I will look more in to this soon after I get my PIC18/16 breakout board made and running.

From what I gather there may be a work around for the FTDI chip but I don't know enough in C or even Linux BASH command to try and implement it in the MPIDE source code.

All I know is that MPIDE may be compiled for linux using the windows Java calls and these don't work right in linux this way.
I found this info at the FTDI website and other searches about the matter.

Thank you for your time.

jer :)
Keep on DIYin' !!!
 
Chris Roper
Senior Member

Joined: 19/05/2015
Location: South Africa
Posts: 280
Posted: 10:18pm 27 Jul 2015
Copy link to clipboard 
Print this post

Well I have had 2 of these running for a week now with not a single error or glitch.

I did, however, realise that the devices I had were the PIC16LF1455 and only rated to 3V5, so I wound down the supply voltage to 3V3. Not a problem in a Micromite set-up as you need a 3V3 supply for the MM anyway.

The surprising thing is that I had been running them at 5V direct from the USB supply and they didn't cook. I would not recommend doing that long term though.

I have now ordered some PIC16F1455 devices, rated to 5V5 so that I can make up some USB/Serial Dongles with selectable supply voltage.

Definitely happy with these and Doubt I will need to buy any FTDI devices for the foreseeable future.

Now to explore what else this puppy can do seeing as it has a full compliment of peripherals in addition to USB.

Cheers
Chris
Edited by Chris Roper 2015-07-29
http://caroper.blogspot.com/
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4039
Posted: 11:32pm 27 Jul 2015
Copy link to clipboard 
Print this post

ignore (it's 3V6 but hardly matters!)
JohnEdited by JohnS 2015-07-29
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10277
Posted: 02:35am 31 Jul 2015
Copy link to clipboard 
Print this post

Just got a couple of PIC16F1455 from Microchip as samples - work perfectly on W7-64. This has to be about the most cost effective way of adding a USB console without the issues of dropping the connection on MM resets

UPDATE

Attached is a revised version of the hex file that defaults the UART baudrate to 38400 to match the normal Micromite console speed. tested with MM 4.7b23 44-pin and MM+ 64-pin

2015-07-31_180958_PIC1455USB.zip

I'm powering the PIC16F1455 off the USB connection and using one of these to convert the signals properly to 3.3VEdited by matherp 2015-08-01
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025