Picproje Elektronik Sitesi

DERLEYİCİLER => CCS C => Konuyu başlatan: mcan - 09 Eylül 2007, 16:43:38

Başlık: mmc_init(); çalıştıramadım
Gönderen: mcan - 09 Eylül 2007, 16:43:38
ccs nin herhangi bir sürücüsü ile sadece mmc_init(); çalıştırabilen varmı?ben beceremedim.isis de mmc_spi.c kullanarak yaptığım denemelerde hep spi busy gibi hata aldım.#include <18F452.h>
#device adc=8

#FUSES NOWDT                    //No Watch Dog Timer
#FUSES WDT128                   //Watch Dog Timer uses 1:128 Postscale
#FUSES HS                       //High speed Osc (> 4mhz)
#FUSES NOPROTECT                //Code not protected from reading
#FUSES NOOSCSEN                 //Oscillator switching is disabled, main oscillator is source
#FUSES BROWNOUT                 //Reset when brownout detected
#FUSES BORV20                   //Brownout reset at 2.0V
#FUSES NOPUT                    //No Power Up Timer
#FUSES STVREN                   //Stack full/underflow will cause reset
#FUSES NODEBUG                  //No Debug mode for ICD
#FUSES NOLVP                    //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
#FUSES NOWRT                    //Program memory not write protected
#FUSES NOWRTD                   //Data EEPROM not write protected
#FUSES NOWRTB                   //Boot block not write protected
#FUSES NOWRTC                   //configuration not registers write protected
#FUSES NOCPD                    //No EE protection
#FUSES NOCPB                    //No Boot Block code protection
#FUSES NOEBTR                   //Memory not protected from table reads
#FUSES NOEBTRB                  //Boot block not protected from table reads

#use delay(clock=4000000)
#use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=9)



#include <mmc_spi.c>
int h;
void main()
{
 
  mmc_init();

}


http://rapidshare.com/files/54466043/deneme.rar.html
Başlık: mmc_init(); çalıştıramadım
Gönderen: gazel - 01 Ekim 2007, 14:24:59
bu mmc driverını bende denedim ama simulasyon çalışmadı. boş bi anımda devreyi kurup deneyeceğim.
Başlık: mmc_init(); çalıştıramadım
Gönderen: mech - 08 Ekim 2007, 01:47:26
Bu mmc komutu fat32 mi yoksa fat16 'yı mı destekliyor acaba?
Başlık: mmc_init(); çalıştıramadım
Gönderen: kurumahmut - 08 Ekim 2007, 10:01:22
Isisteki mmc modelini CCS'nin driverı ile bende süremedim. Ancak bu ISIS modelini süren bir uygulamayı modeli yapanlar sunmuş.

http://www.advdigitaltech.com/products/mmcvsm/index.php

Ancak sadece hex kodunu veriyorlar.

CCS driveri ile mmc_init() te timeout dönüyor.
Başlık: mmc_init(); çalıştıramadım
Gönderen: gazel - 27 Ocak 2008, 18:17:06
mmc okuyup yazmak için devre hazırladım. ccs nin kendi driverini kullandım devre ve driver sorunsuz çalışıyor. fakat mmc ye eeprom muamelesi yapılıyor :)  fat32 kodu destekleyenn driver araştıracam biraz...
kolay gelsin