Post Created date
A Cautionary (Bit-Setting) Tale
Not that lint and the other tools aren't great and quite useful, but I think occasionally going blind looking for silly errors is good for you.  A little suffering sharpens...
Monday, 24 November 2014 - 01:16
System halting problem
i can't imagine any piece of software that transfers the CPU into a state where it can't be recovered with a hard reset. A jump to zero at location zero? 
Wednesday, 24 September 2014 - 00:08
Quote:I mean its like its calling itself? Yup, to change a LF (line feed, or new line) into a CRLF (carriage return/line feed pair). However, in the call it should be '\r' rather...
Thursday, 31 July 2014 - 15:00
.BYTE directive
Also note that with Cliff's example the +10 is hard coded - no variable in a register kind of thing. Depending on what you want, you can also do ldi xl,low(table+10) ldi xh,high...
Wednesday, 23 July 2014 - 14:53
.BYTE directive
ldi xl,low(address_of_first_byte) ldi xh,high(address_of_first_byte) Did you look up the things I mentioned? I was writing this as you posted your solution. Very good work.
Wednesday, 23 July 2014 - 07:03
.BYTE directive
Get a copy of the instruction set pdf file and look at the indirect register pairs X, Y, and Z. You can use the LDI instruction to load a pair with the base address (address of...
Wednesday, 23 July 2014 - 06:47
keypad password buffered key press
Quote:anything pressed after 4th bit should be ignored, shouldn't it?Why? He's using interrupts to read the keys. If the user punches another key, regardless of what your program...
Thursday, 17 July 2014 - 06:48
keypad password buffered key press
Depending on what you have in mind for your application, you might want to consider removing or disabling the repeating key feature of danni's code. It's nice to have it there,...
Thursday, 17 July 2014 - 05:36
keypad password buffered key press
A brief look at this says that you read 4 valid characters, wait half a second, compare what they punched in with what you expect, then show either the green LED for a second or...
Thursday, 17 July 2014 - 03:45
shifting leds
While you're doing your research (google is your friend), include "debounce" or "debouncing" as one of your topics to learn about. Pushing and releasing a button (almost always)...
Wednesday, 16 July 2014 - 19:17
Can't see it!
But how can my own C code be corrupting Y? Oh Lord, Y me? -- Job
Friday, 11 July 2014 - 17:07
Can't see it!
Quote:this GCC program seems to do whatever it pleases no matter what I tell it Don't they all!
Thursday, 10 July 2014 - 20:25