Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
Thread Tools Display Modes
Old 9th May 2008, 08:14 PM   (permalink)
Experienced Member
 
UTMonkey is a jewel in the roughUTMonkey is a jewel in the rough
Default Pullups - Rule of thumb?

Dear All,

I am currently working on a project which involves getting a microcontroller to talk to a DS1306 using SPI.

Nearly all datasheets (not just the DS1306) contain a typical wiring example, trouble is for IC's which require a pullup resistor there are no details (that I can determine) which help me select which value to use as a pullup.

Is there a rule of thumb to this? or can I derive a value based on how much the chip sources\sinks?

Thanks in advance

Mark
UTMonkey is offline   Reply With Quote
Old 9th May 2008, 08:41 PM   (permalink)
Experienced Member
 
audioguru is a splendid one to beholdaudioguru is a splendid one to beholdaudioguru is a splendid one to beholdaudioguru is a splendid one to beholdaudioguru is a splendid one to beholdaudioguru is a splendid one to beholdaudioguru is a splendid one to behold
Default

The value of the pullup resistor is determined by the input current of whatever logic family it drives.
The DS1306 has a TTL output low voltage (0.4V) with a maximum current of 4mA. So its pullup resistor could be 2k for feeding a TTL gate, 1.2k for feeding a 74LS TTL gate or almost anything more than 1.2k for feeding Cmos which is a microcontroller.
__________________
Uncle $crooge
audioguru is online now   Reply With Quote
Old 9th May 2008, 08:48 PM   (permalink)
Experienced Member
 
UTMonkey is a jewel in the roughUTMonkey is a jewel in the rough
Default

Thanks AG,

So for a PIC application (@ 5V)

5V / 0.004A = 1.2K (ish)?

Mark
UTMonkey is offline   Reply With Quote
Old 9th May 2008, 09:02 PM   (permalink)
Super Moderator
 
Nigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to behold
Default

That's rather low for a CMOS pullup - one factor you need to consider is speed, the pullup has to charge the capacitance of the line it's pulling high, so for long traces you need smaller values.

For your application I would suggest 'somewhere' in the 10's of kilohms -18K, 22K, it's really VERY uncritical.

BTW, just got back from Chesterfield, my daughter was playing at Joplins. Be there again Monday, she's playing at The Winding Wheel.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline   Reply With Quote
Old 10th May 2008, 12:01 AM   (permalink)
Experienced Member
crutschow is just really nicecrutschow is just really nicecrutschow is just really nice
Default

Quote:
Originally Posted by audioguru
The value of the pullup resistor is determined by the input current of whatever logic family it drives.
The DS1306 has a TTL output low voltage (0.4V) with a maximum current of 4mA. So its pullup resistor could be 2k for feeding a TTL gate, 1.2k for feeding a 74LS TTL gate or almost anything more than 1.2k for feeding Cmos which is a microcontroller.
The TTL current is a current coming out of the TTL input which you have to sink to ground to provide a logic zero. (The TTL input is the emitter of an NPN transistor). Thus the pullup resistor is not feeding this current. The TTL input current for a logic high is only leakage current, which is typically in the tens of microamps.
crutschow is online now   Reply With Quote
Old 10th May 2008, 07:07 AM   (permalink)
Experienced Member
 
audioguru is a splendid one to beholdaudioguru is a splendid one to beholdaudioguru is a splendid one to beholdaudioguru is a splendid one to beholdaudioguru is a splendid one to beholdaudioguru is a splendid one to beholdaudioguru is a splendid one to behold
Default

An old TTL input needs up to 1.6mA to 0V to be a logic low.
A Cmos input needs no current but needs a voltage that is at least 0.3 times the supply voltage to be a logic low.
__________________
Uncle $crooge
audioguru is online now   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
BAD night.. 16F628A weak pullups. mramos1 Micro Controllers 6 12th December 2006 04:57 PM
USB thumb drive + PIC + speaker yagtoby Electronic Projects Design/Ideas/Reviews 3 19th November 2006 09:34 PM
thumb scaner for banking imgemini Electronic Projects Design/Ideas/Reviews 0 11th August 2004 08:20 PM
to pull or not to pull up nero_xxx Electronic Projects Design/Ideas/Reviews 9 3rd May 2004 05:48 AM
Can PIC use thumb drive as storage JunglePython Micro Controllers 5 18th November 2003 06:11 PM



All times are GMT. The time now is 02:16 AM.


Electronic Circuits  |  Radio Controlled
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.