![]() | ![]() | ![]() |
| | |||||||
| 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? |
| | Thread Tools | Display Modes |
| | (permalink) |
| Experienced Member | 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 |
| | |
| | (permalink) |
| Experienced Member | 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 |
| | |
| | (permalink) |
| Experienced Member | Thanks AG, So for a PIC application (@ 5V) 5V / 0.004A = 1.2K (ish)? Mark |
| | |
| | (permalink) |
| Super Moderator | 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. |
| | |
| | (permalink) | |
| Experienced Member | Quote:
| |
| | |
| | (permalink) |
| Experienced Member | 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 |
| | |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| 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 |