nr Bundaberg, Australia
Offline
Tesla Member
Karma: 71
Posts: 6806
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #15 on: November 13, 2012, 06:42:34 am » |
Yep.
Also be aware that your Tx pin may actually power up the FTDI chip depending on how it is constructed. IE if the FT232 has ESD protection diodes a logic high on the FT chip's Rx can try to power up the chip.
I don't know if this is the case with this chip, but I've just designed it into something in a similar way to what you are doing and I've added some circuitry to stop that.
The other thing to do is make sure your processor's Tx pin is tristate when the USB is not plugged in, if you can know that.
_______ Rob
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Sr. Member
Karma: 1
Posts: 313
|
 |
« Reply #16 on: November 13, 2012, 09:35:49 am » |
Also be aware that your Tx pin may actually power up the FTDI chip depending on how it is constructed. That's not a problem - I'm not sleeping the '232 - just leaving it powered up the whole time. The other thing to do is make sure your processor's Tx pin is tristate when the USB is not plugged in, if you can know that. Why is this? Do both RX & TX go high when USB is unplugged? I know previously I've seen 1k series resistors on the RX and TX lines, but I believe the 232RL has internal series resistors?
|
|
|
|
|
Logged
|
|
|
|
|
nr Bundaberg, Australia
Offline
Tesla Member
Karma: 71
Posts: 6806
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #17 on: November 13, 2012, 10:48:18 am » |
both RX & TX go high when USB is unplugged? It's the TX of the processors that is a problem. It will happily power the 232 IF it has ESD diodes (I don't know if it does or not). On the Arduinos I assume the 1k resistors pretty much solves the problem. ______ Rob
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 240
Posts: 16433
Available for Design & Build services
|
 |
« Reply #18 on: November 13, 2012, 11:08:25 am » |
I always thought the 1Ks were to limit the FT232 to 5mA of drive current and to let the Arduino or external devices overdrive that if the pins were used for other purposes.
|
|
|
|
|
Logged
|
|
|
|
|
nr Bundaberg, Australia
Offline
Tesla Member
Karma: 71
Posts: 6806
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #19 on: November 13, 2012, 11:40:37 am » |
Yes I think that is the case, I suppose a nice side affect may be that when the USB is not plugged in it helps with the above issue, if indeed it is an issue with this particular chip, I know it is with most.
_____ Rob
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Sr. Member
Karma: 1
Posts: 313
|
 |
« Reply #20 on: November 13, 2012, 11:42:20 am » |
What however do you mean by power the chip? Surely, having the chip powered is not an issue - unless it's in a tiny battery powered application?
Or are you saying that without series resistors, that when the TX pin 'powers' the '232, that doing so draws excessive current from the AVRs TX pin?
I have just searched the 232RL datasheet for the keywords 'ESD' & 'diode'.... no returns.
EDIT: Hang on, just a thought - now I'm completely lost. The TX pin of the processor goes to the RX pin on the '232, not the power supply pins, so how is this 'powering' happening?
|
|
|
|
« Last Edit: November 13, 2012, 11:47:44 am by jtw11 »
|
Logged
|
|
|
|
|
nr Bundaberg, Australia
Offline
Tesla Member
Karma: 71
Posts: 6806
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #21 on: November 13, 2012, 12:13:39 pm » |
If a pin has ESD diodes they are connected internally to VCC. So you have a path from the pin to VCC through a diode. Therefore if you apply 5v to the pin you will get ~4.5v on VCC and the chip will happily work.
As you say unless you have a battery-powered system the extra current probably doesn't matter, but it's generally considered bad form to power a chip like this. It may draw too much from the AVR pin although with modern chips probably not and anyway the diode would blow first I think.
But there are other issues, the chip is running with nothing plugged into some of its inputs so they are floating, That's never good.
_____ Rob
|
|
|
|
« Last Edit: November 13, 2012, 12:21:38 pm by Graynomad »
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15310
Measurement changes behavior
|
 |
« Reply #22 on: November 13, 2012, 12:33:25 pm » |
Note that the standard Seeeduino arduino board has it's FTDI chip powered only by the USB power bus and the rest of the board has a manual power bus switch to select from either the on-board +5vdc regulator or USB for the boards Vcc bus. This means if your not using the USB channel that there is no current being wasted by the FTDI chip. They use the same two series 1k ohm 'isolation' resistors between the arduino send and rec pins and the FTDI rec and send pins. This isolation works fine at preventing any damage to the FTDI chip when running on arduino external power but not plugged into a PC.
Lefty
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Sr. Member
Karma: 1
Posts: 313
|
 |
« Reply #23 on: November 13, 2012, 01:13:07 pm » |
Okay, I understand now, thanks. I'll take a look into this, and how the old Duemillinovae boards had them wired up. Certainly the datasheet dosen't mention anything about it. I may also just swap my supply over to be powered by USB.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 240
Posts: 16433
Available for Design & Build services
|
 |
« Reply #24 on: November 13, 2012, 01:16:30 pm » |
You only get 500mA from USB, I don't if that's a concern.
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Sr. Member
Karma: 1
Posts: 313
|
 |
« Reply #25 on: November 13, 2012, 01:45:49 pm » |
You only get 500mA from USB, I don't if that's a concern.
Yep, I meant just to power the '232 chip, the rest of the board will still be powered by it's own regulated supply.
|
|
|
|
|
Logged
|
|
|
|
|
Salem, Oregon
Offline
Full Member
Karma: 0
Posts: 175
Arduino rocks but sometimes it rolls
|
 |
« Reply #26 on: November 14, 2012, 05:33:12 pm » |
I see, the datasheet shows no pull up on the reset line to 5V, and the pin descriptor says it is not required - leave unconnected or pulled up to 5V. However - I shall trust your experience.
Regarding pullups on Reset, check out AVR042 "AVR Hardware Design Considerations" ( http://www.atmel.com/Images/doc2521.pdf) Regards, Brad KF7FER
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Sr. Member
Karma: 1
Posts: 313
|
 |
« Reply #27 on: November 15, 2012, 06:26:44 pm » |
Just had a quick flick through the document referenced - I will have a proper read when I have time, but very useful indeed - thank you.
I see there's some bits in there re ESD diodes, series resistors on SPI pins (answered a question I was going to ask), and some good info about separating AVcc using a ferrite bead.
Also good info on how the decoupling I've always done, and how others do it - isn't quite the best way to do so.
|
|
|
|
|
Logged
|
|
|
|
|
|