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 18 matches
CCS Forum Index
Author Message
  Topic: What can corrupt a Hex file?
Jeetdesai

Replies: 3
Views: 12365

PostForum: General CCS C Discussion   Posted: Tue Mar 10, 2020 4:58 pm   Subject: What can corrupt a Hex file?
When I make a project in the CCSC software, I get the Hex file for the same when I compile the project.

When I email the Hex file as an attachment, the attachment downloads successfully on the rece ...
  Topic: Adding 8-bit integers and storing the result in an 8-bit int
Jeetdesai

Replies: 1
Views: 7669

PostForum: General CCS C Discussion   Posted: Fri Jan 11, 2019 11:58 am   Subject: Adding 8-bit integers and storing the result in an 8-bit int
If I add three 8-bit integers, how will the result be saved in an 8-bit integer.

Eg:

#use RS232(BAUD=9600, XMIT=PIN_B6, RCV=PIN_B7, FORCE_SW)

int8 high_byte = 200;
int8 low_byte = 15 ...
  Topic: Help with using the debug feature
Jeetdesai

Replies: 1
Views: 7772

PostForum: General CCS C Discussion   Posted: Wed Nov 07, 2018 12:05 pm   Subject: Help with using the debug feature
Is it possible to debug the code without using a 'ICD programmer' or simply no programmer connected at all?
All I want to do is put breakpoints in my code and see if the function is being executed or ...
  Topic: Is it possible to see EEPROM usage?
Jeetdesai

Replies: 6
Views: 15137

PostForum: General CCS C Discussion   Posted: Mon Aug 27, 2018 7:32 am   Subject: Is it possible to see EEPROM usage?
Thank You Ttelmah.
  Topic: Is it possible to see EEPROM usage?
Jeetdesai

Replies: 6
Views: 15137

PostForum: General CCS C Discussion   Posted: Fri Aug 24, 2018 9:35 pm   Subject: Is it possible to see EEPROM usage?
Thank You PCM for correcting me.

What if one of the addresses has 0F or C6? Is the whole address considered to be used? Or can I consider some of the bits in that address to be free?
  Topic: Is it possible to see EEPROM usage?
Jeetdesai

Replies: 6
Views: 15137

PostForum: General CCS C Discussion   Posted: Fri Aug 24, 2018 12:53 pm   Subject: Solved
Thank You Mike for the comments.


I first compiled my project in CCSC to make sure it didn't have any errors. I then made a new project in MPLABX. I made sure to pick the same PIC microcontroller ...
  Topic: Is it possible to see EEPROM usage?
Jeetdesai

Replies: 6
Views: 15137

PostForum: General CCS C Discussion   Posted: Fri Aug 24, 2018 9:15 am   Subject: Is it possible to see EEPROM usage?
I have a PIC16F917 with 256 bytes of EEPROM. The whole code is working fine, but I'd like to see how much of EEPROM is used. When I press the Statistics button, it leads me to a tab that gives details ...
  Topic: Help with SPI Master Slave code
Jeetdesai

Replies: 3
Views: 12164

PostForum: General CCS C Discussion   Posted: Wed Aug 15, 2018 5:04 pm   Subject: Solved

setup_spi(SPI_Slave | SPI_MODE_0 | SPI_CLK_DIV_64);


I removed the clock setting from the above command and its working fine.

So the updated command is

setup_spi(SPI_Slave | ...
  Topic: Help with SPI Master Slave code
Jeetdesai

Replies: 3
Views: 12164

PostForum: General CCS C Discussion   Posted: Wed Aug 15, 2018 4:24 pm   Subject: Help with SPI Master Slave code
I'm trying to send data from a PIC18 MCU
#include <18F87K22.h>
#use delay(crystal = 8000000)
#define LED1 PIN_J6
#define LED2 PIN_J7
#define SW1 PIN_J5
#define EN PI ...
  Topic: Help with SPI code for display
Jeetdesai

Replies: 5
Views: 16492

PostForum: General CCS C Discussion   Posted: Mon Jul 23, 2018 4:31 pm   Subject: Help with SPI code for display
Thank You PCM p, for the quick response.

Are you doing all of this ? Are you running your PIC at 3.3 volts ?

Yes, I am using a Voltage Translator to convert the 5v signals to 3.3v. So the PIC r ...
  Topic: Help with SPI code for display
Jeetdesai

Replies: 5
Views: 16492

PostForum: General CCS C Discussion   Posted: Mon Jul 23, 2018 4:03 pm   Subject: Help with SPI code for display
The following is the code for arduino:


////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Main File /////////////////////////////// ...
  Topic: Help with SPI code for display
Jeetdesai

Replies: 5
Views: 16492

PostForum: General CCS C Discussion   Posted: Mon Jul 23, 2018 3:41 pm   Subject: Help with SPI code for display
I am trying to interface the PIC18F87K22 with an OLED display using the SPI protocol. But I havn't been able to light any pixel on the display. The following is the link of the display that I'm using ...
  Topic: How to import a library from Arduino to CCSC?
Jeetdesai

Replies: 7
Views: 19850

PostForum: General CCS C Discussion   Posted: Wed Jul 18, 2018 10:58 am   Subject: How to import a library from Arduino to CCSC?
Thank you for the quick response Ttelmah.

I noticed the first link uses the I2C protocol. I'd like to use the SPI protocol.
Would you recommend to use the '#use spi' command or 'setup_spi()' comma ...
  Topic: How to import a library from Arduino to CCSC?
Jeetdesai

Replies: 7
Views: 19850

PostForum: General CCS C Discussion   Posted: Wed Jul 18, 2018 10:08 am   Subject: How to import a library from Arduino to CCSC?
My goal is to display Alphabets, Numbers and Shapes(rectangles, lines).

But even if I can get a code for lighting the entire screen[lighting every pixel], it would help me a lot.
  Topic: How to import a library from Arduino to CCSC?
Jeetdesai

Replies: 7
Views: 19850

PostForum: General CCS C Discussion   Posted: Wed Jul 18, 2018 10:05 am   Subject: How to import a library from Arduino to CCSC?
Tell us what display you want to use. Maybe we can find some CCS code
for it.

I'm using the 'CFAL12864G-024W' display. The following is the link: https://www.crystalfontz.com/product/cfal12864g02 ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group