Post Created date
Can this be resolved at compile time?? "sumof()?"
I can't think of any macro to do it. My approach would be to write a simple command line PC program that had the data you need embedded within it, but then generated the C source...
Tuesday, 4 November 2008 - 17:44
char* or char *
Does it help if you think that "white space" is meaningless in C? In other words, the following are identical in meaning. char* Bert ; char * Fred ; char *Andy ;
Tuesday, 4 November 2008 - 15:15
char* or char *
char * (with without a space) means a pointer to a char. This is standard C or C++ I hope that helps. A
Tuesday, 4 November 2008 - 14:15
Hi Chandu Not exactly sure what you mean. Do you mean a PHYSICAL indication of the solenoid having moved? In this case I would use microswitches. Do you mean which solenoids you...
Friday, 31 October 2008 - 14:06
External Interrupt problem
You might want to declare "change" with a volatile attribute. FAQ #1 allegedly. :) A
Friday, 31 October 2008 - 12:11
Can someone tell me what does this mean -> PINB & (1&
"PINB" is the register via which the input of the physical Port B of the microcontroller are read. You are exactly right in that (1 << PB0) trannslates to (1 <<...
Thursday, 30 October 2008 - 17:11
Where is best to buy from in the UK
No particular recommendation, but on try typing "stk500" checking "pages from the uk" and clicking "I'm feeling lucky."
Thursday, 30 October 2008 - 16:53
why global variable not work always
@cliff... that's what "frequently" means :D
Wednesday, 29 October 2008 - 14:06
why global variable not work always
You need to declare the variable "volatile". This tells the compiler that it is liable to change "unexpectedly" and it must not optimise fetches of the variable away. Andy
Wednesday, 29 October 2008 - 14:04
AVR coffee machine
Somewhere at the start of world, you need to set up each port you are using to have a default output pattern and set up the port's data direction register to tell the chip which...
Thursday, 23 October 2008 - 13:37
Problems with large project on atmega64
As an alternative scenario, how much RAM are you using? Could it be that your stack is creeping down and getting corrupted when it meets your data area? Given that you have a...
Thursday, 16 October 2008 - 11:00
Printf question
The normal way to get the AVR to print to your monitor involves running a terminal emulation program on the PC (such as TeraTerm or Hyperterminal) and then communicating from the...
Wednesday, 8 October 2008 - 09:14