CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

PIC24EP512 - 5V UART on 3.5V PIC

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
benoitstjean



Joined: 30 Oct 2007
Posts: 566
Location: Ottawa, Ontario, Canada

View user's profile Send private message

PIC24EP512 - 5V UART on 3.5V PIC
PostPosted: Wed Sep 25, 2024 8:05 pm     Reply with quote

Device: PIC24EP512GP806

Hi guys, I need to tie a device's UARTs running on 5V to my PIC24EP512GP806 running at 3.5V.

The PIC uses pins and pins F2 and F3 (pins 34/33) for UART 1 and F4 and F5 (pins 31/32) for UART2.

In the PIC datasheet on P5, it indicates that the above-mentioned pins are 5V tolerant. So dumb question because I never tried it but I take for granted that if the TX pin of the UART is 5V, I can tie it without a level translator to the PIC's RX pin even if the PIC is 3.5V? The PIC's TX pin will send a 3.5V signal to the 5V UART. That part I'm not concerned regarding damaging anything.... it's more the 5V TX to 3.5V RX that concerns me.

I'm just asking because I'm really pis*ed that I ordered breakout boards with the TI TXS0108E 8-bit bi-directional level translator which I thought was the same as TXB0108 that I have been using for years but I guess it's not the same because I don't have any signals going through the IC and everything is properly connected. Then I looked at the specs and I will admit that parts of it are beyond my understanding but I guess there is significant difference because it's not working.

Ben
Ttelmah



Joined: 11 Mar 2010
Posts: 19538

View user's profile Send private message

PostPosted: Thu Sep 26, 2024 2:07 am     Reply with quote

Yes. Pins that are 5v tolerant, can do exactly this. Accept a 5v input without
problems. Very Happy

However 'caveat' will the UART inputs you have on the 5v device reliably
accept a 3v output as a logic '1'?. If these inputs are quoted as 'TTL', they
should (this has a VIH of 2.4v). However check the data sheet before
assuming this is the case.... Remember a PIC running at 3.3v (or 3.5, which
you refer to), will not guarantee to pull it's outputs 'up' to this supply
voltage. Voh is normally quoted as between about 0.2v and 0.6v below the
supply, depending on the load current.
benoitstjean



Joined: 30 Oct 2007
Posts: 566
Location: Ottawa, Ontario, Canada

View user's profile Send private message

PostPosted: Thu Sep 26, 2024 4:45 am     Reply with quote

Yeah that was the other part - if the PIC's TX output at 3.5V will be valid. But I'm looking at the specs, it's a Nextion display and under "Interface performance" found here https://nextion.tech/datasheets/nx4827p043-011c/#4 it says that TXD Output High is minimum 3V, typical 5V. So I think it should work. I'll give it a try tonight.

Thanks for your input.

Ben
Ttelmah



Joined: 11 Mar 2010
Posts: 19538

View user's profile Send private message

PostPosted: Thu Sep 26, 2024 7:13 am     Reply with quote

It is the input high voltage that matters for its receive pin. This is
given as 3v, so should be OK. The data sheet is interesting in fact
because it specifically says the logic supports 3.3v TTL and 5v TTL.
So it should be fine. Very Happy
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group