Re: STA013 problem



On Sat, 25 Jun 2005 16:13:45 +0100, in sci.electronics.design Pooh
Bear <rabbitsfriendsandrelations@xxxxxxxxxxx> wrote:

>martin griffith wrote:
>
>> On Sat, 25 Jun 2005 14:14:20 +0100, in sci.electronics.design Pooh
>> Bear <rabbitsfriendsandrelations@xxxxxxxxxxx> wrote:
>>
>> >eeh wrote:
>> >
>> >> And the data_req is always low.
>> >
>> ugh I've never managed to get my 8051 I2C code to work, mainly because
>> I can't figure out handshaking,
>
>You mean the attn and ack and stuff ?
>
yep

>> despite falling asleep over the I2C
>> spec many many times.Only having a dual beam scope is prolly a
>> disadvantage as well.
>
>I've never used a scope to code I2C ! It's seems so simple I don't see
>where you can go wrong.
>
I'm not really a programmer, just drifted into it when the my mate
"The Programmer" got a high paid full time job, and twins to feed

>You *can* drive it too fast maybe ? My code was actually developed from
>some that a guy wrote for us that 'kinda worked'. I went through it with a
>fine toothcomb and weeded out the 'indeterminate' or unapproved pin
>conditions and it's been rock solid and seen service in several products
>since.
>
>> I just use SPI now, easy peezy, I can scope it and see whats
>> happening.
>
>Well, to be honest once again I wouldn't expect to need a scope. Didn't
>need one for a proprietary serial DSP i/f a while back either. It just
>worked ! Wasn't entirely unlike I2C but 32 bits data wide ( or long I
>should say ! ).
Never used a DSP, still a 5534 guy at heart really
>
>Were you trying to code your I2C in assembler or something ? I used pl/m51.
Plain old C with the 8051 Raisonance complier and a spaghetti-ware
detector
>
>Philips used to offer their I2C library in asm51 for free IIRC. In theory
>it's possible I may have it on disk.
>
No prob's, I'm working with TI's PGA2310, (SPI) and HC595 s/regs, and
I haven't got any I2C ics anyway.

Maybe I'll dig out the offending code one day and have another go




martin
.



Relevant Pages

  • Re: Using a Scope on the LAN
    ... Martin Griffith wrote: ... Often I just look at the scope and it's a case of "Works!" ... my module specs often contain real-life scope plots along the lines of "This is the waveform you should see at the secondary of TR12". ... Phil HObbs ...
    (sci.electronics.design)
  • Re: Aggregation vs composition
    ... which is indeed something a programmer has to be aware of. ... >> with a dead reference. ... > That is where the true lifetime responsibility lies... ... and there is no risk of B going out of scope before C wants this to happen. ...
    (comp.object)
  • Re: I thought this was the one that worked?
    ... With static scoping, a variable always refers to its nearest ... dynamic scope forces the programmer to anticipate ... the term "closure" in computer science is derived from the ...
    (comp.lang.ruby)
  • Re: Teach myself C++.
    ...  He's better served writing it in C to ... C++ and narrowing it's scope. ... has an extremely large scope compared to fringe cases. ... assuming, of course, that the programmer knows what's going on. ...
    (sci.crypt)
  • Re: reading strings from terminal and writing them to a file
    ... a partial quote referring to lexical scope: ... Static scope is standard in modern functional ... since its binding structure can be understood in isolation. ... dynamic scope forces the programmer to anticipate all ...
    (comp.lang.lisp)