View previous topic :: View next topic |
Author |
Message |
etiedon
Joined: 23 Jul 2007 Posts: 12
|
mmc_spi and isis simulation |
Posted: Mon Jul 23, 2007 5:03 am |
|
|
Is mmc_spi driver compatible with the mmc model in isis ?
I wrote a program in ccs like that ;
Code: |
#include <18F452.h>
#use delay(clock=4000000)//,RESTART_WDT)
#include <mmc_spi.c>
#include <lcd.c>
void main()
{
lcd_init();
lcd_putc("...");
delay_ms(500);
if(!mmc_init())
lcd_putc("OK");
} |
And connect the right pins to mmc model in isis..
But mmc_init didn't return zero and dont wrote anything to lcd. (Lcd works fine in simulation) Library function says it should return zero if the init process is succesful. |
|
|
etiedon
Joined: 23 Jul 2007 Posts: 12
|
|
Posted: Wed Jul 25, 2007 1:51 am |
|
|
Anyone used them together before ? I want to know that if i made a mistake or the problem is about isis..
Thanks for your help. |
|
|
Guest
|
|
Posted: Sat Sep 08, 2007 11:17 am |
|
|
is there any new news about this topic? i have same error |
|
|
Guest
|
|
Posted: Sun Sep 09, 2007 10:58 pm |
|
|
nobody? |
|
|
rberek
Joined: 10 Jan 2005 Posts: 207 Location: Ottawa, Canada
|
|
Posted: Mon Sep 10, 2007 12:23 am |
|
|
I was never able to get the CCS driver to work in ISIS, so I wrote my own, which did.
It was a long time ago, so I don't remember what exactly had to be changed. |
|
|
|