Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
with these changes the project does not work.
I want to use the two i2c. I know i can use one.
The sleep mode close usart so pic cant receive anything...... how can i wake up the pic with rx interrupt?
horace1,
I understand that and i guess you are right, but i have a problem. My pic is spleeping, so i cant generate uart interrupt.
Section 16.4.3 AUTO-WAKE-UP ON BREAK in the datasheet tells to put WUE = 1. I dont get it how to use this...
Hey guys,
I have this code and it works fine, but i added the serial interrupt and the project stop works. I dont know what im doing wrong. Can you guys help me pls?
My pic is in sleep mode at start and wake up, take some measures and go to sleep mode again.
And now i want the same but if i...
Hi again,
This code of sd card works fine for me with mplax and compiler xc8.
I dont know why, but creates 3 files in sd card, i go do some more tests and if i fix the problem i post the changed code.
And one more thing, i dont know why but the code works with sandisk cards, i try more 4...
Hi guys,
It's possible to write and read data on SD card without creating a file? I did my library in order to have the interface between my SD Card and PIC, in order to do that I just add SD Card protocol and SPI protocol and now I want to test this, to add FAT protocol, to my library.
If...
Hi guys, i saw one thing i guess is very important, if i try format my sd card in fat 16 with 512bytes its not possible.
In fat 16 i just can format the sd card in 32kbytes or 64kbytes but if i try format in fat 32 i can format the sd card with 512bytes.
So the question is, i had one code...
" paulfjujo " what version of C18 you used?
i try to compile your project and i got this:
My version of C18 is 3.47.
In this image show, what i did with the libraries.
" FvM " i said that because i can initiate the sd card but cant write.
" paulfjujo " if i wanna try your example with my hardware and C18 what i need to change? Now i just wanna be sure that my hardware is ok so i prefere try your code and see what happens.
" paulfjujo " i forgot to ask, why you used so high frequency 10MHz * 4 (PLL).
In all examples i saw they always used high frequencys like you did or 20MHz * 4 or 16MHz * 4, we cant use 8MHz for example?
" maybe your problem isn't software, but hardware. Are you sure that you have well connected the SD to the microcontroller? Have you used the pull up resistor? "
This time the hardware is ok.
The next two images are my circuit.
Its possible that im not appling the necessary voltage in...
I can see your project and your things but i guess i go have the same errors like using the microchip libraries because is based on C18 and im using XC8 :S
Hi all,
I tryed many things to interface my PIC with SD Card but all without sucess.
I tryed the code from this site “ **broken link removed** “ and the SD Card works more or less with the PIC18F4520 at the start of my project, sometimes work, sometimes doesnt, but the hardware was wrong so i...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.