Type in the full discussion title or a part of it.
Discussion Title Created date
macro in AVR GCC?
how can be written the following as a macro command? if ( CHECKBIT(shiftreg, 7) ) { SETBIT (data_port, data_bit); }else{ CLEARBIT (data_port, data_bit...
Saturday, 7 February 2009 - 08:09
how to store a variable address in programm memory?
Hi, I want to make an index of variables in programm memory. but I dont know how to store the variable address. I use the following but it doesnt work. How can I do it?...
Wednesday, 7 January 2009 - 15:27
difficulty with union-struct
I have some difficulty to understand how to use struct or union. I read K&R about structures and unions, I also look in internet but I cant undestand how can combine the...
Tuesday, 12 August 2008 - 13:14
how to store a variable address in program memory?
Hi guys, I am making one routine for restoredata in a list of variables. The question is how can I store a variable addresses in program memory? I used the following way but it...
Sunday, 10 August 2008 - 12:50
BCD to Integer?
how can I convert a BCD number that produced by ltoa to a binary number?
Thursday, 7 August 2008 - 19:32
enum question
enum test_enum { const1, const2, const3, const4 }; how can I calculate the size of test_enum? I was try like this but it is not work: uint8_t var1 = sizeof (test_enum...
Wednesday, 6 August 2008 - 13:19
24bit integer?
uint8_t, uint16_t, uint32_t ??? uint24_t ??? ?Its possible to have 24bit integer?
Monday, 4 August 2008 - 13:10
TCNT1 = 0 with inline assembly
I want to set the registers of TCNT1 by inline assembler but I have some difficulties using the asm command in c. In avr asm can be done like this: ldi r16, 0 out...
Sunday, 3 August 2008 - 08:56
Preprocessor directives
1) Where can I find a list of all AVR GCC compiler preprocessor directives? 2) What preprocessor directive can verify that one file is already included? 3) What preprocessor...
Thursday, 31 July 2008 - 20:46
TWI Reset when communication no response
I made a routine for communication Master(mega8535) \ Slave(mega8), where normally data are tharnsfered between Master and Slave. The problem is when the communication is stack...
Wednesday, 30 July 2008 - 22:48
Passing long type to a array
there is the follow variable long LongValue = 0x12345678; how can I pass it to the array ArrayValue? Quote:ArrayValue[0] = 0x78 ArrayValue[1] = 0x56 ArrayValue[2] = 0x34...
Wednesday, 30 July 2008 - 19:15
TWI PullUp resistor?
How much KOhms must be the pull up of the SCL, SDA?
Monday, 28 July 2008 - 10:33

Pages