SDcard problem 18F252 nok

Status
Not open for further replies.

gold94

New Member
Hi,
I can not run this SD card program, written in Oshonsoft, I have no problem for the PIC series 18F2550 and 18F4550, but impossible for PIC 18F252 or 18F4620.
SPI pins change 18F252 RA5, RC3, RC4, RC5 and for 18F2550 RA5, RB0, RB1, RC7.Can be in the configuration register.
I do not see what can go wrong.
Thank you for your help
 

Attachments

  • SD+LCD 18F252.bas
    3.2 KB · Views: 240
  • SD+LCD 18F2550.bas
    3.2 KB · Views: 231
not much answer, I just discovered that there is a prb with the signal CLK which is not correct. the basic of Vladimir is involved? a suggestion?
 

Attachments

  • 18F252 Nok.jpg
    239.2 KB · Views: 244
  • 18F2550 Ok.jpg
    238.5 KB · Views: 260
Hi G,
I am also having problems, which may be related.

I READ/WRITE to modules using SPI. I also have an analyser.

I use the line:
Define SIMULATION_WAITMS_VALUE = 1 'Comment in for SIM out for PIC
I get sensible analyser readings if the line is commented IN, so I presume the PIC is going too fast, but I'm not sure.
Camerart.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…