Search found 11 matches
- Fri Jul 16, 2010 10:37 am
- Forum: SUB-20 General Discussion
- Topic: SUB-20 Slave Mode
- Replies: 22
- Views: 66053
Re: SUB-20 Slave Mode
At less than 100Khz it appears to work correctly. How come in that case a read from the SUB-20 app works at more than 100Khz but a write does not? I am taking from all that the max speed i can use the FIFO at is 100Khz.
- Fri Jul 16, 2010 8:58 am
- Forum: SUB-20 General Discussion
- Topic: SUB-20 Slave Mode
- Replies: 22
- Views: 66053
Re: SUB-20 Slave Mode
I do apologise i posted the wrong image of the CLK and MISO. Here is the correct one which is similar but this time the value is 0x10. http://img694.imageshack.us/img694/4350/clkmiso.png The 'Write' button was pressed on the Sub-20 app before the data was attempted to be read. I then run the code in...
- Thu Jul 15, 2010 1:22 pm
- Forum: SUB-20 General Discussion
- Topic: SUB-20 Slave Mode
- Replies: 22
- Views: 66053
Re: SUB-20 Slave Mode
I attached the MISO to GND and the values the master DSP received were 0. Below are the ocilliscope traces. The messages sent by the Master DSP to clock through the data is 9 (in hex). The messages put into the FIFO from the SUB-20 is 10 and 20 (in hex). The first image is CLK and MISO. http://img71...
- Wed Jul 14, 2010 1:45 pm
- Forum: SUB-20 General Discussion
- Topic: SUB-20 Slave Mode
- Replies: 22
- Views: 66053
Re: SUB-20 Slave Mode
I have tried it without the commas and the same thing happens.
The clock speed on the DSP master is 588,235Hz.
The clock speed on the DSP master is 588,235Hz.
- Tue Jul 13, 2010 1:14 pm
- Forum: SUB-20 General Discussion
- Topic: SUB-20 Slave Mode
- Replies: 22
- Views: 66053
Re: SUB-20 Slave Mode
Hi, I was going to do the test you asked for however i noticed a small error in the DSP code and when that was changed i can now send any number of messages from the DSP and receive them on the SUB-20 so that bit is sorted. I tried to do the same tests with the SUB-20 sending to the FIFO and the DSP...
- Fri Jul 09, 2010 11:52 am
- Forum: SUB-20 General Discussion
- Topic: SUB-20 Slave Mode
- Replies: 22
- Views: 66053
Re: SUB-20 Slave Mode
From doing some more playing around with the information i have i am able to send and receive one byte of information at a time between Master and Slave using the C# code or the SUB-20 tool(i am using the FIFO read and write in the sub tool) and the DSP. As soon as i try and send or receive more tha...
- Fri Jul 09, 2010 7:43 am
- Forum: SUB-20 General Discussion
- Topic: SUB-20 Slave Mode
- Replies: 22
- Views: 66053
Re: SUB-20 Slave Mode
Ah i assume from your comment that the "ref Description" value (i.e what i call x) in the FIFO_Read and FIFO_Write functions should be the number of bytes being sent and received. Cheers
- Thu Jul 08, 2010 4:03 pm
- Forum: SUB-20 General Discussion
- Topic: SUB-20 Slave Mode
- Replies: 22
- Views: 66053
Re: SUB-20 Slave Mode
Thanks for pointing that one out. I am now able to send one byte of data to the DSP. The new issue i beleive is to do with how the SUB-20 clocks the data in its FIFO to the DSP. The c# program i run first does the following: Setup the Sub20 as slave as shown above with the new phase used Create a by...
- Thu Jul 08, 2010 9:47 am
- Forum: SUB-20 General Discussion
- Topic: SUB-20 Slave Mode
- Replies: 22
- Views: 66053
Re: SUB-20 Slave Mode
Phase has been included in the code snippet above and the list of values for the Sub-20 app.
- Thu Jul 08, 2010 8:54 am
- Forum: SUB-20 General Discussion
- Topic: SUB-20 Slave Mode
- Replies: 22
- Views: 66053
Re: SUB-20 Slave Mode
Current set up i am trying after the advice above is as follows: Sub Tool: SPI Tab Enable is Ticked Slave is Ticked Polarity is Rise Phase is SmplSetup FIFO Tab SPI is ticked Timeout is 1000 Read Byte Count is 1 I then type in a message to send e.g 5 and press write in the FIFO tab. When i then run ...