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: PCD (PIC24F) UART receive ISR question
Oesterling

Replies: 13
Views: 22374

PostForum: General CCS C Discussion   Posted: Tue Mar 15, 2016 8:24 pm   Subject: PCD (PIC24F) UART receive ISR question
Your are correct (again) Ttelmah. My default stack size was only 128 bytes.

I got the 256 byte size idea from the CCS docs: "STACK configures the range (start and end locations) used for the ...
  Topic: PCD (PIC24F) UART receive ISR question
Oesterling

Replies: 13
Views: 22374

PostForum: General CCS C Discussion   Posted: Tue Mar 15, 2016 1:26 pm   Subject: PCD (PIC24F) UART receive ISR question
Hi jeremiah. I was just doing a sprintf of a float (32 bits) to a string along with some very simple URT ISR receiver code. Increasing the stack from 256 to 512 bytes fixed the problem.
  Topic: PCD (PIC24F) UART receive ISR question
Oesterling

Replies: 13
Views: 22374

PostForum: General CCS C Discussion   Posted: Mon Mar 14, 2016 6:08 pm   Subject: PCD (PIC24F) UART receive ISR question
Ttelmah you were 100% correct that it was a stack overflow issue. The problem went away when I increased the stack size. It’s interesting that one sprintf and a simple UART receive ISR function co ...
  Topic: PCD (PIC24F) UART receive ISR question
Oesterling

Replies: 13
Views: 22374

PostForum: General CCS C Discussion   Posted: Mon Mar 14, 2016 7:51 am   Subject: PCD (PIC24F) UART receive ISR question
Hey Ttelmah thanks to you and everyone for the feedback. I confirmed that the ISR fires after every received byte (this is the default). My ISR code is very quick. All it does is update a rolling b ...
  Topic: PCD (PIC24F) UART receive ISR question
Oesterling

Replies: 13
Views: 22374

PostForum: General CCS C Discussion   Posted: Sun Mar 13, 2016 5:46 pm   Subject: PCD (PIC24F) UART receive ISR question
Thanks PCM programmer for the link. It looks like I'm handing the ISR correctly. Smile
  Topic: PCD (PIC24F) UART receive ISR question
Oesterling

Replies: 13
Views: 22374

PostForum: General CCS C Discussion   Posted: Sat Mar 12, 2016 9:55 pm   Subject: PCD (PIC24F) UART receive ISR question
Thanks the quick reply asmboy. I completely understand what you are saying and trust me I've never pulled more than one char at a time from int_rda in my PIC18F products but the way I interpret the d ...
  Topic: PCD (PIC24F) UART receive ISR question
Oesterling

Replies: 13
Views: 22374

PostForum: General CCS C Discussion   Posted: Sat Mar 12, 2016 4:28 pm   Subject: PCD (PIC24F) UART receive ISR question
Hi guys.

Is this an effective way to handle the 4 deep FIFO receive data buffer ISR on a PIC24F? I know about URXISL <1:0>but even set to 00 more than one byte can be in the receive buffer (I ...
  Topic: f_PICtoIEEE in ieeefloat.c question
Oesterling

Replies: 10
Views: 16732

PostForum: General CCS C Discussion   Posted: Wed Mar 09, 2016 3:49 pm   Subject: f_PICtoIEEE in ieeefloat.c question
Yeah I got it. Well I certainly appreciate your wisdom. Many thanks.
  Topic: f_PICtoIEEE in ieeefloat.c question
Oesterling

Replies: 10
Views: 16732

PostForum: General CCS C Discussion   Posted: Wed Mar 09, 2016 1:00 pm   Subject: f_PICtoIEEE in ieeefloat.c question
Oh snap. Yes I am using a 24F chip and no I was not aware that for PCD IEEE is the standard format for floats. In my defense I saw the PCD conversion functions in ieeefloat.c and assumed I needed to ...
  Topic: f_PICtoIEEE in ieeefloat.c question
Oesterling

Replies: 10
Views: 16732

PostForum: General CCS C Discussion   Posted: Tue Mar 08, 2016 7:16 pm   Subject: f_PICtoIEEE in ieeefloat.c question
I really think I have the code correct now but I am getting 0's! grrrr!

OUTPUT RESULTS: source.fver:98.59 ...
  Topic: f_PICtoIEEE in ieeefloat.c question
Oesterling

Replies: 10
Views: 16732

PostForum: General CCS C Discussion   Posted: Tue Mar 08, 2016 9:56 am   Subject: f_PICtoIEEE in ieeefloat.c question
Ah the power of the union statement.

You're awesome. Thanks Ttelmah!

- Chris
  Topic: f_PICtoIEEE in ieeefloat.c question
Oesterling

Replies: 10
Views: 16732

PostForum: General CCS C Discussion   Posted: Mon Mar 07, 2016 9:28 pm   Subject: f_PICtoIEEE in ieeefloat.c question
Thanks for the reply newguy. I'm glad it's a bug and I'm not totally crazy but I still get the following result:

myFloat: 0.00

With my code:

int32 ieeeValue;
float32 myFloat;

ieeeValu ...
  Topic: f_PICtoIEEE in ieeefloat.c question
Oesterling

Replies: 10
Views: 16732

PostForum: General CCS C Discussion   Posted: Mon Mar 07, 2016 5:24 pm   Subject: f_PICtoIEEE in ieeefloat.c question
Hi guys. I'm embarrassed to ask this but I need a sanity check regarding ieeefloat.c. I must be looking at this wrong. I’m using version 5.027 of the PCD compiler. Can you tell me why f_PICtoIEE ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group