Board Lifting Mechanism IMHO it would be a better scheme to have a regular timer interrupt on which you sample the states of the input switches.
This would allow you to debounce the switches there,...
Friday, 7 November 2008 - 10:09
watchdog operation I include the following header to make the compiler happy.
#include
A
Thursday, 6 November 2008 - 16:54
Help with RPM Calculation Hi James
Firstly, I agree with Stu that you are lining up trouble for yourself by adopting a scheme which involves enabling interrupts within interrupts.
That said, to answer your...
Thursday, 6 November 2008 - 16:49
UART1 problem If you can capture a trace of the signal that would be good.
I can see nothing wrong with your code. It looks very similar to code I have for an AtMega32. I did think I had found...
Wednesday, 5 November 2008 - 15:20
UART1 problem Hi Marcel
Do you have an oscilloscope on which you could capture a trace of the waveform on the RS 232 line and let us have a look?
And, I assume, your clock frequency is 16MHz?
A
Wednesday, 5 November 2008 - 14:48
UART1 problem Oops - sorry chaps. :oops:
My fingers aren't working properly today. I had translated:
AA to 10101010
and
D6 to 11001100
I shall now fall on my Swiss Army penknife. :)
A
Wednesday, 5 November 2008 - 14:18
UART1 problem Don't know why I'm afraid, but I do not believe in coincidences.
A
Wednesday, 5 November 2008 - 14:08
Can this be resolved at compile time?? "sumof()?" Like this... (Couldn't resist)
unsigned char AnArray[] =
{
0x01 , 0x02 , 0x03 , 0x04
} ;
unsigned char AnotherArray[] =
{
0x11 , 0x22 , 0x33 , 0x44
} ;
void AppendChecksum...
Wednesday, 5 November 2008 - 14:05
Can this be resolved at compile time?? "sumof()?" Hi Andrew
If you are unhappy to mess around with your existing program, you can take the ouput of that program and include it in the source of a simple new program.
You then need...
Wednesday, 5 November 2008 - 13:45
UART1 problem Sounds to me (if you think of the numbers in hex - 0xAA vs. 0xD6) that your baud rate is out by a factor of two for some reason.
Just a guess.
A
Wednesday, 5 November 2008 - 13:33
Board Lifting Mechanism I would start by writing some code that "took control" of your board.
By that I mean very simple code, at the level of flashing an LED regularly or similar.
Next, (assuming you...
#include Is what I use. A
IMHO it would be a better scheme to have a regular timer interrupt on which you sample the states of the input switches. This would allow you to debounce the switches there,...
I include the following header to make the compiler happy. #include A
Hi James Firstly, I agree with Stu that you are lining up trouble for yourself by adopting a scheme which involves enabling interrupts within interrupts. That said, to answer your...
If you can capture a trace of the signal that would be good. I can see nothing wrong with your code. It looks very similar to code I have for an AtMega32. I did think I had found...
Hi Marcel Do you have an oscilloscope on which you could capture a trace of the waveform on the RS 232 line and let us have a look? And, I assume, your clock frequency is 16MHz? A
Oops - sorry chaps. :oops: My fingers aren't working properly today. I had translated: AA to 10101010 and D6 to 11001100 I shall now fall on my Swiss Army penknife. :) A
Don't know why I'm afraid, but I do not believe in coincidences. A
Like this... (Couldn't resist) unsigned char AnArray[] = { 0x01 , 0x02 , 0x03 , 0x04 } ; unsigned char AnotherArray[] = { 0x11 , 0x22 , 0x33 , 0x44 } ; void AppendChecksum...
Hi Andrew If you are unhappy to mess around with your existing program, you can take the ouput of that program and include it in the source of a simple new program. You then need...
Sounds to me (if you think of the numbers in hex - 0xAA vs. 0xD6) that your baud rate is out by a factor of two for some reason. Just a guess. A
I would start by writing some code that "took control" of your board. By that I mean very simple code, at the level of flashing an LED regularly or similar. Next, (assuming you...
Pages