PDA

View Full Version : using pins 30 and 31



bozo
08-28-2007, 11:11 PM
Hi,
the manual says these pins are free to use for other purposes after they've loaded the eeprom, but what prevents interference from the eeprom after booting? Are there any hidden traps in using these pins?
Cheers,
Mark

R Pankau
08-28-2007, 11:16 PM
I'm no expert but I may have one answer,
the EEprom is hardware addressable (3 bits worth) they are all tied to ground so as long as you don't request any data from that chip's addres it should be silent. you could put other EEPROMs on the same bus as long as they had different addresses as set by the 3 external pins.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
necessity is a mother

deSilva
08-28-2007, 11:17 PM
bozo said...
Are there any hidden traps in using these pins?

There are traps, but they are by no means "hidden". Just have a look at the schematic and you will soon be able to anwer yiur question yorself.

They form a pair of I2C lines and you should not apply signals to them the EEPROM could mistake for a correctly addressed access.

bozo
08-28-2007, 11:26 PM
so if I use these pins for sending random data (say), there's always going to be a small probability that the bit streams might prod the eeprom into action unintentionally?

Paul Baker
08-28-2007, 11:34 PM
Yes, you can use either one for any use with no problem, or use both as an I2C bus for other I2C devices, but using both for any purpose runs the risk of getting the eeprom to respond with a memory location (producing indeterminate signal behavior) or writing to a memory location (potentially catostrophic program alteration).

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker (mailto:pbaker@parallax.com)
Propeller Applications Engineer
[/url][url=http://www.parallax.com] (http://www.parallax.com)
Parallax, Inc. (http://www.parallax.com)

deSilva
08-28-2007, 11:35 PM
A VERY small probability. But note you have also things like a pull-up....

Paul Baker
08-29-2007, 12:00 AM
Technically it's a 1 in 256 chance for the EEPROM chip used on the protoboard for any set of 8 cycles on the SCL, that is not an exceeding small statistic when you consider you are potentially rolling the dice hundreds of times a second.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker (mailto:pbaker@parallax.com)
Propeller Applications Engineer
[/url][url=http://www.parallax.com] (http://www.parallax.com)
Parallax, Inc. (http://www.parallax.com)

parts-man73
08-29-2007, 12:05 AM
The Boot EEPROM is attached to P28-P29, not 30 and 31.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Brian

uController.com (http://uController.com) - home of SpinStudio

R Pankau
08-29-2007, 12:20 AM
it was a trick question

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I'd rather have a bottle in front of me than a frontal labotomy