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 78 matches
CCS Forum Index
Author Message
  Topic: Returning a string from a function
sjharris

Replies: 5
Views: 9966

PostForum: General CCS C Discussion   Posted: Tue Aug 16, 2011 8:53 am   Subject: Returning a string from a function
Hopefully this will help??


/********************************************************************
*
*
*********************************************************************
* Scope:- ...
  Topic: Returning a string from a function
sjharris

Replies: 5
Views: 9966

PostForum: General CCS C Discussion   Posted: Tue Aug 16, 2011 7:54 am   Subject: Returning a string from a function
Hello all,

I am passing a string to a function and doing some operation on that string. Basically I am stripping out strings within the original string. Using a comma separation, I pass the strin ...
  Topic: PIC to SD Card
sjharris

Replies: 17
Views: 38721

PostForum: General CCS C Discussion   Posted: Thu Aug 11, 2011 9:31 am   Subject: PIC to SD Card
I have found that in sector 0x18 the files have their lengths in bytes stored as here
http://www.ecgf.uakron.edu/grover/web/ee470/labs/SDCardMap.pdf
I have managed to read this whole sector into the ...
  Topic: PIC to SD Card
sjharris

Replies: 17
Views: 38721

PostForum: General CCS C Discussion   Posted: Thu Aug 11, 2011 7:37 am   Subject: PIC to SD Card
I have just checked using Hexedit. The bytes appear as they should !!
But taking this one step further I have formatted the card, created a text file and found the start sector for the file. Multip ...
  Topic: PIC to SD Card
sjharris

Replies: 17
Views: 38721

PostForum: General CCS C Discussion   Posted: Thu Aug 11, 2011 5:13 am   Subject: PIC to SD Card
Success,

I have successfully ( I think ) written the the SD Card. Problem now is how to get the data off the card. I would like to write some custom VB code to read the raw data from the card. D ...
  Topic: PIC to SD Card
sjharris

Replies: 17
Views: 38721

PostForum: General CCS C Discussion   Posted: Mon Jul 04, 2011 4:20 am   Subject: PIC to SD Card
Have used an OR gate to raise the level back to 5V for the PIC. This is the output from the OR gate when I send the mmc_spi init command (DO line on top for reference)

http://i1143.photobucket.com ...
  Topic: PIC to SD Card
sjharris

Replies: 17
Views: 38721

PostForum: General CCS C Discussion   Posted: Thu Jun 30, 2011 3:07 am   Subject: PIC to SD Card
Hi,

Pull up added to DO line (from SD Card). Data now seen on pic pin (but no response yet) probably difference in voltage, would a Transistor switch work, I understand the SPI bus can operate at ...
  Topic: PIC to SD Card
sjharris

Replies: 17
Views: 38721

PostForum: General CCS C Discussion   Posted: Wed Jun 29, 2011 3:35 pm   Subject: PIC to SD Card
Nt quite sure I follow you 100%, are you saying I need the level conversion from 3.3V SD card to 5V pic before the card will transmit anything? I am not getting anything from the card (3.3V from the S ...
  Topic: PIC to SD Card
sjharris

Replies: 17
Views: 38721

PostForum: General CCS C Discussion   Posted: Wed Jun 29, 2011 1:36 am   Subject: PIC to SD Card
Granted,
A level conversion would be required, but have probed on the output (from SD Card) line and there is not even 3.3 V there, so level conversion will not work.

Do my scope output even look ...
  Topic: PIC to SD Card
sjharris

Replies: 17
Views: 38721

PostForum: General CCS C Discussion   Posted: Tue Jun 28, 2011 9:19 am   Subject: PIC to SD Card
Hello all,

I am trying to add an SD Card to my PIC design. I currently have a board with the correct voltage levels connected to to SD Card (3.3V) which are connected to pins C3,C4,C5 and B3 (I am ...
  Topic: XTEA encryption library with smartcard example
sjharris

Replies: 7
Views: 63698

PostForum: Code Library   Posted: Mon Dec 14, 2009 7:09 am   Subject: XTEA encryption library with smartcard example
I have tried this encryption on a PIC16F687 using the following:-
in encode and decode functions i have added

return data;

in my main

char testdata[8]={1,2,3,4,5,6,7,8};
c ...
  Topic: Inverting X / Y on GLCD
sjharris

Replies: 0
Views: 2978

PostForum: General CCS C Discussion   Posted: Mon Nov 09, 2009 9:33 am   Subject: Inverting X / Y on GLCD
I have managed to get my GLCD working 80x32 lines Bolymin, with graphics and custom alphabets etc.
I would like to know if it is possible to invert the X and Y lines for the LCD. Basically I would ...
  Topic: GLCD - S6B1713 chip
sjharris

Replies: 13
Views: 17854

PostForum: General CCS C Discussion   Posted: Fri Oct 02, 2009 3:44 am   Subject: GLCD - S6B1713 chip
OK, so now I have put a scope on the Data and RS lines. I know that the data is being clocked into the LCD and that the RS is correct, low for command high for data. I see this happening on the scre ...
  Topic: GLCD - S6B1713 chip
sjharris

Replies: 13
Views: 17854

PostForum: General CCS C Discussion   Posted: Thu Oct 01, 2009 2:37 am   Subject: GLCD - S6B1713 chip
I know I can write commands to the screen because I am able to change the contrast of the rectangle that is displayed. But I cannot send data to the screen.
I have set the initial line to 0x40, set ...
  Topic: GPS Precision
sjharris

Replies: 7
Views: 8360

PostForum: General CCS C Discussion   Posted: Tue Sep 29, 2009 6:39 am   Subject: GPS Precision
What does your code output?
How does your code know when it has a string to read from your serial port?
Are there any other serial messages sent from your GPS device?
 
Page 1 of 6 Goto page 1, 2, 3, 4, 5, 6  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group