| View previous topic :: View next topic |
| Author |
Message |
Ttelmah
Joined: 11 Mar 2010 Posts: 20161
|
|
Posted: Tue Apr 02, 2013 12:22 am |
|
|
In my code the value I'm sending is 'val' the counter in the outer loop. 0-127, hence sawtooth output.
Now, do you really expect to send bytes continuously without any pause at all and be able to make a meaningful measurement on the output?. The Vw settling time is 4uSec, so a minimum of this is needed.
Best Wishes |
|
 |
ouch_
Joined: 27 Mar 2013 Posts: 12
|
|
Posted: Tue Apr 02, 2013 8:10 am |
|
|
| Ttelmah wrote: |
Now, do you really expect to send bytes continuously without any pause at all and be able to make a meaningful measurement on the output?. The Vw settling time is 4uSec, so a minimum of this is needed.
|
no no! was only a test, and it worked, do not know why. |
|
 |
ouch_
Joined: 27 Mar 2013 Posts: 12
|
|
Posted: Tue Apr 02, 2013 10:36 pm |
|
|
looking at the scope, the SDO pin (compared with SDI) of ad7376, the word is shifted 1bit to the right
I believe that this value, wrong, is the used.
the LSB (or MSB) follow the last (or first) bit state,
and because of shifted loses the LSB, remains fixed.
I think that's the problem |
|
 |
Ttelmah
Joined: 11 Mar 2010 Posts: 20161
|
|
Posted: Tue Apr 02, 2013 11:39 pm |
|
|
Which is why I suggested using 7bit.
Best Wishes |
|
 |
ouch_
Joined: 27 Mar 2013 Posts: 12
|
|
Posted: Wed Apr 03, 2013 4:57 pm |
|
|
| Ttelmah wrote: | Which is why I suggested using 7bit.
Best Wishes |
hello Ttelmah, thanks!
you're right! with 7 bits, in mode3 seems alright.
all values works ok if i remove delay time after CS up,
with delay, same problem.
best regards! |
|
 |
|