Post Created date
Create array
I assume since you declared the array of that size that you don't expect to change the size_of_CMD parameter during operation anyways. If you declare it as is, it will take up...
Thursday, 15 March 2007 - 15:09
How should I fix this power problem?
Some RC car motors can pull many amps spikes when they first start from a stopped state. They shouldn't be feed from a regulator at all. You should have an H-Bridge (assuming your...
Thursday, 15 March 2007 - 15:07
TWI questions...
The avr should support letting the slave hold the clock line low in hardware, with no SW implementation required. It's part of the I2C protocol that specifies that a slave can...
Thursday, 15 March 2007 - 05:26
TWI questions...
The address problem still causes confusion in my office cuz people don't understand that you must shift the address left by 1 bit and add 1 if reading. Even today I had a problem...
Thursday, 15 March 2007 - 05:22
Programming help (c/c++ language)
You're not likely to get much response with something like: "Here's a description of what I want. Help me." You seem to have a pretty good idea of what you want. So go do it =)...
Wednesday, 14 March 2007 - 15:52
Ponyprog serial or parallel?
If you have a serial port, then no. It's a bit slower, if I recall, but more PC's have serial ports than parallel ports, so it's whatever works for you.
Wednesday, 14 March 2007 - 05:27
a stupid error
I'm the 2nd party, but I haven't finished my compiler yet. I'll let you know, Lee =) OP's last question has been posted and answered in another thread.
Tuesday, 13 March 2007 - 15:21
compilation easy problem (beginner)
One practice that often helps catch the assignment vs. comparison errors is to get in the habit of using: if ( 23 == myVariable ) instead of using: if ( myVariable == 23 )...
Tuesday, 13 March 2007 - 15:18
compilation easy problem (beginner)
Another assignment vs comparison error: if(first_time_resultc=1) should be if ( first_time_resultc == 1 ) Assignments will always result in true and are legal statements so...
Tuesday, 13 March 2007 - 15:17
compilation easy problem (beginner)
For the "parentheses around assignment..." error, whenever you are trying to compare two values for equality, you must use ==, not =. Single = is for assignment. So all your for...
Tuesday, 13 March 2007 - 15:04
a stupid error
Are you trying to check the value of an input port, or set the value of an output port? The code above is for input. If you use it like this: if ( enable == 1 ) // do...
Monday, 12 March 2007 - 18:55
a stupid error
avr-libc doesn't accept that syntax. I think it's from a 3rd-party compiler only. You probably want something like: #define ENABLE ((PIND & _BV(2)) >> 2) Or if you only use it...
Monday, 12 March 2007 - 18:41

Pages