Changeset df91872 in avrstuff
- Timestamp:
- Apr 30, 2011, 9:37:02 AM (13 years ago)
- Branches:
- main
- Children:
- 13b28d3
- Parents:
- de0f65f
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
CPC stuff/ramcard/ramcard-cache.lib
rde0f65f rdf91872 1 EESchema-LIBRARY Version 2.3 Date: 03/10/2010 19:38:501 EESchema-LIBRARY Version 2.3 Date: 24/11/2010 11:54:35 2 2 # 3 3 # 74LS00 -
CPC stuff/ramcard/ramcard.sch
rde0f65f rdf91872 1 EESchema Schematic File Version 2 date 03/10/2010 19:38:501 EESchema Schematic File Version 2 date 24/11/2010 11:54:35 2 2 LIBS:power 3 3 LIBS:device … … 38 38 Sheet 1 1 39 39 Title "" 40 Date " 3 oct2010"40 Date "24 nov 2010" 41 41 Rev "" 42 42 Comp "" … … 46 46 Comment4 "" 47 47 $EndDescr 48 Text Notes 1600 5050 0 60 ~ 0 49 register 50 Text Notes 1700 1500 1 60 ~ 0 51 demultiplexer 52 Text Label 500 1050 0 60 ~ 0 53 A[0..3] 54 Entry Wire Line 55 800 1100 900 1200 56 Entry Wire Line 57 800 1000 900 1100 58 Entry Wire Line 59 800 900 900 1000 48 Connection ~ 8150 2300 49 Wire Wire Line 50 8150 2300 8150 2150 51 Connection ~ 8000 2800 52 Wire Wire Line 53 8300 2800 8000 2800 54 Connection ~ 7500 3350 55 Wire Wire Line 56 7500 2950 7500 3800 57 Connection ~ 7700 3800 58 Wire Wire Line 59 7500 3800 7800 3800 60 Wire Wire Line 61 7700 3800 7700 3950 60 62 Wire Bus Line 61 63 800 900 800 1100 … … 318 320 Wire Wire Line 319 321 800 1100 1050 1100 322 Wire Wire Line 323 9150 3750 8200 3750 324 Wire Wire Line 325 8200 3750 8200 3800 326 Wire Wire Line 327 8000 3500 8000 3350 328 Wire Wire Line 329 7900 2950 8000 2950 330 Wire Wire Line 331 8000 2950 8000 2750 332 Wire Wire Line 333 8300 2300 8000 2300 334 Wire Wire Line 335 8000 2300 8000 2350 336 $Comp 337 L VCC #PWR? 338 U 1 1 4CECEA88 339 P 8150 2150 340 F 0 "#PWR?" H 8150 2250 30 0001 C CNN 341 F 1 "VCC" H 8150 2250 30 0000 C CNN 342 1 8150 2150 343 1 0 0 -1 344 $EndComp 345 $Comp 346 L GND #PWR? 347 U 1 1 4CECE95E 348 P 7700 3950 349 F 0 "#PWR?" H 7700 3950 30 0001 C CNN 350 F 1 "GND" H 7700 3880 30 0001 C CNN 351 1 7700 3950 352 1 0 0 -1 353 $EndComp 354 Text Notes 1600 5050 0 60 ~ 0 355 register 356 Text Notes 1700 1500 1 60 ~ 0 357 demultiplexer 358 Text Label 500 1050 0 60 ~ 0 359 A[0..3] 360 Entry Wire Line 361 800 1100 900 1200 362 Entry Wire Line 363 800 1000 900 1100 364 Entry Wire Line 365 800 900 900 1000 320 366 Text Label 850 1100 0 60 ~ 0 321 367 A2 … … 569 615 L BATTERY BT? 570 616 U 1 1 4CA87798 571 P 7450 3000572 F 0 "BT?" H 7450 3200 50 0000 C CNN573 F 1 "BATTERY" H 7450 2810 50 0000 C CNN574 1 7450 3000617 P 8550 5550 618 F 0 "BT?" H 8550 5750 50 0000 C CNN 619 F 1 "BATTERY" H 8550 5360 50 0000 C CNN 620 1 8550 5550 575 621 1 0 0 -1 576 622 $EndComp … … 587 633 L BC307 Q? 588 634 U 1 1 4CA87175 589 P 5600 6550590 F 0 "Q?" H 5800 6450 50 0000 C CNN591 F 1 "BC307" H 5850 6700 50 0000 C CNN592 1 5600 6550593 1 0 0 -1635 P 8000 3700 636 F 0 "Q?" H 8200 3600 50 0000 C CNN 637 F 1 "BC307" H 8250 3850 50 0000 C CNN 638 1 8000 3700 639 0 1 1 0 594 640 $EndComp 595 641 $Comp … … 614 660 L CP1 C? 615 661 U 1 1 4CA87148 616 P 4650 7000617 F 0 "C?" H 4700 7100 50 0000 L CNN618 F 1 " CP1" H 4700 6900 50 0000 L CNN619 1 4650 7000620 1 0 0 -1662 P 7700 2950 663 F 0 "C?" H 7750 3050 50 0000 L CNN 664 F 1 "1µF" H 7750 2850 50 0000 L CNN 665 1 7700 2950 666 0 1 1 0 621 667 $EndComp 622 668 $Comp … … 659 705 L R R? 660 706 U 1 1 4CA870DC 661 P 4650 6300662 F 0 "R?" V 4730 6300 50 0000 C CNN663 F 1 " R" V 4650 6300 50 0000 C CNN664 1 4650 6300665 1 0 0 -1707 P 7750 3350 708 F 0 "R?" V 7830 3350 50 0000 C CNN 709 F 1 "10K" V 7750 3350 50 0000 C CNN 710 1 7750 3350 711 0 1 1 0 666 712 $EndComp 667 713 $Comp 668 714 L R R? 669 715 U 1 1 4CA870DB 670 P 4400 6300671 F 0 "R?" V 4480 6300 50 0000 C CNN672 F 1 " R" V 4400 6300 50 0000 C CNN673 1 4400 6300716 P 8300 2550 717 F 0 "R?" V 8380 2550 50 0000 C CNN 718 F 1 "1K" V 8300 2550 50 0000 C CNN 719 1 8300 2550 674 720 1 0 0 -1 675 721 $EndComp … … 740 786 L DIODE D? 741 787 U 1 1 4CA870B3 742 P 7 200 2500743 F 0 "D?" H 7 200 2600 40 0000 C CNN744 F 1 "DIODE" H 7 200 2400 40 0000 C CNN745 1 7 200 2500788 P 7150 1300 789 F 0 "D?" H 7150 1400 40 0000 C CNN 790 F 1 "DIODE" H 7150 1200 40 0000 C CNN 791 1 7150 1300 746 792 1 0 0 -1 747 793 $EndComp … … 749 795 L DIODE D? 750 796 U 1 1 4CA870AF 751 P 7150 2000752 F 0 "D?" H 7150 2100 40 0000 C CNN753 F 1 " DIODE" H 7150 1900 40 0000 C CNN754 1 7150 2000755 1 0 0 -1797 P 8000 2550 798 F 0 "D?" H 8000 2650 40 0000 C CNN 799 F 1 "1N4148" H 8000 2450 40 0000 C CNN 800 1 8000 2550 801 0 -1 -1 0 756 802 $EndComp 757 803 $Comp … … 776 822 L DIODE D? 777 823 U 1 1 4CA870A4 778 P 8 400 2300779 F 0 "D?" H 8 400 2400 40 0000 C CNN780 F 1 " DIODE" H 8400 2200 40 0000 C CNN781 1 8 400 2300782 1 0 0 -1824 P 8000 3150 825 F 0 "D?" H 8000 3250 40 0000 C CNN 826 F 1 "BZX55C" H 8000 3050 40 0000 C CNN 827 1 8000 3150 828 0 -1 -1 0 783 829 $EndComp 784 830 $Comp -
blinkled/Makefile
rde0f65f rdf91872 1 1 #Set vars 2 COMPILE = avr-gcc -Wall -Os -std=c99 -mmcu=atmega8535 -DF_CPU=4000000 2 MCU=attiny2313 3 COMPILE = avr-gcc -Wall -Os -std=c99 -mmcu=$(MCU) -DF_CPU=20000000 3 4 4 5 #Rules … … 20 21 21 22 flash: 22 avrdude -c usbasp -p atmega8535-Uflash:w:blinkdel.hex23 avrdude -c usbasp -p $(MCU) -Uflash:w:blinkdel.hex 23 24 24 25 clean: -
blinkled/blinkdel.hex
rde0f65f rdf91872 1 :1000000014C01BC01AC019C018C017C016C015C034 2 :1000100014C013C012C011C010C00FC00EC00DC05C 3 :100020000CC00BC00AC009C008C011241FBECFE518 4 :10003000D2E0DEBFCDBF02D01BC0E2CF2FE088E10F 5 :1000400090E00FB6F894A89581BD0FBE21BD84E065 6 :1000500083BF87B38FEF87BB8AEA88BB91E0A895FF 7 :1000600008B600FEFCCF98BF88B38F5F88BBF7CF80 8 :04007000F894FFCF32 1 :1000000012C017C016C015C014C013C012C011C052 2 :1000100010C00FC00EC00DC00CC00BC00AC009C07C 3 :1000200008C007C006C011241FBECFEDCDBF02D04F 4 :100030001CC0E6CF2FE088E190E00FB6F894A895B9 5 :1000400081BD0FBE21BD10BE84E083BF81B38FEFA1 6 :1000500081BB8AEA82BB92E0A89508B601FEFCCF7C 7 :0E00600098BF82B38F5F82BBF7CFF894FFCFBB 9 8 :00000001FF -
blinkled/main.c
rde0f65f rdf91872 11 11 wdt_enable(WDTO_2S); 12 12 // configure timer 0 for a rate of 16M/(256 * 256) = ~244Hz 13 TCCR0 = 4; // timer 0 prescaler: 256 13 TCCR0A = 0; // timer 0 prescaler: 256 14 TCCR0B = 4; 14 15 15 16 //debug LED - output 16 DDR B|= 255;17 DDRD |= 255; 17 18 18 PORT B= 0xAA;19 PORTD = 0xAA; 19 20 20 21 while(1) { … … 25 26 if (TIFR & (1 << TOV0)) { 26 27 TIFR = (1 << TOV0); // reset flag 27 PORT B++;28 PORTD++; 28 29 } 29 30 }
Note:
See TracChangeset
for help on using the changeset viewer.