AVR BUG!
Posted: Sat Dec 07, 2013 2:25 pm
AVR 5.5,“NOT”No effect.Can the Flowcode simulation.Burn wrote chip is no reaction.Inside the proteus also no response!Help me.Thank you very much!
Old forums - please visit https://www.flowcode.co.uk/forums
https://www.flowcode.co.uk/mmforums/
Code: Select all
//Calculation:
// b = NOT b
FCV_B = ~FCV_B;As far as I know ~ should flip all the bits in the value so 0x00 would become 0xFF which should work. I may however be wrong on this if its not working on the hardware.For integral types, ! returns true if the operand is zero, and false otherwise.
So !b here just means b == 0.