Interest in Building an Assembly SPI Driver for the SCL3300
bookworm1706
Posts: 14
Hello, I am wondering if anyone is interested in building an assembly SPI driver for the SCL 3300 accelerometer to interface with the propeller 1. It is full duplex and I haven't been able to find anything on the forums or the OBEX where someone has implemented a full duplex SPI interface in assembly. If someone has some code or knows of an object already on the obex they think I could modify to work I would love to be pointed in the proper direction. I am currently using my own SPIN SPI driver, but it is very slow 19.2KHz, the datasheet states that the chip prefers 2-4MHZ for lowest noise, which from what I understand should be achievable using assembly. It would be great to get my reading speed up.
If there is not anything publicly available, I would be glad to pay someone to do it as my assembly level programming skills are very poor to nonexistent.
Thanks,
Jonathan
If there is not anything publicly available, I would be glad to pay someone to do it as my assembly level programming skills are very poor to nonexistent.
Thanks,
Jonathan
Comments
Mike
Why does SPI have to be reinvented every time for every device? Surely just one for reading a byte and one for writing, and then some block routines. My write routines also support 16/24/32 bit write as well and any access always asserts the chip select automatically.
All my code uses these basic routines, even the SD card and for me bolting in a new device is a piece of cake.
I am now currently working with someone on this.
You all have some excellent suggestions, and I appreciate the help.