Changeset c57dd4c in avrstuff


Ignore:
Timestamp:
Jul 23, 2014, 11:14:11 PM (10 years ago)
Author:
Adrien Destugues <pulkomandy@…>
Branches:
main
Children:
071dc14
Parents:
49e72b6
Message:

Only toggle PD6.

git-svn-id: svn://pulkomandy.tk/avrstuff@99 c6672c3c-f6b6-47f9-9001-1fd6b12fecbe

Location:
blinkled
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • blinkled/atmega48p.hex

    r49e72b6 rc57dd4c  
    33:1000200011C010C00FC00EC00DC00CC00BC00AC064
    44:1000300009C008C011241FBECFEFD2E0DEBFCDBF84
    5 :1000400002D01DC0DDCF2FE088E190E00FB6F8941C
     5:1000400002D01BC0DDCF2FE088E190E00FB6F8941E
    66:10005000A895809360000FBE2093600014BC84E0DC
    7 :1000600085BD8AB18FEF8AB98AEA8BB991E0A895EC
    8 :10007000A89BFDCF95BB8BB18F5F8BB9F8CFF89460
    9 :02008000FFCFB0
     7:1000600085BD569A1BB821E090E4A895A89BFDCFCA
     8:0E00700025BB8BB189278BB9F8CFF894FFCF51
    109:00000001FF
  • blinkled/main.c

    r49e72b6 rc57dd4c  
    1919
    2020        //debug LED - output
    21         DDRD |= 255;
     21        DDRD |= (1<<PD6);
    2222
    23         PORTD = 0xAA;
     23        PORTD = 0;
    2424
    2525        while(1) {
     
    3030                if (TIFR & (1 << TOV0)) {
    3131                        TIFR = (1 << TOV0); // reset flag
    32                         PORTD++;
     32                        PORTD ^= (1<<PD6);
    3333                }
    3434        }
Note: See TracChangeset for help on using the changeset viewer.