Author Topic: ftdi serial communication  (Read 2544 times)

0 Members and 1 Guest are viewing this topic.

Offline cosminnciTopic starter

  • Regular Contributor
  • *
  • Posts: 85
  • Country: ro
ftdi serial communication
« on: October 05, 2015, 07:23:15 am »

Hi,
I made a pcb of the design in the image, it is a usb to 1 wire converter with a ft232rl and ds2480B.
the usb is detected, the ds2489B is comunicating partially, but not reading the sensors, I debugged till got to the  uart part where the txo line looks bad.
what could cause this? I tested connecting the ftdi to a second ftdi and sending data, all looks ok.

thank you
regards,
Cosmin
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9930
  • Country: nz
Re: ftdi serial communication
« Reply #1 on: October 05, 2015, 07:26:34 am »
You have tx going to tx and rx going to rx.
A tx pin on an IC is always a transmitter ie output.
edit actually I think you have it right, that ds2480 chip looks to have tx rx inverted internally. Weird

Also, are you feeding 3.3v into the 3.3v output? It has its own 3.3 reg so doesn't need/want that.

The scope pic looks like a grounding issue

« Last Edit: October 05, 2015, 07:38:56 am by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline cosminnciTopic starter

  • Regular Contributor
  • *
  • Posts: 85
  • Country: ro
Re: ftdi serial communication
« Reply #2 on: October 05, 2015, 07:37:11 am »

the 3,3v is only a breakout, it is not used. the ds needs 4.5-5v
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9930
  • Country: nz
Re: ftdi serial communication
« Reply #3 on: October 05, 2015, 07:41:06 am »
What is the sensor ?
Greek letter 'Psi' (not Pounds per Square Inch)
 

Online Monkeh

  • Super Contributor
  • ***
  • Posts: 7992
  • Country: gb
Re: ftdi serial communication
« Reply #4 on: October 05, 2015, 07:45:12 am »

the 3,3v is only a breakout, it is not used. the ds needs 4.5-5v

No, it doesn't.
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9930
  • Country: nz
Re: ftdi serial communication
« Reply #5 on: October 05, 2015, 07:54:02 am »
Where is vccio connected to?
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline cosminnciTopic starter

  • Regular Contributor
  • *
  • Posts: 85
  • Country: ro
Re: ftdi serial communication
« Reply #6 on: October 05, 2015, 07:58:21 am »
The sensor is a ds18b20.
I mean I do not use the 3.3v from the ftdi, I placed the pads for testing only.
I made the same circuit on a breadboard and works.
something on my design is wrong, and I think on the ftdi part.
the ds is on the breadboard and the ftdi is on the pcb, and I get the tx line like in the image.

vccio is unconnected..
 

Online Monkeh

  • Super Contributor
  • ***
  • Posts: 7992
  • Country: gb
Re: ftdi serial communication
« Reply #7 on: October 05, 2015, 07:59:28 am »
... Well you need to connect vccio or it has nothing to drive the outputs with.
 

Offline cosminnciTopic starter

  • Regular Contributor
  • *
  • Posts: 85
  • Country: ro
Re: ftdi serial communication
« Reply #8 on: October 05, 2015, 08:00:37 am »

I use the 5v from the usb directly
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9930
  • Country: nz
Re: ftdi serial communication
« Reply #9 on: October 05, 2015, 08:11:18 am »
Vccio powers half the chip, It needs to be connected to a rail.
 3.3 if you want 3.3v io and 5v if you want 5v io
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline cosminnciTopic starter

  • Regular Contributor
  • *
  • Posts: 85
  • Country: ro
Re: ftdi serial communication
« Reply #10 on: October 05, 2015, 09:56:50 am »

Thank you Psi, that was it, it is working now, I missed that connection.

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf