Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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: 230
  • SD+LCD 18F2550.bas
    3.2 KB · Views: 219
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? :banghead:
 

Attachments

  • 18F252 Nok.jpg
    18F252 Nok.jpg
    239.2 KB · Views: 233
  • 18F2550 Ok.jpg
    18F2550 Ok.jpg
    238.5 KB · Views: 249
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.

Latest threads

New Articles From Microcontroller Tips

Back
Top