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 16 matches
CCS Forum Index
Author Message
  Topic: Clock is 4 times faster
SpoonBilly

Replies: 7
Views: 9197

PostForum: General CCS C Discussion   Posted: Wed Jul 11, 2012 3:31 am   Subject: Clock is 4 times faster
I can live with the faster clock, but what can I do to replace delay_us()?
  Topic: Clock is 4 times faster
SpoonBilly

Replies: 7
Views: 9197

PostForum: General CCS C Discussion   Posted: Tue Jul 10, 2012 5:47 am   Subject: Clock is 4 times faster
and I can't use delay_us(). Is this a related issue?
  Topic: Clock is 4 times faster
SpoonBilly

Replies: 7
Views: 9197

PostForum: General CCS C Discussion   Posted: Tue Jul 10, 2012 1:41 am   Subject: Clock is 4 times faster
I am using PCWHD version 4.134 and MPLAB ICD3. What puzzles me is that the clock seems to work 4 times faster. Let say if I am using baudrate 9600, I can only receive what I want at the computer at ba ...
  Topic: PIC18F2553 and SD Card using ex_mmcsd.c
SpoonBilly

Replies: 3
Views: 10189

PostForum: General CCS C Discussion   Posted: Tue Nov 09, 2010 7:08 pm   Subject: Re: PIC18F2553 and SD Card using ex_mmcsd.c
Hello, Please tell me what is your SPI clock. I use this code in a 18f4550 and I have some problem. Address in Winhex is at Offset column? TY.

Not sure what do you mean by SPI clock, I don't think ...
  Topic: dsPIC33F Timer Interrupt do not work for Prescaler 64 &
SpoonBilly

Replies: 11
Views: 18694

PostForum: General CCS C Discussion   Posted: Fri Oct 08, 2010 7:18 am   Subject: dsPIC33F Timer Interrupt do not work for Prescaler 64 &
Your code sets PR1 to a constant value, this must be done only once. I don't see a reason, why this should be done inside the ISR, it's sufficient to set it with the initial setup_timer1(), as in my a ...
  Topic: dsPIC33F Timer Interrupt do not work for Prescaler 64 &
SpoonBilly

Replies: 11
Views: 18694

PostForum: General CCS C Discussion   Posted: Fri Oct 08, 2010 1:02 am   Subject: dsPIC33F Timer Interrupt do not work for Prescaler 64 &
... If you rewrite TMR1 (e.g. with set_timer() ), the actual timer period is increased by the interrupt latency and processing time until set_timer is executed...

hm... well, anyway, I have been us ...
  Topic: dsPIC33F Timer Interrupt do not work for Prescaler 64 &
SpoonBilly

Replies: 11
Views: 18694

PostForum: General CCS C Discussion   Posted: Wed Oct 06, 2010 10:09 pm   Subject: dsPIC33F Timer Interrupt do not work for Prescaler 64 &
...In most cases, even if a variable timer intervall is intended, one would write the preset register, because it's the only way to achieve a timer intervall that's exact to a clock tick.

I learnt ...
  Topic: dsPIC33F Timer Interrupt do not work for Prescaler 64 &
SpoonBilly

Replies: 11
Views: 18694

PostForum: General CCS C Discussion   Posted: Wed Oct 06, 2010 8:08 pm   Subject: dsPIC33F Timer Interrupt do not work for Prescaler 64 &
Even if the advice given by FvM works perfectly, but being able to set_timer inside the timer interrupt ISR is crucial if the interrupt execution rate is not always constant.

After some trials and ...
  Topic: dsPIC33F Timer Interrupt do not work for Prescaler 64 &
SpoonBilly

Replies: 11
Views: 18694

PostForum: General CCS C Discussion   Posted: Wed Oct 06, 2010 6:11 am   Subject: dsPIC33F Timer Interrupt do not work for Prescaler 64 &
You are using a wrong method to setup timer1, I think.

....

Thanks FvM.
The way I set the timer, it works fine for prescaler 1 and 8. Thanks for your advice. It is night over here, I will give ...
  Topic: dsPIC33F Timer Interrupt do not work for Prescaler 64 &
SpoonBilly

Replies: 11
Views: 18694

PostForum: General CCS C Discussion   Posted: Wed Oct 06, 2010 1:00 am   Subject: dsPIC33F Timer Interrupt do not work for Prescaler 64 &
Why do you think, the timer interrupt doesn't work?

If you can afford a 500 us delay in the ISR, why don't you stay with slow PIC18. Smile

I am new to dsPIC. Currently in the process of trying thi ...
  Topic: dsPIC33F Timer Interrupt do not work for Prescaler 64 &
SpoonBilly

Replies: 11
Views: 18694

PostForum: General CCS C Discussion   Posted: Tue Oct 05, 2010 9:29 pm   Subject: dsPIC33F Timer Interrupt do not work for Prescaler 64 &
I am just started on dsPIC33F, work on PIC18F mostly in the past.

I was intended to run the dsPIC33FJ128GP306 at 40MIPS, that is 80MHz. It works fine for timer prescaler 1 and 8, but cant get the ...
  Topic: fat.c + mmcsd.c Working but Windows can't read the files
SpoonBilly

Replies: 16
Views: 30615

PostForum: General CCS C Discussion   Posted: Thu Jun 03, 2010 2:57 am   Subject: fat.c + mmcsd.c Working but Windows can't read the files
But I did solved the problem of unable to read correctly from reserved sector... eventually... accidently...

I was so frustrated that at one point, using the modified mmcsd.c that I posted above, I ...
  Topic: fat.c + mmcsd.c Working but Windows can't read the files
SpoonBilly

Replies: 16
Views: 30615

PostForum: General CCS C Discussion   Posted: Thu Jun 03, 2010 2:34 am   Subject: fat.c + mmcsd.c Working but Windows can't read the files
The problem with all of this is in the FAT library, basically in the function that is responsible for formatting the card: format(int32 mediaSize).

Thanks CoverUp. Spanish is a beautiful language ...
  Topic: fat.c + mmcsd.c Working but Windows can't read the files
SpoonBilly

Replies: 16
Views: 30615

PostForum: General CCS C Discussion   Posted: Sat May 29, 2010 7:54 am   Subject: fat.c + mmcsd.c Working but Windows can't read the files
Solved!!

if any one want the solution, post but i'll explain it in spanish. sorry for that

Can you please share your code?
I'm working on similar thing using PIC18F2553.

http://www.ccsinfo.c ...
  Topic: fat.c / ex_fat.c: SD card, contents messed up.
SpoonBilly

Replies: 7
Views: 9032

PostForum: General CCS C Discussion   Posted: Sat May 29, 2010 7:30 am   Subject: Re: fat.c / ex_fat.c: SD card, contents messed up.
Yet another datalogger-project where data is supposed to be stored in SD-card so it could be analysed in PC.

Working on similar thing. Use similar PIC too. I m using PIC18F2553.

http://www.ccsi ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group