Post Created date
ternary operator virginity
clawson wrote: the compiler was going to have an "internal" temp result anyway In this case, the compiler may replace the temporary variable with jumps, without the use of a...
Monday, 15 July 2019 - 14:38
ternary operator virginity
MrKendo wrote: _pepe_ wrote: In your opinion, which one is the smallest and the most readable ? The 3rd one doesn't have the same functionality as the first two, ...It does,...
Monday, 15 July 2019 - 14:31
ternary operator virginity
Fianawarrior wrote:always wondered why use the ternary operator instead of a if/else.Because the ternary operator is consistent with a value, and the if/else statement is not....
Monday, 15 July 2019 - 08:32
ternary operator virginity
MrKendo wrote:I think it's more a C vs C++ thing rather than compiler versions or options.It's a version issue since different versions of the same compilers accept or refuse the...
Sunday, 14 July 2019 - 20:06
ternary operator virginity
Hi   apcountryman wrote:The ternary operator is used to select between values, not select between statements.   That's not always true. The ternary operator can be used...
Sunday, 14 July 2019 - 18:42
ATmega8 vs Atmega88
Hi,   Simonetta wrote:These boards have a good bootloader preloaded, but there is no USB interface.  You have to supply what is referred to a "FTDI interface", which is...
Sunday, 14 July 2019 - 11:40
Quiz for fun, two I/O pins and 16 levels
Hi   According to ATmega8's specifications, the I/O pin pull-up resistor's value is between 20 and 50 kΩ. It is slightly nonlinear. It varies with temperature and fabrication...
Sunday, 14 July 2019 - 10:02
ATmega8 vs Atmega88
Hi,   Simonetta wrote:There are no real advantages of the "more modern" ATmega88 over ATmega8.  Both are obsolete for new designs.   If you want mega8-class...
Saturday, 13 July 2019 - 08:07
AVR Errata - Unpublished, and other "Gotchas"
Device: ATmega32U4 Summary: Errors in datasheet 7766J (04/2016), Chapter 32 "Instruction Set Summary"   I've tested the CALL and RET instructions, and their #Clocks values...
Friday, 12 July 2019 - 14:24
Atmega32U4 cheatsheet summary
Hi,   The "Instruction Set Summary" table in the ATmega32U4's datasheet [ref. 7766J, 04/2016] appears to be wrong !   I've tested the CALL and RET instructions'...
Friday, 12 July 2019 - 13:36