Levelshifter in SPI_Ethernet Demo

General discussion on mikroBasic PRO for PIC32.
Post Reply
Author
Message
Helmut
Posts: 252
Joined: 02 Aug 2006 12:58
Location: Flensburg Germany

Levelshifter in SPI_Ethernet Demo

#1 Post by Helmut » 09 Mar 2011 18:23

Hello,
if somebody can explain to me why the levelshifter is inserted only for the wire "MISO" in the demosheet of the SPI-Ethernet ENC28J samples?
Best regards, Helmut
Attachments
Levelshifter_PIC32.png
Levelshifter_PIC32.png (36.04 KiB) Viewed 1644 times

Malcolm_M
Posts: 184
Joined: 12 May 2007 13:01
Location: Bristol, UK

Re: Levelshifter in SPI_Ethernet Demo

#2 Post by Malcolm_M » 10 Mar 2011 11:21

If VCC3 is 3 or 3.3V and VCC3.3 is 3.3V then there should be no need for level shifting.

The 74HCT245 is a tri-state octal bus buffer and not a true level convertor and the !OE (output enable active low) pin is not connected.

I think the 74HCT245 is only required if the micro is a 5V type.
Microchip datasheet: 'Required only if the microcontroller is operating at 5V. See Section 2.5 “I/O Levels” for more information.
- possibly an error on the schematic.

The ENC28J60 inputs are 5V tolerant, so if the micro is a 5V type only "MISO" an ENC28J60 output would need to be shifted from 3.3 to 5V levels.

User avatar
slavisa.zlatanovic
mikroElektronika team
Posts: 1321
Joined: 07 Apr 2009 09:39

Re: Levelshifter in SPI_Ethernet Demo

#3 Post by slavisa.zlatanovic » 10 Mar 2011 11:57

Hi!

There is a little mistake in our schematic in the Help file of the mikroBasic PRO for PIC32 compiler.
Level translator is not required. Sorry for the inconvenience. We'll fix the schematic for the next compiler release.
Best regards
Slavisa

Post Reply

Return to “mikroBasic PRO for PIC32 General”