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 52 matches
CCS Forum Index
Author Message
  Topic: Alternative RX/TX Pins on DsPIC30F4012
younder

Replies: 4
Views: 12989

PostForum: General CCS C Discussion   Posted: Sat Jan 11, 2020 8:12 am   Subject: Alternative RX/TX Pins on DsPIC30F4012
Thank you all for the responses... it's clear now that with Software UART the Isr will not work. I will have to change the pins in my project.
  Topic: Alternative RX/TX Pins on DsPIC30F4012
younder

Replies: 4
Views: 12989

PostForum: General CCS C Discussion   Posted: Fri Jan 10, 2020 7:09 pm   Subject: Alternative RX/TX Pins on DsPIC30F4012
Hello guys,

Is it possible to use Hardware UART module in other pins different than alternative RC13 (U1ATX) and RC14 (U1ARX) as per datasheet? I tried the options below, with the following result ...
  Topic: Write/read float to internal DSPic30F eeprom - SOLVED!
younder

Replies: 2
Views: 8757

PostForum: General CCS C Discussion   Posted: Sun Jan 22, 2017 9:23 am   Subject: Write/read float to internal DSPic30F eeprom - SOLVED!
Thanks PCM programmer! you hit the nail right in the head! It was my mistake... we need 4 bytes in the eeprom for storing a float variable... the data was overwriting 2 bytes - We can close this tread
  Topic: Write/read float to internal DSPic30F eeprom - SOLVED!
younder

Replies: 2
Views: 8757

PostForum: General CCS C Discussion   Posted: Sat Jan 21, 2017 10:47 am   Subject: Write/read float to internal DSPic30F eeprom - SOLVED!
Hi Guys,

DSPic30F4012
Compiler V5.051

I'm trying to use the example available in the "C:\Program Files\PICC\Drivers\internal_eeprom.c" for Reading and writing a float32 to internal DS ...
  Topic: Const struct
younder

Replies: 13
Views: 47407

PostForum: General CCS C Discussion   Posted: Sun Oct 09, 2016 8:56 pm   Subject: Const struct
Hi in_nursery

I'm still facing the same problem as yours. With latest CCS Compiler version this menu code doesn't work! Were you able to found a solution for this other than compile the code with ...
  Topic: AM2320 I2C Relative Humidity & Temperature by Hugo Silva
younder

Replies: 0
Views: 21231

PostForum: Code Library   Posted: Mon Aug 08, 2016 6:19 pm   Subject: AM2320 I2C Relative Humidity & Temperature by Hugo Silva
Hi guys,

I'm Just sharing this driver for anyone that needs it...

Enjoy!

Hugo

AM2320.h

////////////////////////////////////////////////////////////////////////////////
/// ...
  Topic: Help with Output Compare module - dsPIC30F4012
younder

Replies: 2
Views: 8888

PostForum: General CCS C Discussion   Posted: Sun Jul 24, 2016 5:07 pm   Subject: Help with Output Compare module - dsPIC30F4012
Hi Guys,

I'm having a hard time trying to get OC1 & OC2 pins at low level while mcu is powering up. I'm using Output Compare module in Pulse-Width Modulation Mode OCM<2:0> set to '110' ( ...
  Topic: ADDRESS ERROR TRAP INTERRUPT PIC24H
younder

Replies: 33
Views: 67179

PostForum: General CCS C Discussion   Posted: Tue Jun 21, 2016 5:29 pm   Subject: ADDRESS ERROR TRAP INTERRUPT PIC24H
Finnaly I've found that the trap conflict was due to a compiler (v5.059) bug when copying an array element from one array to another
when the source is a structure declared as 'const'....

http: ...
  Topic: ADDRESS ERROR TRAP INTERRUPT PIC24H
younder

Replies: 33
Views: 67179

PostForum: General CCS C Discussion   Posted: Fri Jun 10, 2016 3:31 pm   Subject: ADDRESS ERROR TRAP INTERRUPT PIC24H
Now I have changed my ISR trap handler to:


unsigned long trapaddr;
#INT_ADDRERR
void ADDRERR_isr(void)
{
#asm
mov w15, w0
sub #38, w0
mov [w0++], w1
mov w1, ...
  Topic: ADDRESS ERROR TRAP INTERRUPT PIC24H
younder

Replies: 33
Views: 67179

PostForum: General CCS C Discussion   Posted: Fri Jun 10, 2016 11:15 am   Subject: ADDRESS ERROR TRAP INTERRUPT PIC24H
Hi Ttelmah,

I have the trap routine handler already in my code (Same as yours posted on this tread Fri Jul 24, 2015 1:58 am), except for the two new lines below:


clear_interrupt(INT_ADDRE ...
  Topic: ADDRESS ERROR TRAP INTERRUPT PIC24H
younder

Replies: 33
Views: 67179

PostForum: General CCS C Discussion   Posted: Wed Jun 08, 2016 5:23 pm   Subject: ADDRESS ERROR TRAP INTERRUPT PIC24H
Putting a printf, into the interrupt is going to change far too many things to actually be useful. Currently, the compiler can't fit it in the segment where the interrupt handlers normally sit.

Dec ...
  Topic: ADDRESS ERROR TRAP INTERRUPT PIC24H
younder

Replies: 33
Views: 67179

PostForum: General CCS C Discussion   Posted: Wed Jun 08, 2016 5:40 am   Subject: ADDRESS ERROR TRAP INTERRUPT PIC24H
OK. Done a quick test with 5.048.
The code works with 0x38 offset.

You need:

unsigned long trapaddr;

#INT_ADDRERR
void ADDRERR_isr(void)
{
#asm
mov w15, w0
sub #38, w0
mov ...
  Topic: how to setup IC1, IC2, IC7 and IC8 in dsPIC30F4011
younder

Replies: 2
Views: 14340

PostForum: General CCS C Discussion   Posted: Sat May 14, 2016 8:04 pm   Subject: how to setup IC1, IC2, IC7 and IC8 in dsPIC30F4011
Hi Everyone,

I've searched in the forum for any thread that shows how to use the input capture module, but I couldn't find anything. Can anyone can help me understand how to set up IC7 & IC8 ( ...
  Topic: Help with Fuses to protect code from reading
younder

Replies: 6
Views: 14182

PostForum: General CCS C Discussion   Posted: Sat Oct 10, 2015 10:54 am   Subject: Help with Fuses to protect code from reading
I see Ttelmah, I will try then to use a different board to erase it. For sure this must be the issue (supply voltage <4,5v).

Thanks Buddy
Hugo
  Topic: Help with Fuses to protect code from reading
younder

Replies: 6
Views: 14182

PostForum: General CCS C Discussion   Posted: Sat Oct 10, 2015 9:04 am   Subject: Help with Fuses to protect code from reading
I've tried to include just:


#fuses PROTECT,NOWRT


But after that I was not able to re-write the chip again...I'm using Pickit 3 to load the HEX into the chip. Even after erase the chip, I was ...
 
Page 1 of 4 Goto page 1, 2, 3, 4  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group