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 10 matches
CCS Forum Index
Author Message
  Topic: RTOS issue tasks
Ralf2

Replies: 3
Views: 7791

PostForum: General CCS C Discussion   Posted: Tue Dec 02, 2014 4:35 pm   Subject: RTOS issue tasks
Hi.
I see the problem apparently is the allocation made by the ccs to pre scaler timer 0 or 1,
because if minor_cycle = 430ms, the pre-scaler timer0 or 1 = 2(timer0) and the program does not work. A ...
  Topic: RTOS issue tasks
Ralf2

Replies: 3
Views: 7791

PostForum: General CCS C Discussion   Posted: Mon Dec 01, 2014 8:29 pm   Subject: RTOS issue tasks
Hi.
This program not work, if minor_cycle >= 430ms???

#include <18F26K80.h>
#device adc=12

#FUSES VREGSLEEP //Ultra low-power regulator is disabled
#FUSES INTRC_LP ...
  Topic: String manipulation with CCS
Ralf2

Replies: 19
Views: 55661

PostForum: General CCS C Discussion   Posted: Tue Jul 15, 2014 12:02 am   Subject: String manipulation with CCS
Thanks PCM Programmer and Ttelmah for help me.

If, the use of pointers to data stored in rom is confused and unclear with ccs Confused
So ask the question in forum Smile
  Topic: String manipulation with CCS
Ralf2

Replies: 19
Views: 55661

PostForum: General CCS C Discussion   Posted: Mon Jul 14, 2014 7:33 pm   Subject: String manipulation with CCS
Many thanks for helping PCM Programmer

I want to create a table of integers and character string in rom to access them from the main().

Regards
  Topic: String manipulation with CCS
Ralf2

Replies: 19
Views: 55661

PostForum: General CCS C Discussion   Posted: Mon Jul 14, 2014 4:29 pm   Subject: String manipulation with CCS
Thanks PCM
And as I walk the array with pointer?

Because these not work
for(int i=0; i<10; i++)
printf("%ld \r", *(fred+i));

Sad
  Topic: String manipulation with CCS
Ralf2

Replies: 19
Views: 55661

PostForum: General CCS C Discussion   Posted: Mon Jul 14, 2014 3:45 pm   Subject: String manipulation with CCS
rom int16 vals[] = {1,2,3,4,5,6,7,8,9};

rom * int16 fred;

fred = &vals[5];
//initialises a rom pointer to the value 6.



not work the coded? Sad
  Topic: String manipulation with CCS
Ralf2

Replies: 19
Views: 55661

PostForum: General CCS C Discussion   Posted: Mon Jul 14, 2014 2:24 pm   Subject: String manipulation with CCS
Hi Ttelmah
So I can not store data type int, float in rom? and create a pointer to these?
only strings Sad
  Topic: String manipulation with CCS
Ralf2

Replies: 19
Views: 55661

PostForum: General CCS C Discussion   Posted: Mon Jul 14, 2014 11:09 am   Subject: String manipulation with CCS
Why this coded not work???
/*
A more complex example that creates an array of pointers to constant strings:
*/
const char *strings[] =
{
"HELLO",
"WORLD&qu ...
  Topic: Issue pwm_set_frequency() :(
Ralf2

Replies: 4
Views: 9100

PostForum: General CCS C Discussion   Posted: Fri Aug 02, 2013 6:17 am   Subject: Issue pwm_set_frequency() :(
I've been playing with it, based on your program, with vs. 5.010.
I have come to the conclusion that this function does not work:
pwm_set_frequency()
With a 20MHz crystal I always get 1.22 ...
  Topic: Issue pwm_set_frequency() :(
Ralf2

Replies: 4
Views: 9100

PostForum: General CCS C Discussion   Posted: Thu Aug 01, 2013 7:42 am   Subject: Issue pwm_set_frequency() :(
Hi friends
This program not work to any frequency, if use: pwm_set_frequency()???

#include <18f252.h>
#use delay(crystal= 20000000)
#fuses hs, nowdt,ccp2c1

#use pwm(ccp1,tim ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group