Go Down

Topic: AS1130 Ongoing Discussion 132 Individually controllable, PWM LED driver (Read 15 times) previous topic - next topic

Hexadec

I can only assume that there are only the registers that work directly with the LEDs in the FSM.
It also says in the datasheet that to reset ALL the control registers you have to pull RSTN to logic low.

A few points...
I've changed a lot of my code.
I only know what I've learned by experimentation with the chips.
The code is not optimised.


So far it all works great.
Sponge.
I'm allowed to have it 'cos it's not sharp.

Hexadec

Your logic is a bit flawed...

How do you come to the conclusion that :

Quote
That means if the Current Source Register is once set, it can only be reset by making a reset by pulling RSTN to low? And it can't be reset by the 'init bit'?


especially as I've posted numerous examples of changing the CS reg value while the chips are running...  :smiley-eek-blue:

I would strip down the code to it's simplest form and get 1 picture showing on your matrix to test the hardware etc. before going any further.
Sponge.
I'm allowed to have it 'cos it's not sharp.

Hexadec

Tip:

You can use the AS1130_status_all() function to read out the control registers at any point.   ;)

Sponge.
I'm allowed to have it 'cos it's not sharp.

Hexadec

Quote
of course I already have a code for one matrix,


That's not what you said in your previous statements.  :smiley-roll-blue:

Quote
mounted yeah, going no. the code isn't working.


I also don't understand what it is you are asking if my answer above is not what you want.

If you do a hard reset then the MCU sends the setup data to the AS1130 from the start...including the CS reg.
If you only do a soft reset with the shdn then the CS reg doesn't change as far as I know from experimentation.

The trouble is (in my experience)...you make statements that are wrong...argue about the answer and then go on to another subject and repeat the cycle.


Either your code works or it doesn't...that is still unclear.
Does your hardware work?
What is it that doesn't work?

Post your hardware setup.
Post your code to run it.
Indicate what isn't working.

Then we might get somewhere... ;)
Sponge.
I'm allowed to have it 'cos it's not sharp.

Hexadec

Your original question:

Quote
If you do a software reset and set the shdn-bit to 0, are all controll registers resetted then (set to default
values) ? because thats not written in the datasheet.


What you say now:

Quote
And i'm not talking anymore about the shdn-bit but about the init-bit.


You've already said that your code isn't working so...

Quote
And I have a second code for two matrix, where I just wanna understand the logic


...makes no sense. 2 chips running is virtually the same as 1 chip running...they both get the same code.
Also, if you can't get 1 chip to work, what makes you think that understanding 2 chips working will make it better?

Quote
the CS is 0x00, so the leds won't light!

This statement is true...you have to set it between 1 and 255 to make the LEDs light up.

Quote
Both codes are yours which you posted here.

My code runs perfectly on my hardware as shown by various videos I've posted.
If you have EXACTLY the same hardware and use my code it will work perfectly.

If you don't...then it's no wonder it won't work.
If you modified the code to work on your hardware, then it is YOUR code that doen't work.

Quote
My hardware is working for sure, I measured each pass.


What did you measure and what do you mean by a 'pass'?



No wonder I am confused...
Sponge.
I'm allowed to have it 'cos it's not sharp.

Go Up