How to use Interrupt in PIC16F877A in C..??

Status
Not open for further replies.
Too many LED's to update... You need to get higher than 15 fps... You need to drive them differently to get a smooth output.
 
Too many LED's to update... You need to get higher than 15 fps... You need to drive them differently to get a smooth output.


it is 8x32 only i have connected the 2 led together in row...
 
I know how you did it....

There are 32 writes to the display.. each LED is on for @4mS

4m * 32 = 128... 128mS frame rate... Less than 8fps.

To make the flicker go away, you need to speed it up... BUT!!! as I said AGES ago... The LED's will get dimmer.

You need to get the frame rate up past 15fps

If you change your timer so the interrupt happens every 2ms, then you double the fps to 16.. ( but at a cost!! )
 
Trial and error of course... Just adjust the timer pre-load and try it..
 
Lol your leds may even look brighter if you speed the frame rate up. And with faster rate you can feed more mA to the leds.
 
Yes!!! You can. If you use an 8x32 matrix at the top driven by port B and an 8x16 at the bottom driven by port D. It will be much better.
 
I would also like to point out something to those of you that use MPLAB..

I have noticed an error whilst it compiles.... When you swap out C file Ie.. if you create a C file called font.c... THEN edit the file and rename to font1.c then swap the files out.. The compiler sometimes doesn't pick this up.

This can cause undue stress when debugging, as the old "font.c" may still be referenced in the debugging file...

I have just pulled my hair out on this one...
 
If I'm having problems... I create a new project then copy the code over... Then delete the old project...
 
Is it just me that thinks that this is 28 pages of thread without any progress?

Mike.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…