MPU output drives base of NPN which pulls down the base of the PNP with it's emitter connected to 12 volts. Right?
What a horrible piece of code and it uses Timer0. If you do a search Mike (the OP) posted a very good method to adjust for crystal inaccuracies in software.
Mike.
What on earth is this all about. Everyone is free to program in the language of his or her choice.I don't see it. Mind pointing that out? What's the matter? Don't like assembler?
What on earth is this all about. Everyone is free to program in the language of his or her choice.
SV,
I am a C guy. I can read and write a little ASM but it help if there are lots of good comments and I have the cheat sheet nearby. IMHO we invented compilers for a very good reason... but as I said to each his own.
But for the above reason I am not in any position to get in the middle of a debate about asm code.
EDIT: I know I sort of stuck my big nose in this one.
I don't see it. Mind pointing that out? What's the matter? Don't like assembler?
Mike (the OP) already pointed out the post I had in mind, see above.
I did not realise that you had written the code and I called it horrible because it is not even source code, it is a disassembly listing. This makes it very difficult to understand or use and practically impossible to alter. It also uses timer 0 which is a very bad timer to use for any sort of RTC. It writes values to the timer0 counter which always zeroes the prescaller. This combined with the variable latency of the interrupt will cause timing errors.
As for not liking assembler, I wrote my first assembler program around 1980 and have been writing in it every since.
Mike.
All the clocks I have seen usually have an adjustable capacitor to compensate for crystal discrepancies or stray capacitance where the clock will run ever so slightly fast or slow. It is usually very fine and may take a week to show up. I put a programmable adjustment in it that will do the same thing as a capacitor. It is a very fine adjustment that uses the timer and two delay loops that inter-act with each other. He told me this program also had it and I asked him to point it out please because I didn't see it. Then he bashed my code. Well I can't figure that out either except that it is in assembler so I'm just trying to figure out why. I thought since the OP was still building his clock he might get some ideas from it.
Space Varmint,
Please get your facts straight. I am the Original Poster (OP) and I didn't make any comments about your example program, good or bad.
I also use a "software trimmer" of sorts in some of my Clock projects but did not include it in this novelty single-chip design.
Thank you for pointing out the feature and for the program example.
Mike
The wording in your post suggests that I bashed your code. Basically you say "this guy" came up with a nice clock and then you go on to say "he" bashed your code. Without specifying that "he" was Pommie you leave the reader thinking that "this guy" (me) and "he" are the same guy and I resent the implication. Your subsequent posts are similarly misleading. That is, you're not specifying exactly who you're talking about.If you do a search Mike (the OP) posted a very good method to adjust for crystal inaccuracies in software.
Nice circuit, i'm going to use this as my grad project. Can you list the parts that you used so that i can start ordering them asap?
I combined Digital clock and temp display into one unit. They work great. Both projects are from this site. Take a look at the picture and read 1st post of this project, you should be able to figure out the parts. Good luck
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?