CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 13 matches
CCS Forum Index
Author Message
  Topic: Best configuration for the SPI to work with a SD card
nacho72

Replies: 13
Views: 21690

PostForum: General CCS C Discussion   Posted: Sun Nov 30, 2014 2:46 pm   Subject: Best configuration for the SPI to work with a SD card
Oh I already solved it the other day, sorry for making you waste your time with your answer asmallri hahaha I hope you didn't have anything better to do, because the question I asked was quite long an ...
  Topic: Best configuration for the SPI to work with a SD card
nacho72

Replies: 13
Views: 21690

PostForum: General CCS C Discussion   Posted: Sat Nov 29, 2014 12:56 pm   Subject: Best configuration for the SPI to work with a SD card
I know I know, that is why I asked you if I have to change to 400000

The thing is, I have read before that the proper way to do the initialization was by slowing down the baudrate -so exactly the ...
  Topic: Best configuration for the SPI to work with a SD card
nacho72

Replies: 13
Views: 21690

PostForum: General CCS C Discussion   Posted: Sat Nov 29, 2014 11:50 am   Subject: Best configuration for the SPI to work with a SD card
Thank you, so I will set mode 0.

Some questions about what you just said in your last comment.

The mmc_init code will loop clocking for ever, if mmc_go_idle_state returns 1.

I though we expe ...
  Topic: Best configuration for the SPI to work with a SD card
nacho72

Replies: 13
Views: 21690

PostForum: General CCS C Discussion   Posted: Fri Nov 28, 2014 7:03 am   Subject: Best configuration for the SPI to work with a SD card
Thanks for your answers, but besides there may exist a problem with the SD card, I think I'm programming something badly.

It is the first time I work with mmcsd, but as I read, the pic regardless o ...
  Topic: Best configuration for the SPI to work with a SD card
nacho72

Replies: 13
Views: 21690

PostForum: General CCS C Discussion   Posted: Thu Nov 27, 2014 12:38 pm   Subject: Best configuration for the SPI to work with a SD card
I tested both codes with a 2Gb and a 8Gb
  Topic: Best configuration for the SPI to work with a SD card
nacho72

Replies: 13
Views: 21690

PostForum: General CCS C Discussion   Posted: Thu Nov 27, 2014 12:25 pm   Subject: Best configuration for the SPI to work with a SD card
Hi, yes there are 4 pull up resistors, one in each line.

The first configuration is basically the codes given CCS. That is:

ex_fat.c
fat.c
mmcsd.c

I tested to write/read a file, and it did ...
  Topic: Best configuration for the SPI to work with a SD card
nacho72

Replies: 13
Views: 21690

PostForum: General CCS C Discussion   Posted: Thu Nov 27, 2014 11:55 am   Subject: Best configuration for the SPI to work with a SD card
Hi!

I'm having problems to set properly the configuration of the SPI port to communicate with a SD card. I have read lot's of post in this forum about the topic, and I tried several of the recommen ...
  Topic: Problems with INT_RDA. PIC 16F877.
nacho72

Replies: 16
Views: 28946

PostForum: General CCS C Discussion   Posted: Tue Oct 21, 2014 1:37 pm   Subject: Problems with INT_RDA. PIC 16F877.
But Ttelmah, that is for another interrupt, that one is to detect if the buttons have been pressed (and which one).

But below that I wrote the UART interruption, and it is as short as possible.
...
  Topic: Problems with INT_RDA. PIC 16F877.
nacho72

Replies: 16
Views: 28946

PostForum: General CCS C Discussion   Posted: Tue Oct 21, 2014 11:54 am   Subject: Problems with INT_RDA. PIC 16F877.
Hi,

Well I was reading several posts, trying the solutions they give and changing my code. But I still can't solve something as easy as triggering the INT_RDA several times.

The program goes in ...
  Topic: Problems with INT_RDA. PIC 16F877.
nacho72

Replies: 16
Views: 28946

PostForum: General CCS C Discussion   Posted: Tue Oct 21, 2014 9:38 am   Subject: Problems with INT_RDA. PIC 16F877.
Thank you very much to all of you for your effort and recommendations. I will follow all of them and test them before posting a new version of my code.

But I would like to add something else I foun ...
  Topic: Problems with INT_RDA. PIC 16F877.
nacho72

Replies: 16
Views: 28946

PostForum: General CCS C Discussion   Posted: Tue Oct 21, 2014 7:20 am   Subject: Problems with INT_RDA. PIC 16F877.
Hello Gabriel,

I think I just understood why you mean with printing outside of the ISR.

Do you mean, in the if clause, make a call to another method, for example DoPrint(). And in DoPrint() make ...
  Topic: Problems with INT_RDA. PIC 16F877.
nacho72

Replies: 16
Views: 28946

PostForum: General CCS C Discussion   Posted: Tue Oct 21, 2014 7:16 am   Subject: Problems with INT_RDA. PIC 16F877.
Hello Gabriel,

Uhm I'm not sure how else can I print the information. I read for the UART the easiest way is using a stream.

And yes, as you said I was planning to add a Bluetooth module here, b ...
  Topic: Problems with INT_RDA. PIC 16F877.
nacho72

Replies: 16
Views: 28946

PostForum: General CCS C Discussion   Posted: Tue Oct 21, 2014 5:34 am   Subject: Problems with INT_RDA. PIC 16F877.
Hello,

I'm trying to send and receive data using the UART of my PIC16F877, through the pins RC7 and RC6. To do so I designed a circuit, where the user can press 3 different buttons, generating a di ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group