Pages: [1] 2   Go Down
Author Topic: FT232RL to Atmega UART - is this correct?  (Read 4037 times)
0 Members and 1 Guest are viewing this topic.
UK
Offline Offline
God Member
*****
Karma: 1
Posts: 530
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi guys,

I'm using an FT232RL to interface to the UART on a 1284P, I'm not using a bootloader so I don't feel I need to use the reset pin from the 232RL to reset the Atmega. The below is my schematic, how I intend to include the 232RL in my design.

1) Looking around, it seems 5V is the correct voltage level for the Atmega UARTS - correct? The datasheet says connect VCCIO to VCC to drive out at 5V TTL.

2) I do not need to use the CTS and RTS pins for handshaking do I? I'm not even sure what handshaking is, the 232RL datasheet just talks about it in it's 232RL to MCU example. Are the RX & TX pins enough by themselves for the chip to talk to the Atmega?

« Last Edit: November 09, 2012, 09:34:13 am by jtw11 » Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17263
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi guys,

I'm using an FT232RL to interface to the UART on a 1284P, I'm not using a bootloader so I don't feel I need to use the reset pin from the 232RL to reset the Atmega. The below is my schematic, how I intend to include the 232RL in my design.

1) Looking around, it seems 5V is the correct voltage level for the Atmega UARTS - correct? The datasheet says connect VCCIO to VCC to drive out at 5V TTL.

Correct. If however you ever have one of the arduino type boards that operates with a Vcc of 3.3vdc then you would connect VCCIO to the 3v3out pin on the FTDI.

2) I do not need to use the CTS and RTS pins for handshaking do I? I'm not even sure what handshaking is, the 232RL datasheet just talks about it in it's 232RL to MCU example. Are the RX & TX pins enough by themselves for the chip to talk to the Atmega?

Yes, no handshaking signals need wiring to anything for the FTDI to operate.
Lefty



Logged

UK
Offline Offline
God Member
*****
Karma: 1
Posts: 530
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Correct. If however you ever have one of the arduino type boards that operates with a Vcc of 3.3vdc then you would connect VCCIO to the 3v3out pin on the FTDI.

Thanks for this - however, this is being embedded in a final design PCB, so will not change. I'll keep that in mind for the future however!
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 525
Posts: 26538
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Connect Reset to +5V, don't let it float.
Make sure the 100nFs are close to the pins when you lay it out.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

UK
Offline Offline
God Member
*****
Karma: 1
Posts: 530
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 525
Posts: 26538
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Never had a problem on my Duemilanove's, and it's connected to +5.
http://arduino.cc/en/uploads/Main/arduino-duemilanove-schematic.pdf
I've connected it to +5 on the boards I've designed & built as well, has alwayws worked well.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

UK
Offline Offline
God Member
*****
Karma: 1
Posts: 530
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No resistor on the pull up? Is the reset line high impedance in itself then?

That cap, C10, combined with the reset pull up circuit, is the decoupling cap for the power pins yes - not actually anything to do with the reset circuit in itself?
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 525
Posts: 26538
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes & Yes.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 126
Posts: 8474
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

All inputs on the FT232 have internal pullup resistors, including RST so it's OK to leave them unconnected.

That said it just doesn't feel right to not connect the pin to VCC.

______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

UK
Offline Offline
God Member
*****
Karma: 1
Posts: 530
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I see - I guess these are very weak pull ups then however if people recommend connecting externally to Vcc.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 525
Posts: 26538
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I don't see in the datasheet that it says the Reset is actually pulled up, but it does say in several places that if not used, the pin may be left open or be connected to Vcc. I'm with Graynomad, no floating inputs, especially control signals.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

UK
Offline Offline
God Member
*****
Karma: 1
Posts: 530
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Just a thought, the 5V and GND shown on my schematic is not the 5V supply from the USB port, but rather 5V from the same regulator that powers all over 5V devices on the board.

Not using the 5v supply from the USB cable itself shouldn't be a problem should it?
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 525
Posts: 26538
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

No, using non-USB 5V should not be a problem.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 126
Posts: 8474
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

That's OK, as long as the GNDs are common.

_______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

UK
Offline Offline
God Member
*****
Karma: 1
Posts: 530
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That's OK, as long as the GNDs are common.

_______
Rob

As in, even though I am not using the USB 5v, I must connect the USB GND to the boards GND for comms to work?
Logged

Pages: [1] 2   Go Up
Jump to: