Author |
Message |
Topic: Interrupts |
Michaelc
Replies: 2
Views: 9298
|
Forum: General CCS C Discussion Posted: Fri Apr 02, 2004 8:09 am Subject: Interrupts |
Hey
Can anyone tell my an interupt occurs when the pic is starting up?
The code is below:
#include<inttest.h>
#include<des_lcd.c>
#include<dipkey.c>
static int j;
//////// ... |
Topic: watchdog reset |
Michaelc
Replies: 4
Views: 11752
|
Forum: General CCS C Discussion Posted: Fri Apr 02, 2004 5:58 am Subject: watchdog reset and configuration bits (fuses) |
Iam using a bootloader, and when i program the chip with the bootloader and turnoff the watchdog timer config bit the program including the bootloader work perfect, however if i turn on the watchdog b ... |
Topic: watchdog reset |
Michaelc
Replies: 4
Views: 11752
|
Forum: General CCS C Discussion Posted: Thu Apr 01, 2004 2:08 pm Subject: watchdog reset |
Iam trying to reset the pic using the watchdog timer??
What are the main things to be aware of when implementing this? |
Topic: pulses |
Michaelc
Replies: 9
Views: 17987
|
Forum: General CCS C Discussion Posted: Thu Apr 01, 2004 1:57 pm Subject: pulses |
i figured out what was wrong! you have to read the status of the port before you enable the interrupt!!!!
Thanks for the help i have to try and sort out the watchdog reset now!!! |
Topic: pulses |
Michaelc
Replies: 9
Views: 17987
|
Forum: General CCS C Discussion Posted: Thu Apr 01, 2004 1:27 pm Subject: pulses |
Iam not using a ICD, iam using an serial programmer! I had an LCD tied on those pins but have removed it. Its a 16f877 using IDE 2.32! I have the switch tied to b6 and the b4 b5 and b7 are tied high! ... |
Topic: pulses |
Michaelc
Replies: 9
Views: 17987
|
Forum: General CCS C Discussion Posted: Thu Apr 01, 2004 12:53 pm Subject: pulses |
That worked but now it just seems to interrupt the whole time, i tied pinb4 to pinb7 high with a pull up resistor, and the isr seems to run continuously!!
Whats happening here? |
Topic: pulses |
Michaelc
Replies: 9
Views: 17987
|
Forum: General CCS C Discussion Posted: Thu Apr 01, 2004 10:58 am Subject: pulses |
Thats brilliant i'll work on that!
Iam having a lot of problems setting up interupts, iam trying to use an
interrupt on portb pin b6, but it really doesn't seem to want to work. I also can't get th ... |
Topic: pulses |
Michaelc
Replies: 9
Views: 17987
|
Forum: General CCS C Discussion Posted: Thu Apr 01, 2004 10:18 am Subject: ccp and pulse |
Thanks
But iam not sure how to set up the ccp to interrupt on a rising edge. |
Topic: pulses |
Michaelc
Replies: 9
Views: 17987
|
Forum: General CCS C Discussion Posted: Thu Apr 01, 2004 8:12 am Subject: pulses |
How can i use ccp pins to count pulses? |
Topic: Stack overflow |
Michaelc
Replies: 5
Views: 15697
|
Forum: General CCS C Discussion Posted: Wed Mar 24, 2004 6:59 am Subject: Stack overflow |
How is the stack popped on the PIC and does loading the pc in a function and not actually returning from the function in the natural way cause the stack not to be popped? |
Topic: Stack overflow |
Michaelc
Replies: 5
Views: 15697
|
Forum: General CCS C Discussion Posted: Wed Mar 24, 2004 6:51 am Subject: Stack overflow |
Its actually an operating system iam working on so posting all the relevant code would be impossible, but i have the the code below for a typical task, as you can see its in an infinite loop, below th ... |
Topic: Stack overflow |
Michaelc
Replies: 5
Views: 15697
|
Forum: General CCS C Discussion Posted: Wed Mar 24, 2004 5:58 am Subject: Stack overflow |
Hey
I am havin a problem with stack overflow in MPLAB, i keep getting a stack overflow after 7 or 8 runs of the program. I know i can disable Stack overflow warning for simulation but i need to know ... |
Topic: Find start address of functions |
Michaelc
Replies: 1
Views: 8770
|
Forum: General CCS C Discussion Posted: Tue Mar 16, 2004 6:38 am Subject: Find start address of functions |
Hey
i currently working on a project where i need to find the start address of functions. The easiest way would be to use function pointers however iam stuck with the older versions of the ccs compi ... |
Topic: FUNCTION POINTERS |
Michaelc
Replies: 2
Views: 14993
|
Forum: General CCS C Discussion Posted: Thu Mar 04, 2004 9:38 am Subject: FUNCTION POINTERS |
IAM using pcw ver3.28 and i am attempting to use funcion pointers so that
i can get the address of different functions. The help files tell me i can't use function pointers but i've being told that i ... |
|