And I can't remember that I said that it won't include header files.
Even I remember that, back early in the other thread that we thought had been left behind.
Honestly binarygod I'd put money on there being no C compiler in this universe that doesn't handle #define, #include and _, it just can't happen.
Show us a 10 line program with an underscore and the resultant error message and we may believe you, until then as far as I can see you're just taking the piss.
Thanks, I totally forgot and wondered what all the noise was a couple of nights ago, must have been fireworks. So apart from being last_year +1, what year is it anyway?
I saw that lot in the notification email and thought it was for real from binaygod's compiler
Anyway now I see your problem, no ; after the this_year assignment.
I can't wait for the Xmas/NY BS to be over with so I can buy a satellite dish, but then when I worked I loved the time off of course, I'm just in grumpy old(ish) man mode.
I just realised you're from Southport, is that the Southport sort of half way up on the west coast? If so my best friend's wife's brother lives there.
I'm not a native though...born in Macclesfield, dragged up in Manchester, 8 years as Army Radio & Electronics Tech moving around a bit, 20+ years near Lands End, Cornwall, then back to Germany, then Hastings, now Southport and thinking of moving back to Cornwall now I've retired.
Not done the whole deal like you old chap...too f%@!ng cold in N. Europe but I've done a bit of nomadding myself and I'm more salt and pepper than gray ( ) but I think we have quite a few things in common...
YESSSS!! A real question. (at least from my point of view)
Binary, I can research a little bit tonight when I'm done with my classes if they end as planned. For me, I don't mean to hate, I just don't like babysitting another persons project. I've planned my life on that notion. I just can't stand it, its not how I roll.
But this is also a chance for me to learn something too.
I'll see if I can find something when I get a chance
you need to ignore the SYNC line at this point. It makes no sense to read it until you have followed the setup procedure for the chip.
you are not understanding the datasheet correctly. The master only ever sends an ACK when it is READING. In this case it is writing.
I started to analyse your traces until I noticed someone had tampered with the driver. The clock seems to be doing the right thing but the SDA appears to be random (which is no wonder if someone has f*cked up the timing)
Anyway...I'm not inviting a barrage of unrelated questions but attached is a trace from a LA which shows EXACTLY what the trace should look like with NO ack from the slave.
and also the first write to a different address to show you what the ACK pulse timing should look like.
The main problem (at the moment) is that you had a perfectly good driver that works for everyone with your compiler...and you changed it so that it doesn't work any more.
You need to post what happens when you haven't tampered with the driver.
You also need to ignore the CLKSYNC register..it has nothing to do with this.
...which will compile on your compiler and run it (forever) until you get an ACK back from the AS1130. If you don't it can only be 1 of 2 things.
You have the wrong address (Iwould suggest trying 0x30 which is the 7 bit addr)
Something is wrong with your hardware.
Every write should get an ack.
NEVER EVER think you can solve a problem by changing ANYTHING that comes with a compiler (unless you know EXACTLY what you are doing)
The delays in your driver are there for a reason...
Sorry you don't understand. I forget sometimes you are not a native English speaker
The main problem (at the moment) is that you had a perfectly good driver that works for everyone with your compiler...and you changed it so that it doesn't work any more.
The problem is: You changed the driver. Now it doesn't work.
You need to post what happens when you haven't tampered with the driver.
Undo what you changed in the driver and then post the results of running the code. 'Scope pictures or compiler errors.
NEVER EVER think you can solve a problem by changing ANYTHING that comes with a compiler (unless you know EXACTLY what you are doing)
The delays in your driver are there for a reason... smiley-eek-blue
Don't change driver source code. Professional drivers that come with compilers are 99% sure to work as they are.
already used google translator but he doesn't understand it neither
I've just reduced the I2C clock to 10KHz and all four AS1130s in my setup perform EXACTLY the same as at 1MHz.
The ONLY difference is the amount of time it takes to upload data. Time between interrupt and restart on screen (data upload time) is 3.76 seconds as opposed to 217mS at 1 MHz.
So binarygod mate...you can forget the frequency of the I2C clock....