Author Topic: FT231XQ to dsPIC33EV256GM006-I_PT: PIC Deaf?  (Read 727 times)

0 Members and 1 Guest are viewing this topic.

Offline NivagSwerdnaTopic starter

  • Super Contributor
  • ***
  • Posts: 2531
  • Country: gb
FT231XQ to dsPIC33EV256GM006-I_PT: PIC Deaf?
« on: June 06, 2020, 03:03:08 pm »
I'm using parts that are new to me and a bit confused...

I have a FT231XQ which is USB powered and connected via 1k resistors to a dsPIC33EV256GM006 also USB i.e. 5V

Transmitting from the PIC to the FT231XQ to my PC works fine...

Receiving is very weird... On the PIC I am getting RX interrupts by the data is always 0x00; it looks like it is correctly decoding the frame but always reading zero.

Now... a close inspection of the data sheets suggests the FT231XQ will output to VCCIO which in turn is supplied from 3V3OUT and scoping shows that what is going into the PIC is of similar levels.

On the PIC I am receiving on pin 31 which is RPI24/RA8

Could it be that my level is high enough for some function but not high enough for others?

Reading the spec says Data I/O HI should be 0.75VDD = 5*0.75 = 3.75V so I am out of spec.

Any quick bodge I could try to pull it up high enough?

I'm not sure if this is a hardware issue or that I am fighting against MCC.

Thanks in advance
 
 

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 17042
  • Country: fr
Re: FT231XQ to dsPIC33EV256GM006-I_PT: PIC Deaf?
« Reply #1 on: June 06, 2020, 03:34:06 pm »
Had to look at the product to figure out the dsPIC33EV256GM006 was a 5V part only.
So yeah you're definitely out of spec. The easiest would be to add a level shifter. You could do that with a couple transistors if you don't want to use a full-blown level shifter.
Don't bother trying to "understand" the behavior - it's likely a bit random as you're probably close to the actual threshold for the HI level (0.75*VDD is a guaranteed treshold - a safe figure - not the actual threshold for a particular part.) Design to specs.
 
The following users thanked this post: NivagSwerdna

Online voltsandjolts

  • Supporter
  • ****
  • Posts: 3228
  • Country: gb
Re: FT231XQ to dsPIC33EV256GM006-I_PT: PIC Deaf?
« Reply #2 on: June 06, 2020, 03:44:47 pm »
You could try a 680 Ohm pullup to 5V as a quick and nasty hack.
 
The following users thanked this post: NivagSwerdna

Offline NivagSwerdnaTopic starter

  • Super Contributor
  • ***
  • Posts: 2531
  • Country: gb
Re: FT231XQ to dsPIC33EV256GM006-I_PT: PIC Deaf?
« Reply #3 on: June 06, 2020, 04:12:09 pm »
Thankfully CNPUA = 0x0100 was enough!

Getting data now.

Maybe URXINV and a BS138 inverting shift with and a 10k pull up for Rev 3!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf