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 24 matches
CCS Forum Index
Author Message
  Topic: CCS C Compiler editor collapse/expand
towpew

Replies: 5
Views: 22019

PostForum: General CCS C Discussion   Posted: Mon Jan 11, 2021 7:58 am   Subject: CCS C Compiler editor collapse/expand
On the IDE, completely normal. There is nowhere for the collapse
information to actually be 'stored'. The project does not contain this.
It is just a 'utility' ability to make it easier to work wit ...
  Topic: CCS C Compiler editor collapse/expand
towpew

Replies: 5
Views: 22019

PostForum: General CCS C Discussion   Posted: Mon Jan 11, 2021 7:56 am   Subject: CCS C Compiler editor collapse/expand
Compiler? Did you mean the IDE?
Are you using MPLAB IDE or CCS IDE?

I mean the CCS IDE
  Topic: CCS C Compiler editor collapse/expand
towpew

Replies: 5
Views: 22019

PostForum: General CCS C Discussion   Posted: Sun Jan 10, 2021 1:04 pm   Subject: CCS C Compiler editor collapse/expand
There are squares with + and - in the left margin.

I use them to collapse and expand code functions.

However every time I open up the Compiler again, all my collapsed
code are expanded again. ...
  Topic: BME280 debug output help / now error on PIC24
towpew

Replies: 37
Views: 75272

PostForum: General CCS C Discussion   Posted: Sun Jan 10, 2021 12:57 pm   Subject: BME280 debug output help / now error on PIC24
Good. Smile

I've made that my 'default' since I started using the PIC24/33 chips.
Anything that is used for handling a 'value' being read in from a device, and
wants 8 bit storage, instead of using ...
  Topic: BME280 debug output help / now error on PIC24
towpew

Replies: 37
Views: 75272

PostForum: General CCS C Discussion   Posted: Thu Jan 07, 2021 12:20 pm   Subject: Re: Hurray PIC24 BME280 error looks be solved
Personally I'd just change all references to 'char' to 'byte'. I've found this
to be the simplest thing. Only use 'char'' for things that are text. For all
things that want a 8bit integer and to wor ...
  Topic: BME280 debug output help / now error on PIC24
towpew

Replies: 37
Views: 75272

PostForum: General CCS C Discussion   Posted: Wed Jan 06, 2021 11:04 am   Subject: Hurray PIC24 BME280 error looks be solved
Personally I'd just change all references to 'char' to 'byte'. I've found this
to be the simplest thing. Only use 'char'' for things that are text. For all
things that want a 8bit integer and to wor ...
  Topic: BME280 debug output help / now error on PIC24
towpew

Replies: 37
Views: 75272

PostForum: General CCS C Discussion   Posted: Mon Jan 04, 2021 2:05 pm   Subject: BME280 debug output help / now error on PIC24
I am on to this now with CCS

BR
PW
  Topic: BME280 debug output help / now error on PIC24
towpew

Replies: 37
Views: 75272

PostForum: General CCS C Discussion   Posted: Mon Jan 04, 2021 12:55 pm   Subject: Tested on dsPIC30F4011 now
Tested on dsPIC30F4011 now with the same error

DEBUG data

bme280_get_humidity() 80 0 0 81 17 A0 77 68
_comp_t -61010 0 -139830 -6991500
_bme280_compensate_T_int32(-519814) 9410 481807 482233 ...
  Topic: BME280 debug output help / now error on PIC24
towpew

Replies: 37
Views: 75272

PostForum: General CCS C Discussion   Posted: Mon Jan 04, 2021 11:40 am   Subject: BME280 debug output help / now error on PIC24
No, the driver is recent enough that it was almost certainly written to support
the 16bt PIC's as well. There is nothing in it that looks as if it'd cause issues
on these chips.
Post what you are ...
  Topic: BME280 debug output help / now error on PIC24
towpew

Replies: 37
Views: 75272

PostForum: General CCS C Discussion   Posted: Mon Jan 04, 2021 10:13 am   Subject: BME280 debug output help / now error on PIC24
There is a critical thing.

You need to make a point of using unsigned on the PIC24.

On PIC12/16/18, the default 'int', is a unsigned int8. In the PIC24/33, it is a
signed int16. Now this affec ...
  Topic: BME280 debug output help / now error on PIC24
towpew

Replies: 37
Views: 75272

PostForum: General CCS C Discussion   Posted: Mon Jan 04, 2021 7:19 am   Subject: BME280 debug output help / now error on PIC24
Those resistors are too large.

4K7, is an 'OK' resistor for a 5V I2C bus, going just to a local device. So
ideal for example to connect to a clock chip or something similar, on a 5v
PIC. The res ...
  Topic: BME280 debug output help / now error on PIC24
towpew

Replies: 37
Views: 75272

PostForum: General CCS C Discussion   Posted: Sun Jan 03, 2021 1:34 pm   Subject: BME280 debug output help / now error on PIC24
What are your pull up resistor values?.

They are on the sensor board and is 4K7. I have also other boards with 10K.

Both works on the PIC18 version.

I have noticed so far 1 difference with ...
  Topic: BME280 debug output help / now error on PIC24
towpew

Replies: 37
Views: 75272

PostForum: General CCS C Discussion   Posted: Sun Jan 03, 2021 9:17 am   Subject: BME280 debug output help / now error on PIC24
Try specifying the clock rate. So FAST=400000.
I have seen the PIC24 drivers sometimes 'push' the clock rates higher
than chips like.

I have tried that, same result. I have tested other speeds al ...
  Topic: BME280 debug output help / now error on PIC24
towpew

Replies: 37
Views: 75272

PostForum: General CCS C Discussion   Posted: Sun Jan 03, 2021 6:03 am   Subject: BME280 error reading on PIC24
First thanks for the switch stream code Ttelmah.

I have another problem now and that is that the latest driver I have got from CCS is not working any good for my PIC24FJ256GB406.

I got mostly er ...
  Topic: BME280 debug output help / now error on PIC24
towpew

Replies: 37
Views: 75272

PostForum: General CCS C Discussion   Posted: Sat Dec 26, 2020 3:33 am   Subject: BME280 debug output help / now error on PIC24
Just change a variable defining the stream.

So have the first bus called STREAM_I2C_BME280, and the second
STREAM_I2C3_BME280

Then have a int16 variable 'called BME_i2c_stream. Use this variabl ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group