Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 18th October 2007, 02:45 PM   (permalink)
Default com -> usb converter

I've read somewhere that I can simply use a converter to connect the R232 of the programmer to the USB computer. Although it won't benefit the usb advantages it should work. if I don't have a com port in my pc.

Does it sound good to you?
zoharl is offline  
Old 18th October 2007, 03:02 PM   (permalink)
Default

Depending exactly what it's doing, they generally work well - maximum throughput is usually only 9600 baud or so though. I've actually got a Belkin one connected to this very computer.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 18th October 2007, 03:02 PM   (permalink)
Default

Yup - I use a couple.

One for my programmer and one for my project (I use a bootloader on a PIC18F1320)

Never had any problems yet with them
picbits is offline  
Old 18th October 2007, 03:03 PM   (permalink)
Default

Quote:
Originally Posted by Nigel Goodwin
Depending exactly what it's doing, they generally work well - maximum throughput is usually only 9600 baud or so though. I've actually got a Belkin one connected to this very computer.
Mine are quite happy at 19200 for the bootloader and 56,000 (ish) for the programmer.
picbits is offline  
Old 18th October 2007, 03:10 PM   (permalink)
Default

Quote:
Originally Posted by picbits
Mine are quite happy at 19200 for the bootloader and 56,000 (ish) for the programmer.
You can connect them at 115,000, and they work fine - but the throughput is still only about 9600 baud. The reason is simple, serial is a byte at a time, USB is packets or continuous bytes, and USB isn't interrupt driven. The overhead sending a single byte via USB is huge, this absolutely cripples the speed. Presumably if you're using USB 2.0 it would be faster though?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 18th October 2007, 05:01 PM   (permalink)
Default but which programmer?

Which programmers are you all connecting with a USB R232 converter?
__________________
jeremy
jeremygaughan is offline  
Old 20th October 2007, 11:36 AM   (permalink)
Default

I use the Picstart and Promate II as well as custom written bootloaders.
picbits is offline  
Old 21st October 2007, 12:02 AM   (permalink)
Default

I've used a PL2303 with my ICD2 clone.

PS picbits what are you using the PIC18F1320 for? I'm asking as it's the PIC I chose for my next kit (Junebug)
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now  
Old 22nd October 2007, 02:11 PM   (permalink)
Default

Quote:
Originally Posted by blueroomelectronics
I've used a PL2303 with my ICD2 clone.

PS picbits what are you using the PIC18F1320 for? I'm asking as it's the PIC I chose for my next kit (Junebug)
I use them for just about anything that doesn't require too many I/Os

Current products are:

Frequency pulse converter for use in cars - converts speedo or tacho pulse to a multiple of the input frequenct

Addressable LED multiplexed drivers

Adjustable radiator fan control and multiple relay controller for cars

Rev counter shift lights

Basic data acquisition systems with serial output for external datalogging



For the bootloader I just adapted the Microchip bootloader for the 1320, added a couple of lines of code so that holding a pin high on powerup will enter the bootloader and edited the .ini files from Microchip so their bootloader front end will talk to the processor.
picbits is offline  
Old 25th October 2007, 04:04 AM   (permalink)
Default

This forum is great, I've been reading for awhile and finally decided to join.

I attached a file of the converter I built a couple of years ago with parts from Futurlec (Took 6 months + to receive the stuff though). The guy's website appears to be down, but I saved a pdf of it when I built it.

I haven't gotten into programming pics, etc yet, but I made this and it worked fine on a mac with the old lego mindstorms.
Attached Files
File Type: pdf USB to RS232 converter.pdf (1,019.1 KB, 58 views)
Edd is offline  
Old 25th October 2007, 02:00 PM   (permalink)
Default

Nigel, most serial to USB converters will buffer data for USB transfer, and won't send it just a byte at a time, depends on the program accessing the com port and the chip in the converter though. I've seen chips rated at a megabaud for buffered transfers.
__________________
"Because I be what I be. I would tell you what you want to know if I
could, mum, but I be a cat, and no cat anywhere ever gave anyone a
straight answer, har har."
Sceadwian is offline  
Old 25th October 2007, 04:09 PM   (permalink)
Default

Quote:
Originally Posted by Sceadwian
Nigel, most serial to USB converters will buffer data for USB transfer, and won't send it just a byte at a time, depends on the program accessing the com port and the chip in the converter though. I've seen chips rated at a megabaud for buffered transfers.
'Most'?, you mean an odd few might?, and doing so would also further limit their usefulness - like you say, even with buffering, it depends entirely on the program accessing the port, and what it's doing - other than feeding a modem, most serial port programmes would be single byte at a time.

Presumably you're talking about more modern converters?, when Elektor tested them, all the ones tested had really slow throughput, because of the single byte overhead problem.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 26th October 2007, 02:18 AM   (permalink)
Default

I guess I'm talking a bit one sided, as I've only really looked at FTDI chips, guess I was assuming other chips are the same, sorry. They provide a generic USB to serial dongle for basic RS232 functionality.

http://apple.clickandbuild.com/cnb/s...5&title=UC232R

As a generic windows com port it goes from 300 to 230kbaud. The special direct drivers allow up to 1Mbaud for RS232 and 3Mbaud for RS485 and direct TTL, but I don't think this generic dongle has support for baud rates that high.
I can't check the Elektor results you mentioned because I won't register to every website for individual articles I'm interested in.
__________________
"Because I be what I be. I would tell you what you want to know if I
could, mum, but I be a cat, and no cat anywhere ever gave anyone a
straight answer, har har."
Sceadwian is offline  
Old 26th October 2007, 09:08 AM   (permalink)
Default

Quote:
Originally Posted by Sceadwian
I can't check the Elektor results you mentioned because I won't register to every website for individual articles I'm interested in.
I won't either!.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
USB Power hack with DC/DC Converter - am I crazy? chconnor Electronic Projects Design/Ideas/Reviews 14 8th March 2008 10:13 PM
usb interfacing problems for a waveform generator simonharvey Electronic Projects Design/Ideas/Reviews 0 27th September 2007 12:32 AM
Boost converter help. yngndrw Electronic Projects Design/Ideas/Reviews 12 11th September 2007 06:38 PM
USB - TTL Converter samltd Electronic Projects Design/Ideas/Reviews 5 7th July 2006 10:46 PM
Cuk converter PWM controllers? Schneibster Electronic Projects Design/Ideas/Reviews 30 2nd May 2005 10:04 AM



All times are GMT. The time now is 08:55 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker