Post Created date
Rotary Encoder
Oh, and to get it fired on an interrupt would you just put a call to the EncoderStateMachine(void) in the ISR for the pinchange interrupt or is there a better way to do it? Thanks
Wednesday, 23 March 2011 - 09:50
Rotary Encoder
Sparrow, Thanks for pointing that out, would it be better to just use four different ifs, one for each state? kscharf, that code looks very neat. Can you explain the following...
Wednesday, 23 March 2011 - 09:46
Rotary Encoder
Thanks theusch, I was going to look at compacting the code once id established I hadn't done anything major wrong. Ill look at your code and try to implement something similar....
Monday, 21 March 2011 - 14:27
RTC Problems
ok, so is it just a case of adding gei() and sei() like this? ////////////////// // Function to print time on LCD ////////////////// void put_time() { gei(); tmpsec = sec; //...
Friday, 25 April 2008 - 17:03
RTC Problems
If i turn of all the interrupts to get a clean copy of the sec, min and hrs variables wont i run the risk of missing a count on timer2, therefore missing a second or two?
Friday, 25 April 2008 - 16:31
RTC Problems
theres always more!! Thats exactly what i need, i guess it always helps to get into good habits.
Friday, 25 April 2008 - 16:26
RTC Problems
Ok, so it now looks like this. it seems to be working pretty well, but i'll have to leave it running for testing. #include #include #include #include "lcd.h" #define...
Friday, 25 April 2008 - 15:22
RTC Problems
Ok thanks. I've got it working now and it looks like its a lot more accurate. i'll implement the copy variables. Thanks alot for your help! this learning curves a steep one!!!!
Friday, 25 April 2008 - 15:12
RTC Problems
So your saying that i need to have another int called something like update, when the ISR that is currently handling the LCD stuff is called it sets update to 1. the main() then...
Friday, 25 April 2008 - 14:12
Multiplexing
Ok, point taken but i dont really understand why. Can you explain? Also this seems to work, but everyhting is inverted. As it stands the outputs are creating a path to ground when...
Thursday, 13 March 2008 - 18:44
Multiplexing
Ok, so i've finally got what i think is a program that'll work. its probably not efficient, but i am a newbie!!! Unfortunately i haven't got the final boards so all i can do is...
Thursday, 13 March 2008 - 17:31
Multiplexing
Its a basic circuit, i've got 6 control lines that are connected to the Anode of each nixie through a transistor. This effectively will turn on each tube in turn. 4 data lines...
Thursday, 13 March 2008 - 12:54

Pages