Thank alot guys, I was hardly expecting such promt replys.
I will try your suggestions out now.
Thank alot guys, I was hardly expecting such promt replys.
I will try your suggestions out now.
I got it working using your method Jerson by setting "for timedelay = 0 to 100", works great.
I was wondering if someone could recomend some books or any other good sources of information for writing code?
Cheers,
Raf
Hi Spitfire,
I have bought several books, and without this forum, I would be using them as table levelers, I do not have one I would recommend. Keep reading this forum and the PBP manual, read the archives . . every post, thats waaay better than any book I've seen. Bruce is writing one thoughand when it is published, I will buy one.
JS
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Does anyone know where i can get one of those 3 digit seven segment displays that are designed to be multiplexed. aka has 12 pins instead of well loads more.
quick one.
in the 7 seg display program what does ~dcd mean in the line
digits=~dcd i
thanks
~ = NOT
and
DCD = it changes a bit number (0-15) into binary and set that bit to a Logic 1
Basicly it finds out what value digits is (0 to 3, 0 being the first display on the right and so on) and converts that into binary if 0 then to 00, if 1 then to 01, if 2 - 10, if 3 - 11 and instead of applying a logic 1 like DCD is supposed to do it does the opposite because there is ~ infront of it which make it 0
Its basicly applying a Logic 0 to pin RA0 on the PIC,completing the subroutine and then doing the same for pin RA1, RA2 and RA3. These are the pins that turn on and off each digit.
Logic 0 normally means 0 or close to 0 Volts but in this case transisors are being used to supply the current to the display. A transistor is basicly an inverting switch so if you input logic 1 (+5V) you get 0 at the output and the opposite if you apply 0 Volts to the input.
I got a little carried away there and have gone into more detail and answering more than you asked but it might help you understand what the code is doing a bit better. Or atleast I hope so.
Many thanks for your reply spitefire just what i needed. I made a boxing round timer a while back, now im trying to improve it by displaying the time on a 7 seg display. its proving to be tricker than i thought. As im still struggling to get my head round this one as im a newbie to pics your extra info helped alot.
Bookmarks