CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Ideas for a "ID" IC for Daughterboards

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
jecottrell



Joined: 16 Jan 2005
Posts: 559
Location: Tucson, AZ

View user's profile Send private message

Ideas for a "ID" IC for Daughterboards
PostPosted: Fri Mar 05, 2010 10:57 am     Reply with quote

Not sure what's available to solve this problem, but I'm going to stock any number of different boards, each with a different function. The main board will need to poll (preferably on I2C bus) each board to see if its type is present in the "stack."

What I'd like is a specialized IC that I can produce multiple copies of an ID number in memory to use. I thought an I2C eeprom would work, but more than wouldn't work on the same bus with the same address. Then I thought I'd use a 10Fxxx part and make it into a quasi I2C eeprom with a unique address.

Is there already what I'm looking for available off the shelf?

If I do use a 10Fxxx part, any idea how much program space it would take to make it a I2C slave?

Thanks,

John
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Mar 05, 2010 12:01 pm     Reply with quote

See the Dallas (Maxim) Silicon Serial Number ic's.
jecottrell



Joined: 16 Jan 2005
Posts: 559
Location: Tucson, AZ

View user's profile Send private message

PostPosted: Fri Mar 05, 2010 12:15 pm     Reply with quote

PCM programmer wrote:
See the Dallas (Maxim) Silicon Serial Number ic's.


Had a quick look. I probably wouldn't be able to meet the minimums for custom numbering. So, I think I'm stuck with some sort of custom scheme.

Thanks for the idea.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Fri Mar 05, 2010 4:10 pm     Reply with quote

An I2C master is easy to write in software, but the I2C slave in software is a lot harder and not recommended.
There are no PIC10 processors with I2C hardware module, the cheapest PIC16 with I2C starts at $0.97.
jbmiller



Joined: 07 Oct 2006
Posts: 73
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Mar 05, 2010 7:45 pm     Reply with quote

Don't know if I'm reading your request right...been a loooong day but ..
If these daughter boards are your design, with a PIC, just store the 'type' in eeprom. Just one byte would give you 256 different 'types'. Another byte or two could be used for the serial number of that board. A couple more bytes could be used for firmware version info. This is similar to the way PC peripheral cards are coded.
jecottrell



Joined: 16 Jan 2005
Posts: 559
Location: Tucson, AZ

View user's profile Send private message

PostPosted: Mon Mar 08, 2010 2:11 pm     Reply with quote

ckielstra wrote:
An I2C master is easy to write in software, but the I2C slave in software is a lot harder and not recommended.
There are no PIC10 processors with I2C hardware module, the cheapest PIC16 with I2C starts at $0.97.

Arghhh.

jbmiller wrote:
If these daughter boards are your design, with a PIC, just store the 'type' in eeprom.

No, there won't be a 'big' PIC on the daughter boards.

Any other ideas?

Thanks,

John
John P



Joined: 17 Sep 2003
Posts: 331

View user's profile Send private message

PostPosted: Mon Mar 08, 2010 3:33 pm     Reply with quote

Could you somehow give each board its own serial EEPROM chip (you can get them for less than $.25 each) and have the processor read it as I2C master? It's not clear to me how you intend to communicate with these processors, though. They can't do much.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Mon Mar 08, 2010 5:39 pm     Reply with quote

Why do you want to use I2C for communication?
As you already found out addressing is a problem. Each unit requires a unique address and with a maximum of 256 addresses (1024 in special cases) you'll soon run into problems when you have no control about which units will be combined by the user.

An option I just found are the new Microchip UNI/O Serial EEPROMs:
- 1 wire bus
- 1-16kbit devices
- Prices starting at $0.23
These devices did look nice at first sight but it looks like the addressable devices are not out yet. Even when addressable parts come out the address range is limited to 8 bits, too small.

The Dallas (Maxim) Silicon Serial Number ic's are nice but have the problem you can only assign the number (-ranges) when you order large quantities.
A programmable version would be nice. This is provided in the DS2431, a 1kbit EEPROM. These cost $0.59 @ 1k
Because each chip has it's own unique 64-bit ID you can add as many devices to the same bus as you want without address conflicts. Program your product-type into the EEPROM and of you go.
jecottrell



Joined: 16 Jan 2005
Posts: 559
Location: Tucson, AZ

View user's profile Send private message

PostPosted: Mon Mar 08, 2010 6:36 pm     Reply with quote

Well, instead of using the 5-6 pin package parts, if I use an 8 pin part I get the addressing I need. The option of 8 different addresses should be enough.

Thanks for all the ideas.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group