Search found 18 matches
- Wed Nov 24, 2010 7:02 pm
- Forum: SUB-20 General Discussion
- Topic: SPI data transfer issue
- Replies: 43
- Views: 155384
Re: SPI data transfer issue
Hi, I tried the files you linked in your previous email. It works better but it still doesn't work as intended. The first multiple byte read with pulse inbetween works fine, but when I perform a second read (or any subsequent read) on the data the data, I get garbage and the FIFO buffer entry isn't ...
- Thu Nov 18, 2010 12:34 am
- Forum: SUB-20 General Discussion
- Topic: SPI data transfer issue
- Replies: 43
- Views: 155384
Re: SPI data transfer issue
Well I did extensive tests with the new functionality sub_spi_transfer_ess, but it doesn't work. My next test will be to check the output on an oscilloscope. BTW, on the page: http://www.xdimax.com/sub20/doc/HTML/index.html?sub_spi_transfer_ess.htm The example is wrong, it should show sub_spi_transf...
- Fri Oct 22, 2010 11:23 pm
- Forum: SUB-20 General Discussion
- Topic: SPI data transfer issue
- Replies: 43
- Views: 155384
Re: SPI data transfer issue
Alright, thanks for the modifications. I'll post samples once everything is working. As for oscilloscope screen shots it might take a while 
Dan

Dan
- Fri Oct 15, 2010 6:36 pm
- Forum: SUB-20 General Discussion
- Topic: SPI data transfer issue
- Replies: 43
- Views: 155384
Re: SPI data transfer issue
*bump*
When can I expect the new software ? I am highly dependent on the sub-20 and the project is on hold while we wait for that update.
Dan
When can I expect the new software ? I am highly dependent on the sub-20 and the project is on hold while we wait for that update.
Dan
- Sat Oct 09, 2010 4:53 pm
- Forum: SUB-20 General Discussion
- Topic: SPI data transfer issue
- Replies: 43
- Views: 155384
Re: SPI data transfer issue
Looks perfect ! Can't wait to use it 
Dan

Dan
- Tue Oct 05, 2010 12:39 am
- Forum: SUB-20 General Discussion
- Topic: About the Flash memory support in SUB-20
- Replies: 4
- Views: 17547
Re: About the Flash memory support in SUB-20
I think the best thing to do is to write your own software using the SUB-20 SPI API. The tool does not really permit the full control of the flash. BTW, when using flash, you can only write 0s over 1s to write new data in a memory cell, you must perform a flash erase before and put the data back to ...
- Mon Oct 04, 2010 9:34 pm
- Forum: SUB-20 General Discussion
- Topic: SPI data transfer issue
- Replies: 43
- Views: 155384
Re: SPI data transfer issue
So basically, I need 1 call of sub_spi_transfer to read Register 0x30 and Register 0x39 (4 bytes with a CS pulse between the first 2 bytes and the last 2) and 1 call of sub_spi_transfer to get all the data in the buffer to read [Register 0x32 to Register 0x37] * [the number read in register 0x39] (i...
- Mon Oct 04, 2010 9:27 pm
- Forum: SUB-20 General Discussion
- Topic: SPI data transfer issue
- Replies: 43
- Views: 155384
Re: SPI data transfer issue
Register 0x30 - Interrupt Source (To validate Overruns or Not) Register 0x39 - FIFO Status (To get the number of entries in the FIFO buffer) Register 0x32 - Data X0 Register 0x33 - Data X1 Register 0x34 - Data Y0 Register 0x35 - Data Y1 Register 0x36 - Data Z0 Register 0x37 - Data Z1 Reading 0x32 to...
- Sun Oct 03, 2010 11:20 pm
- Forum: SUB-20 General Discussion
- Topic: SPI data transfer issue
- Replies: 43
- Views: 155384
Re: SPI data transfer issue
I already knew that, but it works for consecutive registers only. If the registers are not consecutive, you have to pulse it yourself. So here is how it is used: 1- send the read command for the INT Source register (2 bytes) 2- pulse the CS (sub_spi_transfer with SS_LO for 1 and 2) 3- send the read ...
- Sun Oct 03, 2010 5:30 pm
- Forum: SUB-20 General Discussion
- Topic: SPI data transfer issue
- Replies: 43
- Views: 155384
Re: SPI data transfer issue
Yes it is the right device !
So basically have the CS pulse every 2 bytes or 7 bytes (For single read/write commands and Multiple Byte read commands for data reading).
Thanks,
Dan
So basically have the CS pulse every 2 bytes or 7 bytes (For single read/write commands and Multiple Byte read commands for data reading).
Thanks,
Dan