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 410 matches
CCS Forum Index
Author Message
  Topic: Interrupts are being disabled and I don't understand why.
E_Blue

Replies: 10
Views: 7781

PostForum: General CCS C Discussion   Posted: Thu Apr 25, 2024 2:13 pm   Subject: Interrupts are being disabled and I don't understand why.
Thanks, for the info. I'm finishing the code and in a bit of rush now, so I will test this on weekend, just to get some personal knowledge.
  Topic: Interrupts are being disabled and I don't understand why.
E_Blue

Replies: 10
Views: 7781

PostForum: General CCS C Discussion   Posted: Wed Apr 24, 2024 12:37 pm   Subject: Interrupts are being disabled and I don't understand why.
I don't think that a hardware reset is being happening, the supply has 3A limit so, no brownout, the MCLR is with a pull up resistor and is handled only by the ICD3, there's no pin or external device ...
  Topic: Timing on a two speed program
E_Blue

Replies: 10
Views: 7663

PostForum: General CCS C Discussion   Posted: Wed Apr 24, 2024 10:06 am   Subject: Timing on a two speed program
Lithium batteries doesn't have a bigger self discharge index?

I'm setting T1 this

set_timer1(0xFFFF-(31000/4));

This setting is giving me 1.08s base time. Doing some math give ...
  Topic: Interrupts are being disabled and I don't understand why.
E_Blue

Replies: 10
Views: 7781

PostForum: General CCS C Discussion   Posted: Wed Apr 24, 2024 10:03 am   Subject: Interrupts are being disabled and I don't understand why.
No, in this case I don't.

#FUSES PROTECT,NOWDT,INTRC_IO,NOBROWNOUT,NOLVP,NOFCMEN,NOMCLR,NOPUT,BORV19,NOIESO,WRT//,PLL_SW
  Topic: Interrupts are being disabled and I don't understand why.
E_Blue

Replies: 10
Views: 7781

PostForum: General CCS C Discussion   Posted: Wed Apr 24, 2024 9:13 am   Subject: Interrupts are being disabled and I don't understand why.
I know that everything freeze on halt but Why the interrupt registers are not restored when I hit run again? Instead the program "continues" from PC 0x0000 not from the next instruction.
  Topic: Interrupts are being disabled and I don't understand why.
E_Blue

Replies: 10
Views: 7781

PostForum: General CCS C Discussion   Posted: Tue Apr 23, 2024 9:17 pm   Subject: Interrupts are being disabled and I don't understand why.
I didn't compared but I searched if some instruction in the disassembling list were changing something in the INTCON or PIE registers and they don't.

If I leave the circuit without a breakpoint or ...
  Topic: Interrupts are being disabled and I don't understand why.
E_Blue

Replies: 10
Views: 7781

PostForum: General CCS C Discussion   Posted: Tue Apr 23, 2024 3:26 pm   Subject: Interrupts are being disabled and I don't understand why.
I'm trying to blink a LED with TMR1 interrupt but the interrupts are being disabled when I stop the program in debug mode. I'm seeing this on the Watch window.

When I hit the run button the program ...
  Topic: Timing on a two speed program
E_Blue

Replies: 10
Views: 7663

PostForum: General CCS C Discussion   Posted: Tue Apr 23, 2024 10:50 am   Subject: Timing on a two speed program
random thoughts....

hmm, remember the internal RC OSC isn't 'great' at accurate timing and varies on temperature.

Only sending once every 12 hrs is 'scary' to me. My luck it'd fail 12.3 seconds ...
  Topic: Timing on a two speed program
E_Blue

Replies: 10
Views: 7663

PostForum: General CCS C Discussion   Posted: Mon Apr 22, 2024 6:08 pm   Subject: Timing on a two speed program
Nope. Is an RF PIR, so is interrupted every time a person walk in front of it.
I need to send a test signal to the alarm panel every 12 hours to know that the device is there.

I can't add any exte ...
  Topic: Timing on a two speed program
E_Blue

Replies: 10
Views: 7663

PostForum: General CCS C Discussion   Posted: Mon Apr 22, 2024 1:05 pm   Subject: Timing on a two speed program
Cool, nice approach, I wasn't thinking in to use a second timer on HiSpeed mode. I was thinking in a way to read the WDT that always run with the same clock but yours is better.

I will try your app ...
  Topic: Timing on a two speed program
E_Blue

Replies: 10
Views: 7663

PostForum: General CCS C Discussion   Posted: Mon Apr 22, 2024 12:50 pm   Subject: Timing on a two speed program
I have a PIC16LF1827 and, since is a low power battery device, I change the device speed from 31kHz to 4MHz when needed but I need a time base and since all the timers must run from the internal oscil ...
  Topic: CSS protection bit doesn't set on PIC24FJ1024GB610[SOLVED]
E_Blue

Replies: 4
Views: 5096

PostForum: General CCS C Discussion   Posted: Thu Apr 18, 2024 8:51 am   Subject: CSS protection bit doesn't set on PIC24FJ1024GB610[SOLVED]
I've just found how to make it work.

#fuses NODEBUG
#use delay(internal=32MHz,USB_FULL,ACT)
#fuses SOSC_LOW,SOSC_SEL,PROTECT_CFG,PROTECT
  Topic: CSS protection bit doesn't set on PIC24FJ1024GB610[SOLVED]
E_Blue

Replies: 4
Views: 5096

PostForum: General CCS C Discussion   Posted: Wed Apr 17, 2024 5:36 pm   Subject: CSS protection bit doesn't set on PIC24FJ1024GB610[SOLVED]
I wish to use MPLAB IDE 8.92 but this microcontroller is not supported in MPLAB IDE.

I think that the problem is something in debug mode but the HEX is created in D:\MyProject.X\dist\ICD3_profile\p ...
  Topic: CSS protection bit doesn't set on PIC24FJ1024GB610[SOLVED]
E_Blue

Replies: 4
Views: 5096

PostForum: General CCS C Discussion   Posted: Wed Apr 17, 2024 3:26 pm   Subject: CSS protection bit doesn't set on PIC24FJ1024GB610[SOLVED]
I'm trying to compile the HEX for production but the CSS bit is not being set on MPLAB X IDE v6.20

I'm compiling with Shift+F11(Clean and compile)


#use delay(internal=32MHz,USB_FULL,ACT ...
  Topic: I need ideas about how to handle a LED in open loop
E_Blue

Replies: 8
Views: 7201

PostForum: General CCS C Discussion   Posted: Wed Mar 20, 2024 7:28 pm   Subject: I need ideas about how to handle a LED in open loop
Thanks for your ideas, now the code is running fine.

Now I'm fighting against a nasty bug that is making the PC jumps from one routine to another that shouldn't. Later I will create a new post expl ...
 
Page 1 of 28 Goto page 1, 2, 3 ... 26, 27, 28  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group