I2C-driver callable from ASM?
Nick Mueller
Posts: 815
Hi!
I need to call I2C from assembler (and SPIN). And I need to make sure that more than one cog can safely access I2C (EEPROM and an ADC).
Now I could use the I2C-driver from Parallax (it's almost written in ASM) and write a wrapper around it (in ASM) that does handle the concurrent access. Communication would have to happen via HUB-RAM (status and scratch-area for block read/write).
But maybe someone has done that already?
Nick
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Never use force, just go for a bigger hammer!
The DIY Digital-Readout for mills, lathes etc.:
YADRO
I need to call I2C from assembler (and SPIN). And I need to make sure that more than one cog can safely access I2C (EEPROM and an ADC).
Now I could use the I2C-driver from Parallax (it's almost written in ASM) and write a wrapper around it (in ASM) that does handle the concurrent access. Communication would have to happen via HUB-RAM (status and scratch-area for block read/write).
But maybe someone has done that already?
Nick
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Never use force, just go for a bigger hammer!
The DIY Digital-Readout for mills, lathes etc.:
YADRO
Comments
Did I dream that? Can't find it anymore.
Does any I2C-driver in ASM exist?
Nick
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Never use force, just go for a bigger hammer!
The DIY Digital-Readout for mills, lathes etc.:
YADRO
But simpler still is the item in object exchange: http://obex.parallax.com/objects/26/
But it's written in Spin. Doesn't help me. :-(
Nick
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Never use force, just go for a bigger hammer!
The DIY Digital-Readout for mills, lathes etc.:
YADRO
Right! It's there. In the file "sdspiFemto.spin
Thx!
Nick
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Never use force, just go for a bigger hammer!
The DIY Digital-Readout for mills, lathes etc.:
YADRO