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 49 matches
CCS Forum Index
Author Message
  Topic: 16F88 - multiple variables with same name
theMagni

Replies: 2
Views: 5094

PostForum: General CCS C Discussion   Posted: Mon Oct 03, 2005 5:43 pm   Subject: 16F88 - multiple variables with same name
Okay, this one is interesting.

We've had some periodic lockups on one of our boards. After looking over everything, I found that I had managed to do something so amazing that I had to share and get ...
  Topic: can watch dog wake up a processor during sleep?
theMagni

Replies: 11
Views: 13455

PostForum: General CCS C Discussion   Posted: Wed Jul 27, 2005 10:45 am   Subject: can watch dog wake up a processor during sleep?
Yes.

You'll have to read your datasheet to find out what the WDT is going to do. It's under "special features". Check both the WDT and SLEEP specs.

For example, the 16F88 wakes up the PIC and it ...
  Topic: 18F2420 EEPROM location
theMagni

Replies: 1
Views: 4708

PostForum: General CCS C Discussion   Posted: Mon Jul 18, 2005 4:56 pm   Subject: 18F2420 EEPROM location
We've been using the 16F88 and we're upgrading to the 18F2420. The EEPROM location in the 16F is at 0x2100, so the ROM command looks like this:

#ROM 0x2100 = { 0x00, 0x00, 0x00 }
#ROM 0x2108 = { 0 ...
  Topic: 16F628 to 16F88
theMagni

Replies: 11
Views: 15366

PostForum: General CCS C Discussion   Posted: Tue Jul 05, 2005 10:53 am   Subject: 16F628 to 16F88
Just a quick thought....

The 16F88 has built-in comparators, right? I'm pretty sure that they default to on. Have you disabled them?

They default to off. This is NOT accomplished by writing 0x ...
  Topic: setup_oscillator()
theMagni

Replies: 5
Views: 19770

PostForum: General CCS C Discussion   Posted: Wed Jun 29, 2005 12:47 pm   Subject: setup_oscillator()
To be honest, I dislike the setup_oscillator() function. I just have OSC_CON defined and have the settings I want #defined. That way, I know exactly what it's doing. This is on a 16F88 / 18F2420. (It' ...
  Topic: configuration word location in hex file
theMagni

Replies: 7
Views: 14909

PostForum: General CCS C Discussion   Posted: Mon May 02, 2005 3:50 pm   Subject: configuration word location in hex file
It's broken.

That's the only thing I've got to say about it. We're using the 10F20X for some of our work, and the problem is with the compiler. They said it was fixed in the most recent version, b ...
  Topic: rs232 hanging?
theMagni

Replies: 6
Views: 9197

PostForum: General CCS C Discussion   Posted: Mon Apr 04, 2005 4:42 pm   Subject: rs232 hanging?
I found that if I didn't put "errors" as one of the options, RS-232 would hang. When they upgraded the compiler, I found that I also had to put in "force_sw".

I hope that helps.
  Topic: int32 problems
theMagni

Replies: 6
Views: 9127

PostForum: General CCS C Discussion   Posted: Mon Apr 04, 2005 4:08 pm   Subject: int32 problems
Funnily enough, it didn't work until I used #type long=32. For some reason int32 just didn't cut it.

I wonder why.

Thanks for the advice on the union, though. That worked great.
  Topic: int32 problems
theMagni

Replies: 6
Views: 9127

PostForum: General CCS C Discussion   Posted: Mon Apr 04, 2005 10:17 am   Subject: int32 problems
I am surprise that you got anything past 7. Read the manual. Only bits 0-7 are valid. I guess the real question is what in the heck are you trying to do. Why do you need all of those bit definitio ...
  Topic: int32 problems
theMagni

Replies: 6
Views: 9127

PostForum: General CCS C Discussion   Posted: Fri Apr 01, 2005 6:54 pm   Subject: int32 problems
Maybe it's because it's 5 to 5 on a Friday, but I can't figure this out. I'm sure that I'll smack myself come Monday. (And not just because it's Monday.)

I'm using a 16F88, CCS v 3.222. I've got to ...
  Topic: To Brownout or not to brownout? That is the question!
theMagni

Replies: 5
Views: 11600

PostForum: General CCS C Discussion   Posted: Wed Mar 30, 2005 1:39 pm   Subject: To Brownout or not to brownout? That is the question!
I work on really low-power boards too. I've got the brownout disabled, but the MCLR is attached to a low-voltage detector chip. I'm not permitted to get into details, but you should be able to find a ...
  Topic: preseting eeprom
theMagni

Replies: 4
Views: 15187

PostForum: General CCS C Discussion   Posted: Tue Mar 29, 2005 6:26 pm   Subject: preseting eeprom
I do it all the time to load default values. Here's the relevant code for a 16F88. Note that the EEPROM starts at location 0x2100, so I have to add that offset to each location. (It seems to be the sa ...
  Topic: Zany 16F88 problem.
theMagni

Replies: 22
Views: 41055

PostForum: General CCS C Discussion   Posted: Fri Feb 18, 2005 11:48 am   Subject: Zany 16F88 problem.
Well, wow.

Where did you learn that? That's certainly a solution I couldn't have come up with. That's just... fantastic. Thank you very much. Can I send you some beer or something?

As for the PO ...
  Topic: 10F202 / MCLR
theMagni

Replies: 1
Views: 4810

PostForum: General CCS C Discussion   Posted: Thu Feb 17, 2005 6:12 pm   Subject: 10F202 / MCLR
This turned out to be a PEBKAS error. I just had to set the option register in assembly and it worked great.
  Topic: 10F202 / MCLR
theMagni

Replies: 1
Views: 4810

PostForum: General CCS C Discussion   Posted: Thu Feb 17, 2005 12:46 pm   Subject: 10F202 / MCLR
Hello, group:

I'm working with the 10F202. I'm using version 3.218 and the latest version of Quickwriter. Here's the problem:

The code I have written for the 10F has specifically turned off the ...
 
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