interrupt doesn't generate -____-

This commit is contained in:
Sem van der Hoeven
2021-03-18 20:24:04 +01:00
parent 9f96c762fc
commit c7aefdc95d
5 changed files with 1294 additions and 1350 deletions

View File

@@ -4,8 +4,8 @@
<memory name="program">
<units>bytes</units>
<length>131072</length>
<used>318</used>
<free>130754</free>
<used>280</used>
<free>130792</free>
</memory>
<memory name="data">
<units>bytes</units>

View File

@@ -65,36 +65,4 @@ int main(void)
}
void init_4bits_mode(void) {
// PORTC output mode and all low (also E and RS pin)
DDRC = 0xFF;
PORTC = 0x00;
PORTC = 0x20; // (0x28 for 2 lines)
lcd_strobe_lcd_e();
}
void init_4bits_mode(void) {
// PORTC output mode and all low (also E and RS pin)
DDRC = 0xFF;
PORTC = 0x00;
PORTC = 0x20; // function for 4-bit 1 row
lcd_strobe_lcd_e();
PORTC = 0x20; // function high nibble 4-bit 2 row
lcd_strobe_lcd_e();
PORTC = 0x80; // function low nibble 4-bit 2 row
lcd_strobe_lcd_e();
PORTC = 0x00; // function high nibble turn on visible blinking-block cursor
lcd_strobe_lcd_e();
PORTC = 0xF0; // function low nibble turn on visible blinking-block cursor
lcd_strobe_lcd_e();
PORTC = 0x00; // Entry mode set high nibble
lcd_strobe_lcd_e();
PORTC = 0x60; // Entry mode set low nibble
lcd_strobe_lcd_e();
}