-
Datei
mmc.h
und geschwindigkeit extern unsigned char mmc_read_sector (unsigned long addr,unsigned char *Buffer); // liest einen sektor mit adresse addr auf Buffer extern unsigned char mmc_write_sector (unsigned long addr,unsigned
in „MMC SD library FAT16 FAT32 read write“ · Projekte & Code ·
-
Datei
mmc.h
die pins und geschwindigkeit extern unsigned char mmc_read_sector (unsigned long addr,unsigned char *Buffer); // liest einen sektor mit adresse addr auf Buffer extern unsigned char mmc_write_sector (unsigned long addr,unsigned
in „MMC SD library FAT16 FAT32 read write“ · Projekte & Code ·
-
Datei
mmc.h
(CS) #endif // prototypen extern uint8_t mmc_init(void); // initialisiert die pins und geschwindigkeit extern uint8_t mmc_read_sector (uint32_t addr,uint8_t *Buffer); // liest einen sektor mit adresse addr auf Buffer extern uint8_t mmc_write_sector
in „AVR und großer Speicher“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
mmc.h
die pins und geschwindigkeit extern unsigned char mmc_read_sector (unsigned long addr,unsigned char *Buffer); // liest einen sektor mit adresse addr auf Buffer extern unsigned char mmc_write_sector (unsigned long addr,unsigned
in „MMC SD library FAT16 FAT32 read write“ · Projekte & Code ·
-
Datei
mmc.h
die pins und geschwindigkeit extern unsigned char mmc_read_sector (unsigned long addr,unsigned char *Buffer); // liest einen sektor mit adresse addr auf Buffer extern unsigned char mmc_write_sector (unsigned long addr,unsigned
in „VS1011 Register auslesen!“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
mmc.h
Neuste Version: http://www.mikrocontroller.net/svnbrowser/avr-fat32/ * Autor: Daniel R. */ #ifndef _MMC_H #define _MMC_H // timer variable ( 10 ms intervall) extern volatile uint8_t TimingDelay; #define MMC_Write PORTB //Port an der die MMC/SD-Karte angeschlossen ist also des SPI #define MMC_Read PINB
in „SD-Card - SPI: kleine Fragen“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Anbindung_von_SD-Karten.pdf
beschreibbare Spei- Sämtliche Spezifikationen der im 4-Bit-Modus oder im Modi für Mikrocontroller MMC RS-MMC MMC MMC secure SD miniSD microSD plus mobile MMC (TransFlash) Pins 7 7 13 13 7 9 11 8 Größe B/L/H 24/32/1,4 24/18/1,4 24/32/1,4 24/18/1,4 24/32/1,4 24/32/2,1 20/21,5/1,4 11/15/1 SPI mode ja ja
in „SD Karte Initialisieren -> Error“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
config.h
schreiben. um an eine datei anzuhaengen ist MMC_OVER_WRITE TRUE nicht noetig! #define MMC_MULTI_BLOCK FALSE // TRUE und MMC_OVER_WRITE FALSE, dann werden multiblock schreib/lese funktionen benutzt. ist schneller, wird aber möglicherweise nicht von
in „MMC SD library FAT16 FAT32 read write“ · Projekte & Code ·
-
Datei
config.h
schreiben. um an eine datei anzuhaengen ist MMC_OVER_WRITE TRUE nicht noetig! #define MMC_MULTI_BLOCK TRUE // TRUE und MMC_OVER_WRITE FALSE, dann werden multiblock schreib/lese funktionen benutzt. ist schneller, wird aber möglicherweise nicht von
in „MMC SD library FAT16 FAT32 read write“ · Projekte & Code ·
-
Datei
config.h
schreiben. um an eine datei anzuhaengen ist MMC_OVER_WRITE TRUE nicht noetig! #define MMC_MULTI_BLOCK FALSE // TRUE und MMC_OVER_WRITE FALSE, dann werden multiblock schreib/lese funktionen benutzt. ist schneller, wird aber möglicherweise nicht von
in „MMC SD library FAT16 FAT32 read write“ · Projekte & Code ·
-
Datei
config.h
schreiben. um an eine datei anzuhaengen ist MMC_OVER_WRITE TRUE nicht noetig! #define MMC_MULTI_BLOCK TRUE // TRUE und MMC_OVER_WRITE FALSE, dann werden multiblock schreib/lese funktionen benutzt. ist schneller, wird aber möglicherweise nicht von
in „MMC SD library FAT16 FAT32 read write“ · Projekte & Code ·
-
Datei
mmc.c
); //Setzen von Pin MMC_DO auf Output MMC_Direction_REG |= (1<<MMC_Chip_Select); //Setzen von Pin MMC_Chip_Select auf Output MMC_Direction_REG |= (1<<SPI_SS); MMC_Write |= (1<<MMC_Chip_Select); //Setzt den Pin MMC_Chip_Select
in „µSD Karte Ulrich Radig Code funktioniert nicht mehr“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
mmc_config.h
// TRUE und MMC_WRITE TRUE, dann wird die funktion ffwrites mit kompiliert. mit dieser funktion koennen strings auf die karte geschrieben werden. #define MMC_WRITEN FALSE // TRUE und MMC_WRITE TRUE, dann wird die funktion
in „MMC SD library FAT16 FAT32 read write“ · Projekte & Code ·
-
Datei
mmc_config.h
// TRUE und MMC_WRITE TRUE, dann wird die funktion ffwrites mit kompiliert. mit dieser funktion koennen strings auf die karte geschrieben werden. #define MMC_WRITEN TRUE // TRUE und MMC_WRITE TRUE, dann wird die funktion
in „AVR und großer Speicher“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
mmc_config.h
// TRUE und MMC_WRITE TRUE, dann wird die funktion ffwrites mit kompiliert. mit dieser funktion koennen strings auf die karte geschrieben werden. #define MMC_WRITEN FALSE // TRUE und MMC_WRITE TRUE, dann wird die funktion
in „MMC SD library FAT16 FAT32 read write“ · Projekte & Code ·
-
Datei
main.c
strncpy(laengengrad, &nmea_in[28], 10); laengengrad[10] = nmea_in[39]; laengengrad[11] = '\0'; //Geschwindigkeit cli(); strncpy(geschwindigkeit, &nmea_in[41], 3); geschwindigkeit[3] = nmea_in[45]; geschwindigkeit[4] = '\0'; geschwindigkeit_int = atoi(geschwindigkeit); //z.B. "011.6" -> 116 geschwindigkeit_int = geschwindigkeit_int*1852; ltoa(geschwindigkeit_int,geschwindigkeit,10); i = 0; while(geschwindigkeit[i]!='\0') i++; if(i>4) geschwindigkeit[i-4]='\0'; else { geschwindigkeit[0]='0'; geschwindigkeit[1]='\0'; }
in „ISR und Stackgröße“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
mmc.c
); //Setzen von Pin MMC_DO auf Output MMC_Direction_REG |= (1<<MMC_Chip_Select); //Setzen von Pin MMC_Chip_Select auf Output MMC_Direction_REG |= (1<<SPI_SS); MMC_Write |= (1<<MMC_Chip_Select); //Setzt den Pin MMC_Chip_Select
in „atmega8 stürzt bei Funktionsaufruf ab - jedoch schon bevor dieser erreicht ist?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
mmc.c
); //Setzen von Pin MMC_DO auf Output MMC_Direction_REG |= (1<<MMC_Chip_Select); //Setzen von Pin MMC_Chip_Select auf Output MMC_Direction_REG |= (1<<SPI_SS); MMC_Write |= (1<<MMC_Chip_Select); //Setzt den Pin MMC_Chip_Select
in „Zugriff auf SD-Karte mit Atmega168“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
mmc.c
); //Setzen von Pin MMC_DO auf Output MMC_Direction_REG |= (1<<MMC_Chip_Select); //Setzen von Pin MMC_Chip_Select auf Output MMC_Direction_REG |= (1<<SPI_SS); MMC_Write |= (1<<MMC_Chip_Select); //Setzt den Pin MMC_Chip_Select
in „SD-Karte mit Mega644 & Software von Ulrich Radig“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
mmc.c
); //Setzen von Pin MMC_DO auf Output MMC_Direction_REG |= (1<<MMC_Chip_Select); //Setzen von Pin MMC_Chip_Select auf Output MMC_Direction_REG |= (1<<SPI_SS); MMC_Write |= (1<<MMC_Chip_Select); //Setzt den Pin MMC_Chip_Select
in „ATMega8 + SD-Karte“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
mmc.c
); //Setzen von Pin MMC_DO auf Output MMC_Direction_REG |= (1<<MMC_Chip_Select); //Setzen von Pin MMC_Chip_Select auf Output //MMC_Direction_REG |= (1<<SPI_SSSD); MMC_Write |= (1<<MMC_Chip_Select); //Setzt den Pin MMC_Chip_Select
in „SD-Karte wird nicht erkannt NetIO“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
mmc.c
); //Setzen von Pin MMC_DO auf Output MMC_Direction_REG |= (1<<MMC_Chip_Select); //Setzen von Pin MMC_Chip_Select auf Output MMC_Direction_REG |= (1<<SPI_SSSD); MMC_Write |= (1<<MMC_Chip_Select); //Setzt den Pin MMC_Chip_Select
in „SD-Karte wird nicht erkannt NetIO“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
mmc.c
); //Setzen von Pin MMC_DO auf Output MMC_Direction_REG |= (1<<MMC_Chip_Select); //Setzen von Pin MMC_Chip_Select auf Output MMC_Direction_REG |= (1<<SPI_SSSD); MMC_Write |= (1<<MMC_Chip_Select); //Setzt den Pin MMC_Chip_Select
in „SD-Karte wird nicht erkannt“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
mmc.c
); //Setzen von Pin MMC_DO auf Output MMC_Direction_REG |= (1<<MMC_Chip_Select); //Setzen von Pin MMC_Chip_Select auf Output MMC_Direction_REG |= (1<<SPI_SS); MMC_Write |= (1<<MMC_Chip_Select); //Setzt den Pin MMC_Chip_Select
in „Atmega 128 und MMC/SD Karte mit codevision“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
sdConfig.h
wenn die fat nicht fragmentiert ist ! #define MAX_SPEED 1 // wenn MaX_SPEED 0 dann wird die bus geschwindigkeit nicht hoch gesetzt. ist zum testen von hardware die nicht richtig läuft #define STATUS_PINS 1 // wenn 1 dann werden Signale SD_In, SD_Locked ausgewertet #define MMC_Chip_Select 3 #define configure_pin_available
in „MMC SD library FAT16 FAT32 read write“ · Projekte & Code ·
-
Datei
mmc.c
[5] = 0xFF; while( mmc_write_command (CMD) !=0){ if (Timeout++ > 400){ MMC_Disable(); return(2); //Abbruch bei Commando2 (Return Code2) } } //SPI Bus auf max Geschwindigkeit SPCR &= ~((1<<SPR0) | (1<<SPR1)); SPSR = SPSR|(
in „MMC SD library FAT16 FAT32 read write“ · Projekte & Code ·
-
Datei
Programm.txt
Output MMC_Direction_REG |= (1<<MMC_Chip_Select); //Setzen von Pin MMC_Chip_Select auf Output MMC_Direction_REG |= (1<<SPI_SS); MMC_Disable(); //MMC_Write |= (1<<MMC_Chip_Select); //Setzt den Pin MMC_Chip_Select
in „ATMEGA8 -- SD/MMC Karte“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
mmc.inc
MMC_FREE: ;MMC-Karte freigeben mmc_disable out SPCR,isnull ret doINITMMC: cbr StatusB,SDCARDok ldi XL,3 ldi XH,6 rcall Display_pos ldiw_m Z,txt_mmc1 ;"Initalisiere SD-Card ... " rcall Display_putStrFL ldi
in „SDKarte SPI gibt seltsame Antwort“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
sd_mmc.pdf
Geschwindigkeit einzustellen. Im SPSR ist erstmal nur Bit 0 (SPI2X) fu uns interessant, das die Clock-Geschwin- digkeit um den Faktor 2 beein usst. F r die gr ▯tm gliche Geschwindigkeit sollte man das Bit auf
in „MMC-Karte funktioniert nicht“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
mmc.c
teil ! #define MMC_CS_LOW MMC_Write &= ~(1<<SPI_SS) // Set pin B2 to 0 #define MMC_CS_HIGH MMC_Write |= (1<<SPI_SS) // Set pin B2 to 1 static void spi_init(void); static void spi_maxSpeed(void); static void spi_write_byte
in „MMC SD library FAT16 FAT32 read write“ · Projekte & Code ·
-
Datei
mmc.c
//SPI Bus auf max Geschwindigkeit SPCR &= ~((1<<SPR0) | (1<<SPR1)); SPSR |= (1<<SPI2X); } #endif // ***************************************************************************** static void spi_write_byte(uint8_t byte){ #if (MMC_SOFT_SPI
in „MMC SD library FAT16 FAT32 read write“ · Projekte & Code ·
-
Datei
mmc.c
//SPI Bus auf max Geschwindigkeit SPCR &= ~((1<<SPR0) | (1<<SPR1)); SPSR |= (1<<SPI2X); } #endif // ***************************************************************************** static void spi_write_byte(uint8_t byte){ #if (MMC_SOFT_SPI
in „SD-Card - SPI: kleine Fragen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
mmc.c
a; // mz: added status support #if(MMC_STATUS_INFO == TRUE) configure_pin_present(); if (! mmc_present()) return MMC_NOT_PRESENT; #endif #if(MMC_STATUS_INFO == TRUE && MMC_WRITE == TRUE) configure_pin_protected(); if (mmc_protected()) return
in „SPI mit SD Karte antwortet nicht korrekt auf CMD0“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
mmc.c
Neuste Version: http://www.mikrocontroller.net/svnbrowser/avr-fat32/ * Autor: Daniel R. */ #include "mmc_config.h" #include "mmc.h" #include <util/delay.h> // Definitions for MMC/SDC command #define CMD0 (0) // GO_IDLE_STATE #define CMD1 (1) // SEND_OP_COND (MMC) #define ACMD41 (41) // SEND_OP_COND (SDC
in „AVR und großer Speicher“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
mmc.c
Neuste Version: http://www.mikrocontroller.net/svnbrowser/avr-fat32/ * Autor: Daniel R. */ #include "mmc_config.h" #include "mmc.h" #include "avr/io.h" #include "config.h" #include "avr/interrupt.h" // Definitions for MMC/SDC command #define CMD0 (0) // GO_IDLE_STATE #define CMD1 (1) // SEND_OP_COND (MMC
in „MMC SD library FAT16 FAT32 read write“ · Projekte & Code ·
-
Datei
mmc.c
a; // mz: added status support #if(MMC_STATUS_INFO == TRUE) configure_pin_present(); if (! mmc_present()) return MMC_NOT_PRESENT; #endif #if(MMC_STATUS_INFO == TRUE && MMC_WRITE == TRUE) configure_pin_protected(); if (mmc_protected()) return
in „MMC SD library FAT16 FAT32 read write“ · Projekte & Code ·
-
Datei
fat.c
); #if (MMC_LFN_SUPPORT) static void fat_makeLfnDataEntrys(uint8_t name[],uint8_t row_count); static uint8_t fat_lfn_checksum(uint8_t name[]); #endif #endif #if (MMC_TIME_STAMP) static uint16_t fat_getTime(void
in „MMC SD library FAT16 FAT32 read write“ · Projekte & Code ·
-
Datei
fat.c
); #if (MMC_LFN_SUPPORT==TRUE) static void fat_makeLfnDataEntrys(uint8_t name[],uint8_t row_count); static uint8_t fat_lfn_checksum(uint8_t name[]); #endif #endif #if (MMC_TIME_STAMP==TRUE) static uint16_t fat_getTime
in „MMC SD library FAT16 FAT32 read write“ · Projekte & Code ·
-
PDF
www-mikrocontroller-net_articles_AVR_FAT32.pdf
Sektor auf einen anderen physikalischen schreibt. Siehe Auch: Wikipedia SD Karten Richtlinien stablemmc0.5.3: Wenn eine Datei zum schreiben geöffnet ist, aber gerade keine Daten zum schreiben vorliegen, bringt es keinen Vorteil (Strom oder Geschwindigkeit) die Datei zu schießen, wenn später noch Daten
in „MMC SD library FAT16 FAT32 read write“ · Projekte & Code ·
-
Datei
file.c
auf karte. return MMC_FILE_NEW; } #endif #if (MMC_WRITE==FALSE) return MMC_FILE_NOT_EXISTS; // wird nur bei readonly zurueckgegeben, wenn datei nicht gefunden wurde. #endif } //*******************************************
in „SD_Karte Directory erstellen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
file.c
************************************************************************** uint8_t ffclose(){ #if (MMC_MULTI_BLOCK==TRUE && MMC_OVER_WRITE==FALSE) if(multiblock_flag == TRUE){ mmc_multi_block_stop_read(); // stoppen von multiblock aktion } else{ mmc_multi_block_stop_write(); // stoppen von multiblock
in „SD Card mit Atmega beschrieben (FAT32) - Datei nicht lesbar in Windows“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
file.c
Version: http://www.mikrocontroller.net/svnbrowser/avr-fat32/ * Autor: Daniel R. */ #include "SDCARD/mmc_config.h" #include "SDCARD/mmc.h" #include "SDCARD/fat.h" #include "SDCARD/file.h" struct File_t file; // wichtige dateibezogene daten/variablen #if (MMC_MULTI_BLOCK==TRUE && MMC_OVER_WRITE==FALSE)
in „MMC SD library FAT16 FAT32 read write“ · Projekte & Code ·
-
Datei
mmc.c
senden NUR MMC CMD[0] = 0x41; CMD[5] = 0xFF; timeout = 0; while (writecommand(CMD) != 0) // Warte auf eine gültige Antwort { timeout++; if (timeout > 200) // Abbruch falls keine Antwort { return (2); } } } Card_Disable(); SPCR &= ~((1<<SPR0) | (1<<SPR1)); //SPI auf max. Geschwindigkeit SPSR |= (1 << SPI2X); return (0); } //-------------------------------------------- //- Datenbyte an Card senden - //-------------------------------------------- void writebyte (uint8_t databyte
in „MMC/SD Adresse“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
MP3_FINAL_1.1.txt
sbi MMC_Dir, MMC_Chip_Select ;//Setzen von Pin MMC_Chip_Select auf Output sbi MMC_Write, MMC_Chip_Select ;MMC chip select aus sbi MMC_DIR, 3 ; sbi MMC_DIR, 2 cbi MMC_DIR, 1 sbi MMC_DIR, 0 sbi PORTB, 3 sbi PORTB
in „Atmega32, AVRstudio und SRAM“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
File_FAT.txt
ffnet j=file.length%512; // errechnet stelle ab der mit 0 ÃŒberschrieben werden muss while(j<512){ mmc_write_byte(0x00); // beschreibt ungenutzte bytes mit 0x00 j++; } mmc_write_atAddr_end(); // abschluss, schreiben eines blocks if(file_flag==2)fat_makeFileEntry(file.name,file.attrib,file.firstCluster
in „MMC SD library FAT16 FAT32 read write“ · Projekte & Code ·
-
Datei
s65.c
" #include <avr/io.h> #include <util/delay.h> #include <avr/pgmspace.h> #include "fat.h" #include "mmc.h" #include <stdio.h> #include <string.h> #include <avr/interrupt.h> #include <stdint.h> #include <avr/eeprom.h> #define ASX 0x1200 #define ASY 0x1300 #define APX 0x1400 #define AEX 0x1500 #define AEY
in „Bausatz Add-on für AVR-NET-IO“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Universeller_Bilduebertraeger.pdf
Kombination mit den aktuellen Koordinaten und der Uhrzeit ein Bild vollautomatisiert auf eine SD- oder MMC-Karte auf. Wieder anders eingesetzt, kann man das Gerät ans Fenster stellen und es am PC als eine Art Webcam verwenden. Im Grunde sind damit so ziemlich alle Arten der Bildaufnahme abgedeckt. Für alle
in „Universelles vollautomatisiertes Foto System (GPS GPX BILD SMS GSM)“ · Projekte & Code ·
-
PDF
Elektronikladen07.pdf
erkennt man weiterhin RS232- und CAN-Treiber, einen 10/100 Mbps Ethernet PHY und einen Slot für SD/MMC-Karten. Hinzu gesellen sich Verstärker für Audiosignale nebst Buchsen für Mikrofon und Kopfhörer. Und natürlich - schließlich handelt es sich um ein Development Board - der obligatorische 20-polige
in „MC68000 von Motorolla“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Bidirektionale_RS232_Funkbr_cke_mit_RFM12_2.pdf
Meiner ist sehr beschäftigt, auch mit Dingen die bis zu 0,1s dauern, zB Infrarot oder Display bzw MMC Zugriffen. Und dabei sind die INTs abgeschaltet. Ich frage in der Zustandsmaschine der Hauptschleife des Empfängers einfach immer wieder das DQD Bit ab. Der Sender wird mit aktiviertem Synthesizer als
in „bidirektionale RS232 Funkbrücke mit RFM12“ · Projekte & Code ·
-
PDF
AVR-ASM-Tutorial_16_05_08_v2.pdf
mkII • AVR-Dragon * • AVR JTAG-ICE * 0.5 Projekte • Digitaler Funktionsgenerator • Midi Rekorder mit MMC/SD-Karte • Schrittmotor-Controller (Stepper) • Pulsuhrempfänger mitAVR Butterfly • DCF77-Funkwecker mitAVR • Fahrradcomputer • Einfacher und billiger Webserver mitAtMega32 • AVR RFM12 0.6 Tutorials
in „AVR-ASM-Tutorial: PDF 16.5.08“ · www.mikrocontroller.net ·