Re: STA013 problem
- From: martin griffith <martingriffith@xxxxxxxxxxxxx>
- Date: Sat, 25 Jun 2005 20:07:27 +0200
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
.
- References:
- STA013 problem
- From: eeh
- Re: STA013 problem
- From: eeh
- Re: STA013 problem
- From: Pooh Bear
- Re: STA013 problem
- From: martin griffith
- Re: STA013 problem
- From: Pooh Bear
- STA013 problem
- Prev by Date: Suggestions for analog switch to select feedback resistor in TIA
- Next by Date: Re: need small PAL with SR latch
- Previous by thread: Re: STA013 problem
- Next by thread: Re: STA013 problem
- Index(es):
Relevant Pages
|