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 52 matches
CCS Forum Index
Author Message
  Topic: Fundamentals of #use spi versus setup_spi()
SkeeterHawk

Replies: 4
Views: 142

PostForum: General CCS C Discussion   Posted: Sat Apr 12, 2025 12:42 pm   Subject: Fundamentals of #use spi versus setup_spi()
There are a couple of other things here.
CCS always retain old functions, so you can still compile 'historical'
programs with the newer compilers.
Yes, and we hope that those functions will work w ...
  Topic: Why is my TXBE (Buffer Empty) flag not clearing?
SkeeterHawk

Replies: 7
Views: 334

PostForum: General CCS C Discussion   Posted: Tue Apr 08, 2025 3:08 pm   Subject: Reply from CCS Support
I got word back from CCS Support that there is indeed an issue with the spi_xfer() function when the PIC is a Slave. Here is what he had to say and the work-around he proposed for me:
I've done some ...
  Topic: Fundamentals of #use spi versus setup_spi()
SkeeterHawk

Replies: 4
Views: 142

PostForum: General CCS C Discussion   Posted: Tue Apr 08, 2025 3:02 pm   Subject: Fundamentals of #use spi versus setup_spi()
just a comment , while waiting for SPRING to arrive.....
Where I live, we jump through Spring and wind up in Summer for a few weeks, a week of fall, and back to winter. It is 55F outside right now. ...
  Topic: Fundamentals of #use spi versus setup_spi()
SkeeterHawk

Replies: 4
Views: 142

PostForum: General CCS C Discussion   Posted: Tue Apr 08, 2025 2:17 pm   Subject: Fundamentals of #use spi versus setup_spi()
It is understood that CCS is moving us programmers toward using the #use spi preprocessor over the "legacy" setup_spi() function, but the documentation is not clear on which function goes wi ...
  Topic: Why is my TXBE (Buffer Empty) flag not clearing?
SkeeterHawk

Replies: 7
Views: 334

PostForum: General CCS C Discussion   Posted: Tue Apr 08, 2025 12:20 pm   Subject: Why is my TXBE (Buffer Empty) flag not clearing?
I'm on holiday at the moment, so don't have much internet access.
Thanks for checking in while you are on holiday. Enjoy your time away!!

These are an area where CCS could do with improving the d ...
  Topic: Why is my TXBE (Buffer Empty) flag not clearing?
SkeeterHawk

Replies: 7
Views: 334

PostForum: General CCS C Discussion   Posted: Mon Apr 07, 2025 10:07 pm   Subject: Why is my TXBE (Buffer Empty) flag not clearing?
In the past when I did slave/client SPI, I used an interrupt to do it (don't see the #INT_XXX for that in your example),
You are right. I got a response from the CCS mentioning that same fact. I ju ...
  Topic: Why is my TXBE (Buffer Empty) flag not clearing?
SkeeterHawk

Replies: 7
Views: 334

PostForum: General CCS C Discussion   Posted: Mon Apr 07, 2025 12:08 pm   Subject: Still Testing...
Hello again, fellow programmers.

Still investigating this issue. I'm about to give up on the #use spi and spi_xfer() method of doing this and go back to the setup_spi() command or write my own aga ...
  Topic: Why is my TXBE (Buffer Empty) flag not clearing?
SkeeterHawk

Replies: 7
Views: 334

PostForum: General CCS C Discussion   Posted: Sun Apr 06, 2025 3:22 pm   Subject: Why is my TXBE (Buffer Empty) flag not clearing?
I've been "beating this horse" for far too long and it has generated a few threads on this forum as I have been working through this issue, but I am not sure where to go from here.

I have ...
  Topic: Generated Assembly General Question
SkeeterHawk

Replies: 4
Views: 327

PostForum: General CCS C Discussion   Posted: Sun Apr 06, 2025 3:16 pm   Subject: Generated Assembly General Question
tou're welcome...
somethings this old dinosaur remembers from the glory days of 16C84s and 15 minute coffee breaks while the UV eraser got rid of my mistakes......

LOL! I've still got my UV Erase ...
  Topic: Generated Assembly General Question
SkeeterHawk

Replies: 4
Views: 327

PostForum: General CCS C Discussion   Posted: Sun Apr 06, 2025 2:32 pm   Subject: Explanation of why the assembly works
Thank you for the reply, temtronic. I needed that "sanity check". You are absolutely right, and I am not sure why I didn't put this together myself, but I will explain it here in case it h ...
  Topic: Generated Assembly General Question
SkeeterHawk

Replies: 4
Views: 327

PostForum: General CCS C Discussion   Posted: Fri Apr 04, 2025 9:11 pm   Subject: Generated Assembly General Question
Hello yet again, everyone.

I am still trying to get to the bottom of my issue with the SPI communications and have been going through the generated assembly line by line.

My question is pretty s ...
  Topic: Buffer for spi_xfer?
SkeeterHawk

Replies: 10
Views: 1091

PostForum: General CCS C Discussion   Posted: Wed Apr 02, 2025 2:40 pm   Subject: Buffer for spi_xfer?
Something I just noticed is that TRISC is now 0xD8, so it made Bit #4 an input, like it was supposed to be, so fixing the state of the SS line fixed the tri-state setting of the DIN pin...go figure... ...
  Topic: Buffer for spi_xfer?
SkeeterHawk

Replies: 10
Views: 1091

PostForum: General CCS C Discussion   Posted: Wed Apr 02, 2025 2:31 pm   Subject: Buffer for spi_xfer?


#bit SSP = getenv("SFR:SPI1CON1").2



Thank you SOO much for the feedback, jeremiah!! The code above worked like a champ, and now SPI1CON1 is now 0x24 like it is suppos ...
  Topic: Buffer for spi_xfer?
SkeeterHawk

Replies: 10
Views: 1091

PostForum: General CCS C Discussion   Posted: Wed Apr 02, 2025 2:15 pm   Subject: Some notes on the status at this time
Hello everyone,

For documentations sake, I am making a note of where all this stuff is so it may help some of my programming brothers and sisters in the future. As the system compiles, here is how ...
  Topic: Buffer for spi_xfer?
SkeeterHawk

Replies: 10
Views: 1091

PostForum: General CCS C Discussion   Posted: Wed Apr 02, 2025 12:05 pm   Subject: Buffer for spi_xfer?
Knowing where the "Device Editor" is and what it does was a very helpful tip. Thank you again, Ttelmah!!

It still isn't working, and is now "dead as a doornail". Looking at th ...
 
Page 1 of 4 Goto page 1, 2, 3, 4  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group