SDA/SCL Pullups
Newzed
Posts: 2,503
I'm building a new EEPROM board and I want to use SMD resistors.· I thought I had some 10K but all I have is 4.7K.· Is 4.7K too strong a pullup for the SDA/SCL pins?
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Yesterday is history, tomorrow is a mystery, and today is a gift.
That is why they call it the present.
Don't have VGA?
Newzed@aol.com
·
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Yesterday is history, tomorrow is a mystery, and today is a gift.
That is why they call it the present.
Don't have VGA?
Newzed@aol.com
·
Comments
According to an application note on Maxim's website, anything over 1K should be fine for I2C. There is a difference between I2C and SMB which is a similar bus. SMB expects higher values (like 10K). The main advantage of using something higher than 4.7K would be if you're going to run your system off batteries. In that case, a 1/2mA extra drain can add up.
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Yesterday is history, tomorrow is a mystery, and today is a gift.
That is why they call it the present.
Don't have VGA?
Newzed@aol.com
·
Look: You can either:
- start a new Cog cog containing machine code from the DAT section. ThatCOG would run forwever until "stopped", starting at address zero. There are no "objects" with that concept.
or:
- start a new COG with a SPIN interpreter. You use a different syntax with the COGNEW for this. This COG will be active as long as the called method takes. There is also no "object" with this concept.
Post Edited (deSilva) : 11/1/2007 1:29:55 AM GMT
Sid·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Yesterday is history, tomorrow is a mystery, and today is a gift.
That is why they call it the present.
Don't have VGA?
Newzed@aol.com
·
However: You cannot parametrize COGNEW with a method from another object - which is a well known bug and not a feature So library objects contain a START routine, not only for convenience and encapsulation.
When you want an independant COG to run a (SPIN) routine in another object, you have to wrap it into another routine in your local object.
You should be able to start another cog using BS2_Functions similar to the following (top of head code) using the new functions code I know you downloaded:
-Martin
PS: Sid, I·used one of your posted PCB's for the VGA connector.· Do you have a good source for a 15-pin female?· I can't find it at digikey, just the male.
·
I'll take a look at your [url=mailto:BS@.PWM]BS2.PWM[/url] stuff.· I need the PWM to run while the Prop is doing something else,and then I need to stop it.· The PWM starts when the Prop runs a certain task, then when the Prop finishes the task, the PWM stops.· I'll see what I can work out.
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Yesterday is history, tomorrow is a mystery, and today is a gift.
That is why they call it the present.
Don't have VGA?
Newzed@aol.com
·
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Yesterday is history, tomorrow is a mystery, and today is a gift.
That is why they call it the present.
Don't have VGA?
Newzed@aol.com
·
Thanks for the part number. Long... I just pulled a number out my.... you know.
-Martin
-Martin
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Yesterday is history, tomorrow is a mystery, and today is a gift.
That is why they call it the present.
Don't have VGA?
Newzed@aol.com
·
I just couldn't find it. Let me know if the code helps you do what you want.
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
StampPlot - GUI and Plotting Software
Southern Illinois University Carbondale, Electronic Systems Technologies
(case statement)
"G":
print(cls)
print(blu)
bblu ‘when I call this routine I want to start PWMing the blue LED
senddata("Y") 'WAIT command
waitcnt(wait/5 + cnt)
senddata("G")
print(13)
print(13)
recdata························ ·'Line 316 (see below)
Here is the bblu method:
PUB bblu
· Key.clearkeys
· Repeat until key.gotkey
· ‘this condition is met when I press a key in "recdata"
···· Bs.pwm(blu1, 175, 10)
Here is the recdata method:
PUB recData | c····················· 'receives time from Stamp C
· c := serialIn(0,stampBaud,sim#NInv,8)
· repeat until (c := serialIn(0,stampBaud,sim#NInv,8)) == 10
··· print(c)
· print_string(string(13,13," Press any key to continue"))
· key.getkey
· ·‘when I press a key I want the PWMing in PUB bblu to stop
The problem is – when I press "G" the bblu PWM starts and stays in the repeat loop until I press a key. The PWMN stops and THEN it gets the time. I would like for bblu to PWM until I press a key as called for in "recdata". This means the the PWM stuff has to be in a separate cog so it can run concurrently with "recdata", and this I have not been able to do. I will need about five or six methods in the PWM cog, each of which can be called by different methods in my main program.
Have I properly explained what I want to do?
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Yesterday is history, tomorrow is a mystery, and today is a gift.
That is why they call it the present.
Don't have VGA?
Newzed@aol.com
·
http://forums.parallax.com/showthread.php?p=685997
As there had been no (negative) feed back in the mean time I shall also post it as a pdf as part of my Tutorial Library.
Post Edited (deSilva) : 11/2/2007 7:05:10 PM GMT
Sorry, I was away for a few days without time to delve into Q & A here.
I'm not sure I totally follow, PWM_Set does run while other code is running - it uses the counters.
[noparse][[/noparse]code]
Not sure this is valid,
repeat until (c := serialIn(0,stampBaud,sim#NInv,8)) == 10
print(c)
how about something like:
repeat until c == 10
c := serialIn(0,stampBaud,sim#NInv,8)
print(c)
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Yesterday is history, tomorrow is a mystery, and today is a gift.
That is why they call it the present.
Don't have VGA?
Newzed@aol.com
·