Author |
Message |
Topic: Cannot get code protect to work |
gurdeepsembi
Replies: 4
Views: 7924
|
Forum: General CCS C Discussion Posted: Mon May 16, 2011 5:29 am Subject: Cannot get code protect to work |
Hi Ttelmah,
Thanks for the info. I tried your method and if CP fuses are OFF then I can read back the program memory and it shows the disassembly listing as well. As soon as I turn ON the CP fuses ... |
Topic: Cannot get code protect to work |
gurdeepsembi
Replies: 4
Views: 7924
|
Forum: General CCS C Discussion Posted: Mon May 16, 2011 3:45 am Subject: Cannot get code protect to work |
Hi PCM Programmer,
Thanks once again for your help. The code was indeed protected. I was just making wrong assumptions.
I thought that if I tried to read from the PIC, MPLAB would give me an er ... |
Topic: Cannot get code protect to work |
gurdeepsembi
Replies: 4
Views: 7924
|
Forum: General CCS C Discussion Posted: Fri May 13, 2011 4:55 am Subject: Cannot get code protect to work |
Hi All,
I am using a PIC18F2520 and cannot get the code protect to work. I have tried the suggestion in topic below with no luck so far:
#FUSES WDT //Use Watch Dog Timer
# ... |
Topic: PIC hanging on delay_ms call |
gurdeepsembi
Replies: 14
Views: 16920
|
Forum: General CCS C Discussion Posted: Wed Feb 23, 2011 8:12 am Subject: PIC hanging on delay_ms call |
Hi all,
Managed to find the cause of the problem and a fix for it. It appears that when the relay connected to my output RC1 (driven with a transistor) was switching the device on/off, noise was pi ... |
Topic: PIC hanging on delay_ms call |
gurdeepsembi
Replies: 14
Views: 16920
|
Forum: General CCS C Discussion Posted: Tue Feb 22, 2011 11:49 am Subject: PIC hanging on delay_ms call |
Hi All,
I also emailed CCS support about this issue and this was the response I got
Try disconnecting the relay. A noise pulse on B7 can cause the debugger to act like it hit a breakpoint. EMI ... |
Topic: PIC hanging on delay_ms call |
gurdeepsembi
Replies: 14
Views: 16920
|
Forum: General CCS C Discussion Posted: Tue Feb 22, 2011 11:00 am Subject: PIC hanging on delay_ms call |
Hi Ronald,
Thanks for your reply.
So, you might want to define all of your ISR's and see if that helps.
Did you have to define every possible ISR (all timers, ccp, etc)?
Gurdeep |
Topic: PIC hanging on delay_ms call |
gurdeepsembi
Replies: 14
Views: 16920
|
Forum: General CCS C Discussion Posted: Tue Feb 22, 2011 10:57 am Subject: PIC hanging on delay_ms call |
Hi Wayne,
Thanks for replying.
I thought the debugger disabled the WDT when running though.
Try #FUSES NOWDT
I tried with the NOWDT fuse as well but it did not make a difference. I th ... |
Topic: PIC hanging on delay_ms call |
gurdeepsembi
Replies: 14
Views: 16920
|
Forum: General CCS C Discussion Posted: Tue Feb 22, 2011 8:26 am Subject: PIC hanging on delay_ms call |
Hi Temtronic,
Thanks for your reply. I am not relying on the debug to be accurate timing wise, it is just helpful sometimes to be able to see the values of some of the variables when trying to reso ... |
Topic: PIC hanging on delay_ms call |
gurdeepsembi
Replies: 14
Views: 16920
|
Forum: General CCS C Discussion Posted: Tue Feb 22, 2011 5:05 am Subject: PIC hanging on delay_ms call |
Hi All,
I am having a strange problem when I call the delay_ms function, when I call this function, the code stops running (in debug mode) and I then have to press RUN (play button) to continue run ... |
Topic: PIC18F2520 code halting. Suspect interrupts clashing |
gurdeepsembi
Replies: 5
Views: 6928
|
Forum: General CCS C Discussion Posted: Thu Jan 27, 2011 5:38 pm Subject: PIC18F2520 code halting. Suspect interrupts clashing |
Hi Mike,
The PCB with the PIC controls an inverter using 3 of the outputs. The inverter then drives the motor.
I think the noise may be coming in from the sensor itself and is probably getting i ... |
Topic: PIC18F2520 code halting. Suspect interrupts clashing |
gurdeepsembi
Replies: 5
Views: 6928
|
Forum: General CCS C Discussion Posted: Thu Jan 27, 2011 11:54 am Subject: PIC18F2520 code halting. Suspect interrupts clashing |
Hi Ttelmah,
Thanks for all your suggestions. I will definitely implement them. I have not been coding with PICs for very long although I have used other programming languages (mostly on a PC) so th ... |
Topic: PIC18F2520 code halting. Suspect interrupts clashing |
gurdeepsembi
Replies: 5
Views: 6928
|
Forum: General CCS C Discussion Posted: Thu Jan 27, 2011 10:11 am Subject: PIC18F2520 code halting. Suspect interrupts clashing |
Hi all,
I have a simple program in which I read the status of all my inputs (with some code to handle debounce) using timer1. I use timer3 to increment other variables in my code.
I also have a ... |
Topic: CCP1 Capture Interrupt Latency (18F452) |
gurdeepsembi
Replies: 17
Views: 55404
|
Forum: General CCS C Discussion Posted: Thu Dec 23, 2010 5:34 am Subject: CCP1 Capture Interrupt Latency (18F452) |
Hi PCM Programmer,
Thanks for your help. That worked, I just had to name the variable as TMR1IF_BIT instead of TMR1IF as that is what it is referred to as in the rest of the code.
#byte CCPR1_RE ... |
Topic: CCP1 Capture Interrupt Latency (18F452) |
gurdeepsembi
Replies: 17
Views: 55404
|
Forum: General CCS C Discussion Posted: Wed Dec 22, 2010 6:11 am Subject: CCP1 Capture Interrupt Latency (18F452) |
Hi PCM programmer,
I am trying to read the frequency of a square wave signal generated by a gear tooth sensor. The freq range I need to measure is 0-20 Hz. I am using a PIC18F2520 running at 8MHz.
... |
|