Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
I find it a lot more difficult and time consuming to use an existing part and modify it to work for you, than it is to make your own from scratch.
Time spent figuring out the way someone else's brain worked tends to be longer than the time it would have taken you to use your own brain (which...
Gabi, if you wanted to learn you would have found the solution by now. I found several examples of matrix LED projects by googling it.
You want someone to do your project obviously, and I personally don't want to do that for free. ;) I value my own time a little more than that.
If you don't know how it works (or figure it out) you'll never really make the right LEDs light up. Random attempts and guessing will just make you waste more time.
Look at the pictures/diagrams that someone already posted. Draw it on a piece of paper, and draw which leds you want lit up. Then...
Vinod,
I already wrote this in another topic, about the same thing - using IF statements to decode a character to 5x8 matrix is very costly in program memory and execution time. An 'if' statement is translated into several processor operations (load a literal, subtract it from the 'test number'...
Vinod, your code looks woefully inefficient using entirely too much memory resources of the PIC. :)
You might want to try and optimize the code by thinking "how can I do this with 5 lines of code instead of 50" :D
Have you tried making the simplest 'led on-off' program with 2-3 second delay, and time it with a stopwatch.
If the clock is really that much out of whack, you should see a significant difference.
That's the first row, actually, and that usually means you didn't go through the configuration sequence of the LCD correctly.
Ensure that you follow the sequence as described in the datasheet and make sure you are using reasonable delays between instructions.
Hey, if you need to figure out how to write data to a register, you seriously should consider a different profession/hobby such as gardening or something :D
Every variable (Dim xxxx as Byte) is stored in one or more general purpose registers.
One thing you could do for sure is optimize the code.
For example, the 'mask' function has a variable execution time and uses a lot of instructions to return a value.
In order to test if num is 9, it needs to go trough the whole process of checking whether it's 0, 1, 2, 3,....8 and then...
Tahmid,
Wouldn't it be better to have the highest timebase you can possibly make (500ms instead of 100ms) so that your MCU spends less time processing interrupts?
For example: in order to count one second, 10 interrupts need to occur with a 100ms time base, and only 2 if you have the 500ms...
You've got it all wrong.
You're not supposed to call the interrupt routine.
It occurs on it's own when Interrupts are enabled and a timer is configured.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.