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: 18F4431 - setup_timer_5() is not documented...
LloydSargent

Replies: 26
Views: 40695

PostForum: General CCS C Discussion   Posted: Mon Jun 14, 2004 1:15 pm   Subject: 18F4431 - setup_timer_5() is not documented...
I think you have put enough time into this. Mail your question to CCS, often you get a response within a day. Please post the answer you get here in the forum.

Sent it in Friday. Was hoping on an a ...
  Topic: 18F4431 - setup_timer_5() is not documented...
LloydSargent

Replies: 26
Views: 40695

PostForum: General CCS C Discussion   Posted: Mon Jun 14, 2004 12:27 pm   Subject: 18F4431 - setup_timer_5() is not documented...
Do you know there is a utility for setting the device configurations? It is called chipedit.exe and is located in the same directory as your compiler. I'm curious whether CCS has configured the PIC18F ...
  Topic: 18F4431 - setup_timer_5() is not documented...
LloydSargent

Replies: 26
Views: 40695

PostForum: General CCS C Discussion   Posted: Mon Jun 14, 2004 12:08 pm   Subject: 18F4431 - setup_timer_5() is not documented...
<drum roll>

Okay, here is the answer:

When using a 18F4431 attempting to use the function setup_timer_5() does not work.

What does work is setup_timer_4(mode, period, postscale)... Exce ...
  Topic: 18F4431 - setup_timer_5() is not documented...
LloydSargent

Replies: 26
Views: 40695

PostForum: General CCS C Discussion   Posted: Mon Jun 14, 2004 10:44 am   Subject: 18F4431 - setup_timer_5() is not documented...
The original question was whether the format of setup_timer_5() was the same as setup_timer_1(). Or something completely different?

The question was CORRECTLY phrased. It just never got an answer. ...
  Topic: Dumb-struct
LloydSargent

Replies: 4
Views: 10767

PostForum: General CCS C Discussion   Posted: Mon Jun 14, 2004 10:09 am   Subject: Dumb-struct
Okay, before you get too confused, HERE are the only valid ways to initialize the struct.

1ST


struct axisconsts
{
float offset;
float sense;
};

struct axisconsts x_axis= { ...
  Topic: Dumb-struct
LloydSargent

Replies: 4
Views: 10767

PostForum: General CCS C Discussion   Posted: Mon Jun 14, 2004 9:57 am   Subject: Dumb-struct
Hmm...

I tried it and it worked fine (not the answer you want to hear!).

Where do you have

x_axis.offset = 3.1459;
x_axis.sense = 2.71828;

In your code?

Cheers,

Lloyd
  Topic: 18F4431 - setup_timer_5() is not documented...
LloydSargent

Replies: 26
Views: 40695

PostForum: General CCS C Discussion   Posted: Mon Jun 14, 2004 9:49 am   Subject: 18F4431 - setup_timer_5() is not documented...
Ttelemah does not insult people.

I might, in a minor way, but he doesn't.

That may be your opinion. My opinion is that RTFM replies are insults, whether intended or not.

As a simple example, ...
  Topic: 18F4431 - setup_timer_5() is not documented...
LloydSargent

Replies: 26
Views: 40695

PostForum: General CCS C Discussion   Posted: Mon Jun 14, 2004 9:31 am   Subject: 18F4431 - setup_timer_5() is not documented...
Okay, here's what doesn't work:

setup_timer_5(T5_INTERNAL);
setup_timer5(T5_INTERNAL);
setuptimer_5(T5_INTERNAL);
setuptimer5(T5_INTERNAL);
setup_timer_3(T5_INTERNAL);
setup_timer3(T5_INTERNAL ...
  Topic: 18F4431 - setup_timer_5() is not documented...
LloydSargent

Replies: 26
Views: 40695

PostForum: General CCS C Discussion   Posted: Mon Jun 14, 2004 9:05 am   Subject: 18F4431 - setup_timer_5() is not documented...

What I posted was not an 'insult', but rather a general comment that applies to perhaps 30% of the posts here, and is because of the appalling way the CCS compiler is documented....
If you want to ...
  Topic: 18F4431 - setup_timer_5() is not documented...
LloydSargent

Replies: 26
Views: 40695

PostForum: General CCS C Discussion   Posted: Fri Jun 11, 2004 3:13 pm   Subject: 18F4431 - setup_timer_5() is not documented...

Try using

#byte reg. name = address
#bit name.bit

At this will avoid using assembly and will keep it more readable.
Good luck.

Well, I had hoped to use standard functions - but it ...
  Topic: 18F4431 - setup_timer_5() is not documented...
LloydSargent

Replies: 26
Views: 40695

PostForum: General CCS C Discussion   Posted: Fri Jun 11, 2004 3:10 pm   Subject: 18F4431 - setup_timer_5() is not documented...
Okay, let me be more explicit. The following does not compile:

setup_timer_5(T5_DIV_BY_8);

Does not compile - I get "Undefined identifier setup_timer_5"

setup_timer_5(T5_DIV_BY_8, 255, ...
  Topic: 18F4431 - setup_timer_5() is not documented...
LloydSargent

Replies: 26
Views: 40695

PostForum: General CCS C Discussion   Posted: Fri Jun 11, 2004 2:55 pm   Subject: 18F4431 - setup_timer_5() is not documented...
Hi,

Thanks for the RTFM reply, but it doesn't answer my question. Prior to the initial post:

1) Read the manual
2) Read the the readme
3) Read the .h file
4) Read the data sheet
5) PRIOR to ...
  Topic: 18F4431 - setup_timer_5() is not documented...
LloydSargent

Replies: 26
Views: 40695

PostForum: General CCS C Discussion   Posted: Fri Jun 11, 2004 2:04 pm   Subject: 18F4431 - setup_timer_5() is not documented...
Hi,

What is the format of the setup_timer_5() function? Same as setup_timer_1() or is it the same as setup_timer_2()? Or is it completely different altogether?

Thanks!

Lloyd
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group