Type in the full discussion title or a part of it.
Discussion Title Created date
ASSM implementation of _delay_ms() using TIMER0 overflow
This more accurately is a reasonable facsimile of _delay_ms(), most notably limited range (1 to 255 ms), but suitable for my purposes. The intent is to experiment...
Thu. Dec 14, 2017 - 03:55 AM
Delays wasting MPU cycles vs Timers
In an effort to continue on with what I believe to be an energy conservation paradigm for battery operated configurations, I'm turning off any clocks that won't be used by...
Wed. Dec 13, 2017 - 01:07 AM
Is this the tightest method for 328P in assembler
Please note that this algorithm is designed to accommodate this hardware configuration, but by no means am I advocating it is the most practical method, especially considering all...
Sun. Dec 10, 2017 - 02:25 AM
8 bit unsigned -> Packed BCD in "Z" R30:31 conversion
Code is pretty self explanatory, but after contemplating responses from another thread, I've decided this routine might be the most valuable to me. There will be another very...
Fri. Mar 31, 2017 - 02:23 AM
Practical use of conversion routines BCD ASCII BINARY etc
I took a few minutes to hammer out this binary to packed BCD routine using successive subtraction. BIN_8_PBCD:   ldi  R19, 100   rcall  Count   mov...
Wed. Mar 29, 2017 - 11:37 AM
[CODE][ASM]Ubiquitous blink program with a twist Atmega328P
In reality the blinking part is just merely a means by which to indicate the application is working.  The focus though is to bring these elements together;   SLEEP in...
Mon. Mar 27, 2017 - 01:24 PM
Is it probable more than one flag could be set in MCUSR
While developing my TWI driver, chapter 11 of the datasheet gave rise to additional functionality my applications could have through MCUSR while investigating the potential of WDT...
Tue. Mar 21, 2017 - 07:42 PM
Timeout while polling TWCR on Atmega328P incase physical hardware failure
Logic dictates that TWI module could fail physically and if so, is it reasonable to think TWINT would never be asserted, therefore the code between 06-0E would...
Thu. Mar 16, 2017 - 05:22 AM
BSET 1 vs SEZ on ATmega328P
Am I missing something or is this nothing more than a side effect of design that the redundancy between BSET (n) and SEC, SEN, SEZ, SEI, SES, SEV, SET & SEH exists....
Thu. Mar 9, 2017 - 08:49 PM
[CODE][C++] Factoring to reduce object size
In working on a driver for TWI (I2C), I stumbled upon a method that saves 1.2k of memory. This particular snippet had an object size of 1,318 bytes when using doubles in the...
Fri. Aug 19, 2016 - 06:57 PM
[CODE][ASM] TWI Probe for single unknown device
I've concocted this little snippet together as there are so many bricks available now, but they come with little or no information, especially what their address is. This...
Wed. Aug 17, 2016 - 12:36 AM
-Os optomization in Studio 7 v 7.0.1006
Generally I lean toward assembly, but do appreciate the convenience of C++. I'm using Studio 7 v 7.0.1006 (GNU C Compiler 4.9.2) and haven't modified anything in release...
Tue. Aug 16, 2016 - 12:34 PM