Changeset df91872 in avrstuff


Ignore:
Timestamp:
Apr 30, 2011, 9:37:02 AM (13 years ago)
Author:
Adrien Destugues <pulkomandy@…>
Branches:
main
Children:
13b28d3
Parents:
de0f65f
Message:
  • Blinkdel for attiny2313 (and easier to adapt)
  • Ramcard schematic update

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

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:50
     1EESchema-LIBRARY Version 2.3  Date: 24/11/2010 11:54:35
    22#
    33# 74LS00
  • CPC stuff/ramcard/ramcard.sch

    rde0f65f rdf91872  
    1 EESchema Schematic File Version 2  date 03/10/2010 19:38:50
     1EESchema Schematic File Version 2  date 24/11/2010 11:54:35
    22LIBS:power
    33LIBS:device
     
    3838Sheet 1 1
    3939Title ""
    40 Date "3 oct 2010"
     40Date "24 nov 2010"
    4141Rev ""
    4242Comp ""
     
    4646Comment4 ""
    4747$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
     48Connection ~ 8150 2300
     49Wire Wire Line
     50        8150 2300 8150 2150
     51Connection ~ 8000 2800
     52Wire Wire Line
     53        8300 2800 8000 2800
     54Connection ~ 7500 3350
     55Wire Wire Line
     56        7500 2950 7500 3800
     57Connection ~ 7700 3800
     58Wire Wire Line
     59        7500 3800 7800 3800
     60Wire Wire Line
     61        7700 3800 7700 3950
    6062Wire Bus Line
    6163        800  900  800  1100
     
    318320Wire Wire Line
    319321        800  1100 1050 1100
     322Wire Wire Line
     323        9150 3750 8200 3750
     324Wire Wire Line
     325        8200 3750 8200 3800
     326Wire Wire Line
     327        8000 3500 8000 3350
     328Wire Wire Line
     329        7900 2950 8000 2950
     330Wire Wire Line
     331        8000 2950 8000 2750
     332Wire Wire Line
     333        8300 2300 8000 2300
     334Wire Wire Line
     335        8000 2300 8000 2350
     336$Comp
     337L VCC #PWR?
     338U 1 1 4CECEA88
     339P 8150 2150
     340F 0 "#PWR?" H 8150 2250 30  0001 C CNN
     341F 1 "VCC" H 8150 2250 30  0000 C CNN
     342        1    8150 2150
     343        1    0    0    -1 
     344$EndComp
     345$Comp
     346L GND #PWR?
     347U 1 1 4CECE95E
     348P 7700 3950
     349F 0 "#PWR?" H 7700 3950 30  0001 C CNN
     350F 1 "GND" H 7700 3880 30  0001 C CNN
     351        1    7700 3950
     352        1    0    0    -1 
     353$EndComp
     354Text Notes 1600 5050 0    60   ~ 0
     355register
     356Text Notes 1700 1500 1    60   ~ 0
     357demultiplexer
     358Text Label 500  1050 0    60   ~ 0
     359A[0..3]
     360Entry Wire Line
     361        800  1100 900  1200
     362Entry Wire Line
     363        800  1000 900  1100
     364Entry Wire Line
     365        800  900  900  1000
    320366Text Label 850  1100 0    60   ~ 0
    321367A2
     
    569615L BATTERY BT?
    570616U 1 1 4CA87798
    571 P 7450 3000
    572 F 0 "BT?" H 7450 3200 50  0000 C CNN
    573 F 1 "BATTERY" H 7450 2810 50  0000 C CNN
    574         1    7450 3000
     617P 8550 5550
     618F 0 "BT?" H 8550 5750 50  0000 C CNN
     619F 1 "BATTERY" H 8550 5360 50  0000 C CNN
     620        1    8550 5550
    575621        1    0    0    -1 
    576622$EndComp
     
    587633L BC307 Q?
    588634U 1 1 4CA87175
    589 P 5600 6550
    590 F 0 "Q?" H 5800 6450 50  0000 C CNN
    591 F 1 "BC307" H 5850 6700 50  0000 C CNN
    592         1    5600 6550
    593         1    0    0    -1 
     635P 8000 3700
     636F 0 "Q?" H 8200 3600 50  0000 C CNN
     637F 1 "BC307" H 8250 3850 50  0000 C CNN
     638        1    8000 3700
     639        0    1    1    0  
    594640$EndComp
    595641$Comp
     
    614660L CP1 C?
    615661U 1 1 4CA87148
    616 P 4650 7000
    617 F 0 "C?" H 4700 7100 50  0000 L CNN
    618 F 1 "CP1" H 4700 6900 50  0000 L CNN
    619         1    4650 7000
    620         1    0    0    -1 
     662P 7700 2950
     663F 0 "C?" H 7750 3050 50  0000 L CNN
     664F 1 "1µF" H 7750 2850 50  0000 L CNN
     665        1    7700 2950
     666        0    1    1    0  
    621667$EndComp
    622668$Comp
     
    659705L R R?
    660706U 1 1 4CA870DC
    661 P 4650 6300
    662 F 0 "R?" V 4730 6300 50  0000 C CNN
    663 F 1 "R" V 4650 6300 50  0000 C CNN
    664         1    4650 6300
    665         1    0    0    -1 
     707P 7750 3350
     708F 0 "R?" V 7830 3350 50  0000 C CNN
     709F 1 "10K" V 7750 3350 50  0000 C CNN
     710        1    7750 3350
     711        0    1    1    0  
    666712$EndComp
    667713$Comp
    668714L R R?
    669715U 1 1 4CA870DB
    670 P 4400 6300
    671 F 0 "R?" V 4480 6300 50  0000 C CNN
    672 F 1 "R" V 4400 6300 50  0000 C CNN
    673         1    4400 6300
     716P 8300 2550
     717F 0 "R?" V 8380 2550 50  0000 C CNN
     718F 1 "1K" V 8300 2550 50  0000 C CNN
     719        1    8300 2550
    674720        1    0    0    -1 
    675721$EndComp
     
    740786L DIODE D?
    741787U 1 1 4CA870B3
    742 P 7200 2500
    743 F 0 "D?" H 7200 2600 40  0000 C CNN
    744 F 1 "DIODE" H 7200 2400 40  0000 C CNN
    745         1    7200 2500
     788P 7150 1300
     789F 0 "D?" H 7150 1400 40  0000 C CNN
     790F 1 "DIODE" H 7150 1200 40  0000 C CNN
     791        1    7150 1300
    746792        1    0    0    -1 
    747793$EndComp
     
    749795L DIODE D?
    750796U 1 1 4CA870AF
    751 P 7150 2000
    752 F 0 "D?" H 7150 2100 40  0000 C CNN
    753 F 1 "DIODE" H 7150 1900 40  0000 C CNN
    754         1    7150 2000
    755         1    0    0    -1 
     797P 8000 2550
     798F 0 "D?" H 8000 2650 40  0000 C CNN
     799F 1 "1N4148" H 8000 2450 40  0000 C CNN
     800        1    8000 2550
     801        0    -1   -1   0  
    756802$EndComp
    757803$Comp
     
    776822L DIODE D?
    777823U 1 1 4CA870A4
    778 P 8400 2300
    779 F 0 "D?" H 8400 2400 40  0000 C CNN
    780 F 1 "DIODE" H 8400 2200 40  0000 C CNN
    781         1    8400 2300
    782         1    0    0    -1 
     824P 8000 3150
     825F 0 "D?" H 8000 3250 40  0000 C CNN
     826F 1 "BZX55C" H 8000 3050 40  0000 C CNN
     827        1    8000 3150
     828        0    -1   -1   0  
    783829$EndComp
    784830$Comp
  • blinkled/Makefile

    rde0f65f rdf91872  
    11#Set vars
    2 COMPILE = avr-gcc -Wall -Os -std=c99 -mmcu=atmega8535 -DF_CPU=4000000
     2MCU=attiny2313
     3COMPILE = avr-gcc -Wall -Os -std=c99 -mmcu=$(MCU) -DF_CPU=20000000
    34
    45#Rules
     
    2021
    2122flash:
    22         avrdude -c usbasp -p atmega8535 -Uflash:w:blinkdel.hex
     23        avrdude -c usbasp -p $(MCU) -Uflash:w:blinkdel.hex
    2324
    2425clean:
  • 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
    98:00000001FF
  • blinkled/main.c

    rde0f65f rdf91872  
    1111        wdt_enable(WDTO_2S);
    1212    // 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;
    1415
    1516        //debug LED - output
    16         DDRB |= 255;
     17        DDRD |= 255;
    1718
    18         PORTB = 0xAA;
     19        PORTD = 0xAA;
    1920
    2021        while(1) {
     
    2526                if (TIFR & (1 << TOV0)) {
    2627                        TIFR = (1 << TOV0); // reset flag
    27                         PORTB++;
     28                        PORTD++;
    2829                }
    2930        }
Note: See TracChangeset for help on using the changeset viewer.