Changeset c57dd4c in avrstuff
- Timestamp:
- Jul 23, 2014, 11:14:11 PM (10 years ago)
- Branches:
- main
- Children:
- 071dc14
- Parents:
- 49e72b6
- Location:
- blinkled
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
blinkled/atmega48p.hex
r49e72b6 rc57dd4c 3 3 :1000200011C010C00FC00EC00DC00CC00BC00AC064 4 4 :1000300009C008C011241FBECFEFD2E0DEBFCDBF84 5 :1000400002D01 DC0DDCF2FE088E190E00FB6F8941C5 :1000400002D01BC0DDCF2FE088E190E00FB6F8941E 6 6 :10005000A895809360000FBE2093600014BC84E0DC 7 :1000600085BD8AB18FEF8AB98AEA8BB991E0A895EC 8 :10007000A89BFDCF95BB8BB18F5F8BB9F8CFF89460 9 :02008000FFCFB0 7 :1000600085BD569A1BB821E090E4A895A89BFDCFCA 8 :0E00700025BB8BB189278BB9F8CFF894FFCF51 10 9 :00000001FF -
blinkled/main.c
r49e72b6 rc57dd4c 19 19 20 20 //debug LED - output 21 DDRD |= 255;21 DDRD |= (1<<PD6); 22 22 23 PORTD = 0 xAA;23 PORTD = 0; 24 24 25 25 while(1) { … … 30 30 if (TIFR & (1 << TOV0)) { 31 31 TIFR = (1 << TOV0); // reset flag 32 PORTD ++;32 PORTD ^= (1<<PD6); 33 33 } 34 34 }
Note:
See TracChangeset
for help on using the changeset viewer.