Show Posts
Pages: 1 2 [3] 4 5 ... 13
31  Using Arduino / LEDs and Multiplexing / Re: AS1130 Ongoing Discussion 132 Individually controllable, PWM LED driver on: January 04, 2013, 03:07:19 pm
The driver I am referring to is your I2C driver.  smiley-wink

Hope all becomes clear now... smiley-mr-green
32  Using Arduino / LEDs and Multiplexing / Re: AS1130 Ongoing Discussion 132 Individually controllable, PWM LED driver on: January 04, 2013, 03:06:07 pm
AHHHH
33  Using Arduino / LEDs and Multiplexing / Re: AS1130 Ongoing Discussion 132 Individually controllable, PWM LED driver on: January 04, 2013, 02:01:29 pm
Of interest to everybody.

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.  smiley-eek-blue

So binarygod mate...you can forget the frequency of the I2C clock.... smiley-razz
34  Using Arduino / LEDs and Multiplexing / Re: AS1130 Ongoing Discussion 132 Individually controllable, PWM LED driver on: January 04, 2013, 01:45:46 pm
Sorry you don't understand. I forget sometimes you are not a native English speaker

Quote
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.

Quote
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.

Quote
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.


Quote
already used google translator but he doesn't understand it neither
smiley-mr-green smiley-mr-green


A schematic is useful if it shows YOUR hardware.

Photographs of your hardware are more useful. smiley-wink
35  Using Arduino / LEDs and Multiplexing / Re: AS1130 Ongoing Discussion 132 Individually controllable, PWM LED driver on: January 04, 2013, 11:22:22 am
Also some pics of your hardware might help.

what size pullups have you on the clk and data lines?
36  Using Arduino / LEDs and Multiplexing / Re: AS1130 Ongoing Discussion 132 Individually controllable, PWM LED driver on: January 04, 2013, 11:16:42 am
Quote
So the main problem are the timings?

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.

I suggest you compile this....

Code:
void main()                  
{
IIC_INIT();

while(1)
 {
   IIC_start();
   IIC_write(0x60);
   IIC_write(0xfd);
   IIC_write(0xc0);
   IIC_stop();
 }
}

...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.

1) You have the wrong address (Iwould suggest trying 0x30 which is the 7 bit addr)
2) 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... smiley-eek-blue





Popcorn anyone?  smiley-mr-green

37  Using Arduino / LEDs and Multiplexing / Re: AS1130 Ongoing Discussion 132 Individually controllable, PWM LED driver on: January 04, 2013, 09:57:45 am
A couple of points.

1) who commented out the delays in the I2C driver?
2) 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.
3) you are not understanding the datasheet correctly. The master only ever sends an ACK when it is READING. In this case it is writing.
4) 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.

HTH.


38  Using Arduino / LEDs and Multiplexing / Re: AS1130 Ongoing Discussion 132 Individually controllable, PWM LED driver on: January 04, 2013, 05:35:57 am
post the code producing the trace.
39  Using Arduino / LEDs and Multiplexing / Re: AS1130 Ongoing Discussion 132 Individually controllable, PWM LED driver on: January 03, 2013, 09:17:47 am
**grabs popcorn**

:p

 smiley-twist smiley-twist smiley-twist smiley-twist
40  Using Arduino / LEDs and Multiplexing / Re: AS1130 Ongoing Discussion 132 Individually controllable, PWM LED driver on: January 02, 2013, 07:04:32 pm
Quote
What can I do to increase the clock?


I just couldn't resist this one.... smiley-twist smiley-twist



Try winding it up.
41  Using Arduino / LEDs and Multiplexing / Re: AS1130 Ongoing Discussion 132 Individually controllable, PWM LED driver on: January 02, 2013, 11:34:23 am
Quote
but I figured I'd think ahead with my forum name


Also fortunate having a (not very) colourful surname.... smiley-mr-green smiley-mr-green
42  Using Arduino / LEDs and Multiplexing / Re: AS1130 Ongoing Discussion 132 Individually controllable, PWM LED driver on: January 02, 2013, 04:57:46 am
Yep..that's the one... smiley-cool

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 ( smiley-mr-green) but I think we have quite a few things in common...
43  Using Arduino / LEDs and Multiplexing / Re: AS1130 Ongoing Discussion 132 Individually controllable, PWM LED driver on: January 02, 2013, 04:11:06 am
Code:
#include normally.h

#define last_year 2012

int this_year;

void main()
{
   this_year = last_year++
}

*** Error *** Error *** Error *** Error *** Error [#include ?????? don't be daft]
*** Error *** Error *** Error *** Error *** Error [you can't bung 2012 into an int]
*** Error *** Error *** Error *** Error *** Error [underscores not allowed]
*** Error *** Error *** Error *** Error *** Error [#define not recognised]

*** Error *** Error *** Error *** Error *** Error
*** Error *** Error *** Error *** Error *** Error

*** Error *** Error *** Error *** Error *** Error [compiler will self-destruct in 1 minute]


 smiley-mr-green
I know what you mean m8...I tend to be unimpressed by all the 'holiday' rubbish as well....
44  Using Arduino / LEDs and Multiplexing / Re: AS1130 Ongoing Discussion 132 Individually controllable, PWM LED driver on: January 02, 2013, 03:53:42 am
Happy New Year Rob.  smiley-mr-green
45  Using Arduino / LEDs and Multiplexing / Re: AS1130 Ongoing Discussion 132 Individually controllable, PWM LED driver on: January 02, 2013, 02:49:57 am
Hi funky m8!

Happy New Year and all that.  smiley-mr-green

It'll be great to see what you produce when you finally get back to Uni and have some time on your hands.... smiley-mr-green smiley-mr-green smiley-mr-green smiley-mr-green

...ain't it just the truth...

Can't wait to see the outcome of the reflow attempt...I might have a go with the 'toaster' method myself although I can pretty well hand solder any chip with legs, there are some chips that are only available in TFN packages and that's where the reflow would come in handy.

If I ever win the lottery, I'll get a proper station and pick and place machine... smiley-mr-green

Keep me informed, especially software wise.
Pages: 1 2 [3] 4 5 ... 13