[sdiy] A/D weirdness

Karl Ekdahl elektrodwarf at yahoo.se
Sat Dec 24 17:59:46 CET 2011


Jay

I'm just counting the clocks - i didn't even reflect on the high-z mode being usable for polling, is this somehow preferable?

Karl



----- Ursprungligt meddelande ----
Från: Jay Schwichtenberg <jays at aracnet.com>
Till: 'Karl Ekdahl' <elektrodwarf at yahoo.se>; synth-diy at dropmix.xs4all.nl
Kopia: 
Skickat: torsdag, 22 december 2011 22:22
Ämne: RE: [sdiy] A/D weirdness

Karl,

Are you counting clocks or polling for Dout to put out the 0 start bit
before you start reading data?

If you are polling for the first Dout 0 you should have a pull up on it.
It's in hi-z mode before data comes out.

Good luck.
Jay S.

-----Original Message-----
From: synth-diy-bounces at dropmix.xs4all.nl
[mailto:synth-diy-bounces at dropmix.xs4all.nl] On Behalf Of Karl Ekdahl
Sent: Thursday, December 22, 2011 4:32 PM
To: synth-diy at dropmix.xs4all.nl
Subject: Re: [sdiy] A/D weirdness

>Do you sample your bits a little on the edge of things?

>Could you have something else interupting your data-reading process 
>somehow, so you miss timing.

Good point, i never disabled interrupts before during this operation - sadly
this didn't do the trick. I rewrote the entire data retrieval algorithm,
doing everything exactly as described in the datasheet - it sure screwed
with other pieces of my code, but the data is still erratic.. nnnhgg very
annoying. 

Karl

_______________________________________________
Synth-diy mailing list
Synth-diy at dropmix.xs4all.nl
http://dropmix.xs4all.nl/mailman/listinfo/synth-diy



More information about the Synth-diy mailing list