Diode usage in SPI modules

Thread Starter

TGY321

Joined Jan 4, 2021
4
Hi All,

Hoping that someone can put me out of my misery. I have been searching the internet for the past 5days for an answer to this question and feel like I am starting to lose my mind. Can anyone explain why the attached schematic has a 1N4148 on each of the SDI_5V, SCLK_5V and CS_5V lines? The only thing I can think of is that it must have something to do with level shifting between the 3.3v Max31865 chip and the 5v Arduino that it is meant to connect to.

Full disclosure I am planning on having boards made as I wanted to try out SMD assembly and thought this would be a fun project. I originally started looking into this to assist in selecting the right 1n4148 component however now also want to know what they are doing in this design and how/if/why i would incorporate them into future SPI module designs.
 

Attachments

Wolframore

Joined Jan 21, 2019
2,193
1. as long as we get TTL low it doesn’t matter in this case.
2. I had to find a version I can read to get closer... your low will be closer to 0.4v. With 10k pull-up your current will be closer to couple hundred uA. It’s below the chart that datasheet gives.

I like the design because of low part count.
72A8B6B3-7936-4616-8E85-3E24CB1F6829.jpeg
BFC86FCD-FDAE-40D9-868E-98D182F6EF3C.jpeg
D0238CC2-1091-42C3-A629-392EC1B99912.jpeg
 

Thread Starter

TGY321

Joined Jan 4, 2021
4
1. as long as we get TTL low it doesn’t matter in this case.
2. I had to find a version I can read to get closer... your low will be closer to 0.4v. With 10k pull-up your current will be closer to couple hundred uA. It’s below the chart that datasheet gives.

I like the design because of low part count.
View attachment 226810
View attachment 226807
View attachment 226809
Thanks again Wolframore. Sorry for being a bit of a noob here but we are right at the edge of my knowledge here. Which datasheet is this info on? I think I am getting a bit confused when I look up 1N4148 on Digikey or RS-components due to the huge number of variations. I am not sure I understand how to differentiate between a variation that will/won't work.
 

Wolframore

Joined Jan 21, 2019
2,193
The data is from Vishay: Vishay 1N4148. There are many manufactuers who make this part, it’s a standard. Unless you have some special requirement that demands a careful study of all the variations I would order the least expensive.
 
Top