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 28 matches
CCS Forum Index
Author Message
  Topic: Math question
Marttyn

Replies: 22
Views: 98871

PostForum: General CCS C Discussion   Posted: Fri Apr 17, 2020 1:24 am   Subject: Math question
I'm sure there should be some information out there already.
But I could buy a beer for Ttelmah (or other) for such a sticky topic. Very Happy
  Topic: Math question
Marttyn

Replies: 22
Views: 98871

PostForum: General CCS C Discussion   Posted: Wed Apr 15, 2020 3:24 pm   Subject: Math question
Immediately, unless for some reason interrupts are disabled.

This is where 'scaled integers' come in very useful.

Have a look in the manual 'common questions and answers'. 'How much time do math ...
  Topic: CCS and MPLAB X code highlighting with conditional compiling
Marttyn

Replies: 7
Views: 21562

PostForum: General CCS C Discussion   Posted: Mon Apr 13, 2020 4:12 pm   Subject: CCS and MPLAB X code highlighting with conditional compiling
Don't know where I've learned (and later forgot) that variables and constants can not start with a number... Maybe in VB?
Anyway, CCS still does not accept it. You can try it and you will get an erro ...
  Topic: CCS and MPLAB X code highlighting with conditional compiling
Marttyn

Replies: 7
Views: 21562

PostForum: General CCS C Discussion   Posted: Mon Apr 13, 2020 12:22 pm   Subject: CCS and MPLAB X code highlighting with conditional compiling
Solved Embarassed
Glad to find the solution, but ashamed for such a lame mistake...
Ive been carring with this problem for years
  Topic: CCS and MPLAB X code highlighting with conditional compiling
Marttyn

Replies: 7
Views: 21562

PostForum: General CCS C Discussion   Posted: Mon Apr 13, 2020 11:48 am   Subject: CCS and MPLAB X code highlighting with conditional compiling
MY FAULT, KEEP THIS AS A GUIDE TO WHAT YOU CAN DO, AND WHAT YOU CANT. THERE IS NO SUCH PROBLEM! READ IF YOU WANT, THE SOLUTION IS AT THE END.

Hi!
Ive been using CCS and MPLAB X together for a long ...
  Topic: Avoid brownout after PIC programming
Marttyn

Replies: 8
Views: 21320

PostForum: General CCS C Discussion   Posted: Mon Mar 30, 2020 12:29 pm   Subject: Avoid brownout after PIC programming
Ok, I'm giving up. I've found alternate solution. Not proud, but works.
My problem was that communication was not quite working after initialization. And the data sent over TX pin was corrupt, at lea ...
  Topic: Avoid brownout after PIC programming
Marttyn

Replies: 8
Views: 21320

PostForum: General CCS C Discussion   Posted: Mon Mar 30, 2020 9:53 am   Subject: Avoid brownout after PIC programming
As far as I'm able to check with a pocket oscilloscope and "hand probing" i don't see any real brownout.

From the multiple possibilities of a startup, its quite difficult to differentiate ...
  Topic: Avoid brownout after PIC programming
Marttyn

Replies: 8
Views: 21320

PostForum: General CCS C Discussion   Posted: Mon Mar 30, 2020 3:04 am   Subject: Avoid brownout after PIC programming
During confinement will be difficult, but not impossible. I will try to check if a brownout is really happening.
But I'm powering the circuit from external power supply, so this should not be the cas ...
  Topic: Avoid brownout after PIC programming
Marttyn

Replies: 8
Views: 21320

PostForum: General CCS C Discussion   Posted: Mon Mar 30, 2020 2:50 am   Subject: Avoid brownout after PIC programming
Thanks!
Looked at the errata of 12F1840, but seems not to have problems with restart cause.
When checking STATUS and PCON register, first instruction of all, it also seems that a brownout occurred. ...
  Topic: Avoid brownout after PIC programming
Marttyn

Replies: 8
Views: 21320

PostForum: General CCS C Discussion   Posted: Fri Mar 27, 2020 7:09 am   Subject: Avoid brownout after PIC programming
Hi!
My program check the restart cause so it can resume program in case it was due to a brownout restart.
Programming the PIC (with PICKIT 4) cause the PIC to report a brownout restart just after pr ...
  Topic: How to know if I'm using serial com?
Marttyn

Replies: 21
Views: 65504

PostForum: General CCS C Discussion   Posted: Wed Feb 05, 2020 6:42 am   Subject: How to know if I'm using serial com?
Thanks for all the help provided!
This is one of my libraries that will benefit from the lessons learned here Smile
http://www.ccsinfo.com/forum/viewtopic.php?p=228035
  Topic: FASTER I2C external EEPROM writing library!
Marttyn

Replies: 0
Views: 22682

PostForum: Code Library   Posted: Wed Feb 05, 2020 6:40 am   Subject: FASTER I2C external EEPROM writing library!
Hi!
Ive been working on a project that needs to write to an external EEPROM, and then continue doing "stuff" very quickly. The problem for me was not the time from write to write (usually 5 ...
  Topic: How to know if I'm using serial com?
Marttyn

Replies: 21
Views: 65504

PostForum: General CCS C Discussion   Posted: Fri Jan 31, 2020 4:26 am   Subject: How to know if I'm using serial com?
In your post earlier in this topic, you showed an example using 'RS232'.
http://www.ccsinfo.com/forum/viewtopic.php?t=58490&start=5
I was just trying to give you what you wanted.


Oh, i was ...
  Topic: How to know if I'm using serial com?
Marttyn

Replies: 21
Views: 65504

PostForum: General CCS C Discussion   Posted: Thu Jan 30, 2020 9:32 am   Subject: How to know if I'm using serial com?
Noted! Put ERRORS in the #use RS232 Very Happy
Anyway, ive never found any problems with it. But next time could be "the one".

As said in previous post, checking for "STDOUT" wor ...
  Topic: How to know if I'm using serial com?
Marttyn

Replies: 21
Views: 65504

PostForum: General CCS C Discussion   Posted: Thu Jan 30, 2020 6:05 am   Subject: How to know if I'm using serial com?
I don't understand this:
#define RS232 definedinc(STDOUT)
Benefits of define this instead of directly using it?

And also its not needed ERRORS:
#use rs232(UART1, baud=9600, ERRORS)

Pr ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group