Search found 56 matches

by castortiu
Fri Jan 19, 2018 6:07 pm
Forum: General discussion
Topic: [SOLVED] Enable interrupts from inside a timer interrupt
Replies: 22
Views: 340

Re: [SOLVED] Enable interrupts from inside a timer interrupt

Yes, most of these matrix are based on shift register. And have different scan lines. Most usual is 1/16. Means it has 4 lines A,B,,C,D to control the row 1-16- & 17-32, so if the address is 0b0001 then data will be sent to row 1 AND 17, however has two data lines per color R1, R2, G1, G2, B1, B2 so...
by castortiu
Fri Jan 19, 2018 6:09 am
Forum: General discussion
Topic: [SOLVED] Enable interrupts from inside a timer interrupt
Replies: 22
Views: 340

Re: [SOLVED] Enable interrupts from inside a timer interrupt

Synchronizing the OE with the latching works like a dream and there is no artifact problem at any brightness level and I can go as low as 300Khz for the PWM without any problem. At this point I can't be happier and don't think I'll make any more changes on the display brightness. Steve wrote, "Well,...
by castortiu
Thu Jan 18, 2018 8:08 am
Forum: General discussion
Topic: [SOLVED] Enable interrupts from inside a timer interrupt
Replies: 22
Views: 340

Re: [SOLVED] Enable interrupts from inside a timer interrupt

On further testing I confirmed what I was afraid, "unsynchronized" PWM on OE brings undesirable artifacts to the display, I bumped the PWM frequency from 400Mhz to 1.2Mhz and is barely noticeable however the artifacts are still there as you can see in the image below with and without PWM. I would be...
by castortiu
Thu Jan 18, 2018 6:54 am
Forum: General discussion
Topic: [SOLVED] Enable interrupts from inside a timer interrupt
Replies: 22
Views: 340

Re: [SOLVED] Enable interrupts from inside a timer interrupt

I uploaded a video to youtube to show how smooth is now the steps in control of the brightness with OE and PWM, the phone I have seems to be really good a low light so in the video can't be appreciated but there is a huge difference between brightness (0) and (15). After playing the video several ti...
by castortiu
Thu Jan 18, 2018 6:34 am
Forum: General discussion
Topic: [SOLVED] Enable interrupts from inside a timer interrupt
Replies: 22
Views: 340

Re: [SOLVED] Enable interrupts from inside a timer interrupt

Handling the OE with PWM works great, as long I keep the PWM above 400Khz it doesn't produce any artifact for lower tones since even bit 0 which is the shortest will have up to 8 pulses and I don't need to synchronize with the latching, the reality in my testing I could go down to 200Khz before I st...
by castortiu
Wed Jan 17, 2018 7:15 pm
Forum: Projects
Topic: RGB Matrix animated clock
Replies: 5
Views: 121

Re: RGB Matrix animated clock

Thank you Steve, I could not have it done without your help on the DMA Slave SPI.
by castortiu
Wed Jan 17, 2018 7:11 pm
Forum: General discussion
Topic: [SOLVED] Enable interrupts from inside a timer interrupt
Replies: 22
Views: 340

Re: [SOLVED] Enable interrupts from inside a timer interrupt

I'm not sure when I talked about 200Khz?, only thing I mentioned was that I want to keep the refresh rate above 200Hz. Still didn't get any hint how to change the PWM frequency. Do you know how? Current approach with two timers works fine, and blue pill only take care of rendering so the current app...
by castortiu
Wed Jan 17, 2018 5:17 pm
Forum: General discussion
Topic: [SOLVED] Enable interrupts from inside a timer interrupt
Replies: 22
Views: 340

Re: [SOLVED] Enable interrupts from inside a timer interrupt

I rerouted some pins so OE ends up on a PWM pin, I did a basic test and PWM runs by default at 1Khz which is no even close enough what I need, the matrix produce a huge flickering artifact barely it can be distinguish the content of the animation, I need to run the PWM at least 1000 times faster. In...
by castortiu
Wed Jan 17, 2018 7:11 am
Forum: Projects
Topic: RGB Matrix animated clock
Replies: 5
Views: 121

Re: RGB Matrix animated clock

Thanks!!, Well, I bet the animations took a while to be created by the pinball content designers, however I recorded and "borrowed" some segments, tweaked and create transparency mask for them, pinball animations are monochromatic and limited in the name of tones and frames per second, here I'm refr...
by castortiu
Wed Jan 17, 2018 5:57 am
Forum: General discussion
Topic: [SOLVED] Enable interrupts from inside a timer interrupt
Replies: 22
Views: 340

Re: [SOLVED] Enable interrupts from inside a timer interrupt

I uploaded a video to show the current progress of the brightness control, here I set the brightness to zero and the 700ns ISR lag make odd numbers slightly "brighter" when brightness is zero, isn't noticeable at all however I'll try to use PWM to control OE RGB animated matrix http://www.stm32duino...