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 33 matches
CCS Forum Index
Author Message
  Topic: dsPIC33 - Quick question about program memory as EEPROM
AlastairM

Replies: 12
Views: 22306

PostForum: General CCS C Discussion   Posted: Thu Feb 06, 2025 8:24 am   Subject: dsPIC33 - Quick question about program memory as EEPROM
I know this is an old post! but just to help anyone trying to use the program memory as EEPROM - check MIN_FLASH_WRITE - for the dsPIC33CH it's 8 so a write of 4 bytes (as shown below) is 'ignored' :o ...
  Topic: DSPIC33CH128MP202 share ADC pin between master and slave
AlastairM

Replies: 6
Views: 2096

PostForum: General CCS C Discussion   Posted: Tue Jan 21, 2025 9:00 am   Subject: DSPIC33CH128MP202 share ADC pin between master and slave
dsPIC33CH128MP202 2-core 200MHz lots of goodies
28-pin SOP - ridiculous Razz
  Topic: DSPIC33CH128MP202 share ADC pin between master and slave
AlastairM

Replies: 6
Views: 2096

PostForum: General CCS C Discussion   Posted: Tue Jan 21, 2025 8:53 am   Subject: DSPIC33CH128MP202 share ADC pin between master and slave
You're correct about the signal integrity - but I'll live with it for now.
It worked OK on the hardware!
I now have the slave sampling continuously and the slave sample rate being changed by the mas ...
  Topic: DSPIC33CH128MP202 share ADC pin between master and slave
AlastairM

Replies: 6
Views: 2096

PostForum: General CCS C Discussion   Posted: Tue Jan 21, 2025 8:08 am   Subject: DSPIC33CH128MP202 share ADC pin between master and slave
I found that bit of the datasheet quite confusing...
I'll try a few configurations on the actual hardware and come back after I've finished 'hacking'
  Topic: DSPIC33CH128MP202 share ADC pin between master and slave
AlastairM

Replies: 6
Views: 2096

PostForum: General CCS C Discussion   Posted: Tue Jan 21, 2025 6:03 am   Subject: DSPIC33CH128MP202 share ADC pin between master and slave
Is it possible to share (internally) an ADC pin in the slave and master code?
e.g. pin1
master:AN1/RA1
slave:S1AN15/S1RA1
Or does the CPRA fuse setting mean that the pin is physically 'master' o ...
  Topic: dsPIC30F internal FRC oscillator & PLL
AlastairM

Replies: 13
Views: 23280

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: 23280

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: 23280

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: 23280

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: 23280

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: 23280

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: 23280

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: 23280

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: 6653

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: 6653

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.
 
Page 1 of 3 Goto page 1, 2, 3  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group