/* The author disclaims all warranties with regard to this software, including all implied warranties of merchantability and fitness. In no event shall the author be liable for any special, indirect or consequential damages or any damages whatsoever resulting from loss of use, data or profits, whether in an action of contract, negligence or other tortious action, arising out of or in connection with the use or performance of this software.  */
static void HD44780_WriteNibble(const uint8_t nib)
/* The author disclaims all warranties with regard to this software, including all implied warranties of merchantability and fitness. In no event shall the author be liable for any special, indirect or consequential damages or any damages whatsoever resulting from loss of use, data or profits, whether in an action of contract, negligence or other tortious action, arising out of or in connection with the use or performance of this software.  */
static void HD44780_WriteNibble(const uint8_t nib)
{
	PORTD = (PORTD & ~(ENABLE | LO4_MASK)) | (nib & LO4_MASK);
	asm volatile("nop\n\t"
	             "nop\n\t"
	             :: );
	PORTD |= ENABLE;
	asm volatile("nop\n\t"
	             "nop\n\t"
	             "nop\n\t"
	             "nop\n\t"
	             "nop\n\t"
	             "nop\n\t"
	             "nop\n\t"
	             "nop\n\t"
	             :: );
	PORTD &= ~ENABLE;
	asm volatile("nop\n\t"
	             "nop\n\t"
	             "nop\n\t"
	             "nop\n\t"
	             "nop\n\t"
	             "nop\n\t"
	             "nop\n\t"
	             "nop\n\t"
	             :: );
}