Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

3.2V to 5V TTL interface problems

Status
Not open for further replies.

GraveYard_Killer

New Member
i am having problems interfacing a 3.2V 24c16 interfaced with 5V PIC16f877. 5V cant be supplied with the 24c16 since it is in a device which has its own supply 3.2V.

i thought i have problems with transmitting I2C protocols. i got a 24c16 IC only and interface it directly with the PIC and I can read and write data flawlessly, i conclude that my I2C protocol writing is correct. but when it is interfaced to the 24c16 inside my 3.2V device, the value displayed is sometimes correct and sometimes not. do i need some kind of interface circuit for interfacing 5V to 3.2V using discrete components? thanks
 
Are u using Microchip 24C16 or 24LC16 because 24C16 has a supply voltage range of 4.5V to 5.5V. And 24LC16 has a supply voltage range of 2.5 V to 5.5V.

If u are using Microchip 24C16 as u have mentioned, it maynot work correctly as u are gving a Vcc of 3.2V which is less than the operational Vcc 4.5V to 5.5V.

To interface two voltage levels u will need a voltage translator IC like PI74LVC3245A.
 
marxmax said:
Are u using Microchip 24C16 or 24LC16 because 24C16 has a supply voltage range of 4.5V to 5.5V. And 24LC16 has a supply voltage range of 2.5 V to 5.5V.

If u are using Microchip 24C16 as u have mentioned, it maynot work correctly as u are gving a Vcc of 3.2V which is less than the operational Vcc 4.5V to 5.5V.

To interface two voltage levels u will need a voltage translator IC like PI74LVC3245A.

thanks for the reply.

im using an ATMEL 24C16 and 24C32. They are powered from a device with 3.2V. The limitation is that i should not give them 5V supply. They are already soldered in the PCB and just have pin points for SDA, and SCL. I already checked the hardware and im sure that everything is ok (ground is common for the PIC and the device, Write Protect is connected to ground, device address of the EEPROM properly configured).

also, before I read any of the two eeproms, i ensure that one of them is turned off to make sure that one of the EEPROM doesn't answer at the same time.

I need schematics of a voltage translator or level shifter using discrete components. i can't manage to get the voltage translator IC due to time constraints. In fact, I already have a level shifter circuit here and tried it with my 3V to 5V interface, and it reads different data everytime I read into the EEPROM and isn't reliable.
 
GraveYard_Killer:
"I need schematics of a voltage translator "

This usually work:
PICpin(5Vsupply) <->resistor(200 Om*)<->zener(3.2V)-<->pinCHIP(3.2Vsupply)
 
Lino said:
GraveYard_Killer:
"I need schematics of a voltage translator "

This usually work:
PICpin(5Vsupply) <->resistor(200 Om*)<->zener(3.2V)-<->pinCHIP(3.2Vsupply)

will these work for I2C bus protocol? i have a SDA pin which is bi-directional so i need something that will translate 5v to 3v(from pic to the device) and 3v to 5v (device to pic).
 
GraveYard_Killer said:
i am having problems interfacing a 3.2V 24c16 interfaced with 5V PIC16f877. 5V cant be supplied with the 24c16 since it is in a device which has its own supply 3.2V.

i thought i have problems with transmitting I2C protocols. i got a 24c16 IC only and interface it directly with the PIC and I can read and write data flawlessly, i conclude that my I2C protocol writing is correct. but when it is interfaced to the 24c16 inside my 3.2V device, the value displayed is sometimes correct and sometimes not. do i need some kind of interface circuit for interfacing 5V to 3.2V using discrete components? thanks

Why not run the PIC from 3.2V as well?.

The 877 and 877A series have an operating range of 2V to 5.5V.
 
GraveYard_Killer:
"will these work for I2C bus protocol? i have a SDA pin which is bi-directional "


Yes, because for PIC Min Input Low Voltage=2 V (log1) for VDD= 4.5 to 5.5V and Input Leakage Current= 1 mikroA .
 
Nigel Goodwin said:
GraveYard_Killer said:
i am having problems interfacing a 3.2V 24c16 interfaced with 5V PIC16f877. 5V cant be supplied with the 24c16 since it is in a device which has its own supply 3.2V.

i thought i have problems with transmitting I2C protocols. i got a 24c16 IC only and interface it directly with the PIC and I can read and write data flawlessly, i conclude that my I2C protocol writing is correct. but when it is interfaced to the 24c16 inside my 3.2V device, the value displayed is sometimes correct and sometimes not. do i need some kind of interface circuit for interfacing 5V to 3.2V using discrete components? thanks

Why not run the PIC from 3.2V as well?.

The 877 and 877A series have an operating range of 2V to 5.5V.

iirc, pic16f877 runs from minimum of 4V. and pic16LF877 are the ones that run from minimum voltage of 2V. however i will check the datasheet again tomorrow to confirm this.

thanks for the reply and suggestions.
 
GraveYard_Killer said:
iirc, pic16f877 runs from minimum of 4V. and pic16LF877 are the ones that run from minimum voltage of 2V. however i will check the datasheet again tomorrow to confirm this.

Well I was going to suggest a 16LF877, but when I checked on MicroChip there's no such thing listed!.

So I downloaded the latest datasheets for both the 877 and 877A, and they both are listed down to 2V - presumably MicroChip have dropped the LF range and increased the voltage spec on the normal chips?.
 
you can also achieve voltage translation with a mosfet... google it there are a fair few site with examples of how to do it.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top