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 59 matches
CCS Forum Index
Author Message
  Topic: my PWM problem
mvaraujo

Replies: 7
Views: 18219

PostForum: General CCS C Discussion   Posted: Thu Mar 17, 2005 7:02 am   Subject: my PWM problem
Hi giberon,

Examples presented by PCM programmer represent very well what I mentioned. Study them and you'll get a way to generate software PWM. One example uses a 8bit (RTCC, TMR0) counter but it ...
  Topic: my PWM problem
mvaraujo

Replies: 7
Views: 18219

PostForum: General CCS C Discussion   Posted: Wed Mar 16, 2005 2:18 pm   Subject: my PWM problem
Hi!

I would calculate like this:

1) Consider the PWM period that you need, the Tosc and calculate the prescaler that goes near to the result (if there is one, it can happen to be impossible to m ...
  Topic: Float division with two int16
mvaraujo

Replies: 12
Views: 21089

PostForum: General CCS C Discussion   Posted: Wed Mar 16, 2005 12:57 pm   Subject: Float division with two int16
Hi Matt,

Thanks for the reference!

I was just kidding with my last message. We're all learning, right? At least in different levels!

Take care!

Marcus
  Topic: Float division with two int16
mvaraujo

Replies: 12
Views: 21089

PostForum: General CCS C Discussion   Posted: Wed Mar 16, 2005 12:37 pm   Subject: Float division with two int16
I don't know if you "guest" intended to expose my ignorance on C but I can say that your damn right! Surprised

I started working on uc assembly, went to C compilers to make some things easier but I'm ...
  Topic: Float division with two int16
mvaraujo

Replies: 12
Views: 21089

PostForum: General CCS C Discussion   Posted: Wed Mar 16, 2005 12:17 pm   Subject: Float division with two int16
Hi SherpaDoug,

Really? I don't work very often with floats on PIC.

So what do you suggest?

Best regards,

Marcus
  Topic: Float division with two int16
mvaraujo

Replies: 12
Views: 21089

PostForum: General CCS C Discussion   Posted: Wed Mar 16, 2005 11:41 am   Subject: Float division with two int16
Bruno,

I don't have the compiler here to test up, but try to:


Time = (float) Capacity/current;


It'll force data casting before calculating.

Best regards,

Marcus
  Topic: float printing BUG workaround
mvaraujo

Replies: 25
Views: 42538

PostForum: General CCS C Discussion   Posted: Wed Mar 16, 2005 11:33 am   Subject: float printing BUG workaround
Kyle,

Out of the compiler discussion, is it really necessary going for float on the code?

I always keep it as simplest integer and use integer operations to get decimal parts.

It goes quick ...
  Topic: Tutorial on CCS-PCH for MPLAB IDE v7.01
mvaraujo

Replies: 1
Views: 5247

PostForum: General CCS C Discussion   Posted: Mon Feb 28, 2005 2:38 pm   Subject: Tutorial on CCS-PCH for MPLAB IDE v7.01
Consider taking a look on the example files that come with CCS. See also help files for CCS and MPLAB.

Using CCS inside MPLAB is relatively straight forward.

Marcus
  Topic: SQRT of an 32bit integer
mvaraujo

Replies: 4
Views: 49747

PostForum: Code Library   Posted: Tue Nov 30, 2004 12:36 pm   Subject: SQRT of an 32bit integer
treitmey,

Did you have opportunity to check it out?

Sorry, I've posted there, but here is the place for it. When I logged in to post the code, you already did.

Marcus
  Topic: square roots to the nearest integer, without floating point
mvaraujo

Replies: 3
Views: 10085

PostForum: General CCS C Discussion   Posted: Tue Nov 30, 2004 7:56 am   Subject: SQRT of an 32bit integer, posting code.
Hi All,

This message chain is old but I decided to post this code because it is pretty simple and can help other people that need to square a 32bit integer. It's small and fast, the best I've found ...
  Topic: 18F452 ADC Stops
mvaraujo

Replies: 3
Views: 8183

PostForum: General CCS C Discussion   Posted: Mon Nov 08, 2004 1:20 pm   Subject: 18F452 ADC Stops
Yep, Ttelmah is right!

Consider using timer interrupt only to set a flag informing that it's time to convert and keep the AD state machine on the main loop.

Respect the time to charge internal ...
  Topic: Problem with WRTD Fuse
mvaraujo

Replies: 4
Views: 8765

PostForum: General CCS C Discussion   Posted: Mon Nov 08, 2004 1:16 pm   Subject: Problem with WRTD Fuse
What do you mean with external write? Removing the chip and programming externally?
  Topic: How to write 16bit using WRITE_EXT_EEPROM( address, value );
mvaraujo

Replies: 3
Views: 9402

PostForum: General CCS C Discussion   Posted: Wed Oct 06, 2004 11:28 am   Subject: How to write 16bit using WRITE_EXT_EEPROM( address, value );
You can save two bytes in sequence! One in each address!
  Topic: I2C slave address - Choosing address for a slave
mvaraujo

Replies: 3
Views: 8763

PostForum: General CCS C Discussion   Posted: Tue Oct 05, 2004 11:01 am   Subject: I2C slave address - Choosing address for a slave
Ronald,

That's exactly what I did before! Considering that few ranges that are reserved (0000xx, 1111xxxx, etc) you would take any number, right?

I understand the issue involving the R/W LSB bit ...
  Topic: I2C slave address - Choosing address for a slave
mvaraujo

Replies: 3
Views: 8763

PostForum: General CCS C Discussion   Posted: Tue Oct 05, 2004 10:49 am   Subject: I2C slave address - Choosing address for a slave
Hi!

How do you guys choose addresses for your I2C slave devices?

I have a situation that I'm communicating some different circuit boards using I2C (they are different PWBs but, they are inside ...
 
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