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 28 matches
CCS Forum Index
Author Message
  Topic: dsPIC30F internal FRC oscillator & PLL
AlastairM

Replies: 13
Views: 18703

PostForum: General CCS C Discussion   Posted: Wed Jul 26, 2023 10:41 am   Subject: dsPIC30F internal FRC oscillator & PLL
All working fine now!
(rise time on the 'scope is well within spec)
Just one gotcha I queried with CCS:
if the oscillator is set in the header file i.e.
#use delay(internal=60MHz)
the compiler i ...
  Topic: dsPIC30F internal FRC oscillator & PLL
AlastairM

Replies: 13
Views: 18703

PostForum: General CCS C Discussion   Posted: Tue Jul 25, 2023 1:44 pm   Subject: dsPIC30F internal FRC oscillator & PLL
Richard from CCS had some helpful info:
(I'll do some more investigation when I get a chance...)
I reviewed what you have and it is correct to run the device at 60MHz, 15MIPS. From the testing I di ...
  Topic: dsPIC30F internal FRC oscillator & PLL
AlastairM

Replies: 13
Views: 18703

PostForum: General CCS C Discussion   Posted: Thu Jul 20, 2023 4:58 am   Subject: dsPIC30F internal FRC oscillator & PLL
all power supply pins and decoupling look good.
PSU good.
I don't think I can output CLKOUT.
I'll just omit the 'fail safe clock monitor' and 'clock switching' fuse since I think it's really intend ...
  Topic: dsPIC30F internal FRC oscillator & PLL
AlastairM

Replies: 13
Views: 18703

PostForum: General CCS C Discussion   Posted: Wed Jul 19, 2023 9:33 am   Subject: dsPIC30F internal FRC oscillator & PLL
can also use '#use delay(internal=120MHz)' if I omit '#FUSES CKSFSM'
fast serial comms works OK so now I'm doubtful of the CKSFSM.
Is this one for CCS or do you have any other ideas?
  Topic: dsPIC30F internal FRC oscillator & PLL
AlastairM

Replies: 13
Views: 18703

PostForum: General CCS C Discussion   Posted: Wed Jul 19, 2023 9:03 am   Subject: dsPIC30F internal FRC oscillator & PLL
I've now got an extra tant right next to the chip (it's powered by a TSR1-2433)
I have a 4-layer board with good power planes - so I think the hardware is good.
If I include the #FUSES CKSFSM then t ...
  Topic: dsPIC30F internal FRC oscillator & PLL
AlastairM

Replies: 13
Views: 18703

PostForum: General CCS C Discussion   Posted: Wed Jul 19, 2023 7:48 am   Subject: dsPIC30F internal FRC oscillator & PLL
Thanks! thinking about it you must be correct. I'll check the PCB (bit more difficult with the customer's one Rolling Eyes )
I had a play:
If I ask for 30MHz the compiler gets 29922200Hz.
which is PLL x ...
  Topic: dsPIC30F internal FRC oscillator & PLL
AlastairM

Replies: 13
Views: 18703

PostForum: General CCS C Discussion   Posted: Wed Jul 19, 2023 7:13 am   Subject: dsPIC30F internal FRC oscillator & PLL
Thanks for the quick reply...
The datasheet says:
'The FRC oscillator is a fast (7.37 MHz ±2% nominal) internal RC oscillator'
So I think I'm specifying it correctly - am I missing something obvio ...
  Topic: dsPIC30F internal FRC oscillator & PLL
AlastairM

Replies: 13
Views: 18703

PostForum: General CCS C Discussion   Posted: Wed Jul 19, 2023 6:39 am   Subject: dsPIC30F internal FRC oscillator & PLL
Hi,
I'm using a dsPIC30F3012 which isn't letting me use the PLL!
version 5.115

easiest program I could make:


#include <30F3012.h>
#device ICSP=1

//#use delay(internal=29.48MHz ...
  Topic: cheap RTD measurement
AlastairM

Replies: 4
Views: 6008

PostForum: General CCS C Discussion   Posted: Sun Jun 09, 2013 1:18 am   Subject: cheap RTD measurement
Thanks,
I didn't spot the MAX31855 that's a great one chip solution. I'll get on with the PCB design ASAP!
Al
  Topic: cheap RTD measurement
AlastairM

Replies: 4
Views: 6008

PostForum: General CCS C Discussion   Posted: Sat Jun 08, 2013 6:15 pm   Subject: cheap RTD measurement
sorry, forgot to mention my temperatures are up to 300 degrees so I can't use the chip solution.
  Topic: cheap RTD measurement
AlastairM

Replies: 4
Views: 6008

PostForum: General CCS C Discussion   Posted: Sat Jun 08, 2013 5:28 pm   Subject: cheap RTD measurement
Has anyone tried using the internal comparator on a 12F510 or similar for a relaxation oscillator to measure an RTD accurately or at least better than the 8-bit ADC that's available on these devices? ...
  Topic: dsPIC33 weak pull downs for info!
AlastairM

Replies: 5
Views: 5872

PostForum: General CCS C Discussion   Posted: Tue Apr 09, 2013 4:27 am   Subject: dsPIC33 weak pull downs for info!
It all becomes clear at last!
I use MPLAB as my IDE and the help button on the menu bar doesn't launch the PCD help file when a PCD is the current device. I now know why I've been struggling!
Do yo ...
  Topic: dsPIC33 weak pull downs for info!
AlastairM

Replies: 5
Views: 5872

PostForum: General CCS C Discussion   Posted: Tue Apr 09, 2013 3:36 am   Subject: dsPIC33 weak pull downs for info!
oops! You are correct...
I tried my version and it worked for B5 and B6 (by a fluke!) I then tried to simulate it to look at the registers but the simulation crashed everytime. I should have looked ...
  Topic: dsPIC33 weak pull downs for info!
AlastairM

Replies: 5
Views: 5872

PostForum: General CCS C Discussion   Posted: Mon Apr 08, 2013 5:14 pm   Subject: dsPIC33 weak pull downs for info!
(see later posts for correct usage of set_pulldown)
Hi.
I'm using dsPIC33EP64MC504 / PCD 4.141
I eventually got weak pull downs working on an individual basis by
set_pulldown(PIN_B6);
t ...
  Topic: QEI on dsPIC33
AlastairM

Replies: 11
Views: 23261

PostForum: General CCS C Discussion   Posted: Mon Apr 01, 2013 2:05 pm   Subject: QEI on dsPIC33
Have you looked in the file fuses.txt that CCS supply?....
Anyone else spotted that file - I haven't after 6 years!
That format of description in each header file would be perfect.
It's also reas ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group