Author |
Message |
Topic: service the wrong interrupt |
wynnet
Replies: 10
Views: 19310
|
Forum: General CCS C Discussion Posted: Fri Apr 23, 2004 12:08 pm Subject: service wrong interrupt |
Thank you,
so after the timer overflow, I get an interrupt, and instead of set my pin high, I just increment a variable by one. and have an if statement to say if (variable == xinterrupts) { set pin ... |
Topic: service the wrong interrupt |
wynnet
Replies: 10
Views: 19310
|
Forum: General CCS C Discussion Posted: Wed Apr 21, 2004 6:46 pm Subject: service the wrong interrupt |
somehow the answer from RKnapp is correct.
I comment out the disable interrupt inside the isr
and I get 100ms pulse. 1/10 of a second
I only need one single pulse (no repeat).
my crystal is ... |
Topic: service the wrong interrupt |
wynnet
Replies: 10
Views: 19310
|
Forum: General CCS C Discussion Posted: Wed Apr 21, 2004 11:42 am Subject: service the wrong interrupt |
I have a timer0 interrupt as a clock.
the program works ok
I also would like to generate a long pulse (2 seconds) on port A bit3 at different interval of times.
so I use timer3 for this task.
I ... |
Topic: start up too long issue |
wynnet
Replies: 3
Views: 10033
|
Forum: General CCS C Discussion Posted: Tue Apr 06, 2004 6:15 am Subject: start up too long issue |
I place IC on socket on the same board. |
Topic: start up too long issue |
wynnet
Replies: 3
Views: 10033
|
Forum: General CCS C Discussion Posted: Mon Apr 05, 2004 2:20 pm Subject: start up too long issue |
IC 18f452
I have two ICs identical part number and lot, identical program, download/programmed by one PICSTART Plus.
One IC starts up immediately.
The second one has about 11 to 12 seconds delay, ... |
Topic: LED constant On then Blink. What pin is best for the job? |
wynnet
Replies: 6
Views: 15505
|
Forum: General CCS C Discussion Posted: Mon Apr 05, 2004 2:11 pm Subject: LED constant On then Blink. What pin is best for the job? |
Thanks Neutone and Marcus,
Great idea
Have a good day |
Topic: LED constant On then Blink. What pin is best for the job? |
wynnet
Replies: 6
Views: 15505
|
Forum: General CCS C Discussion Posted: Fri Apr 02, 2004 11:33 am Subject: LED constant On then Blink. What pin is best for the job? |
Ok, I am not sure about your answer.
I already use timer0 to generate a tickcount.
OK, do you suggest I use this tickcount to do my on/on=blink?
hum, may be it is easier now.
Can you expand ... |
Topic: LED constant On then Blink. What pin is best for the job? |
wynnet
Replies: 6
Views: 15505
|
Forum: General CCS C Discussion Posted: Thu Apr 01, 2004 12:17 pm Subject: LED constant On then Blink. What pin is best for the job? |
if there is an alarm
I need to turn the red LED constant On
afte 45 seconds then I need to make it blink 1/2 sec ON 1/2 sec oFF to get more attention from user.
my part is 18F452
Should I us ... |
Topic: switch case with a range |
wynnet
Replies: 3
Views: 10526
|
Forum: General CCS C Discussion Posted: Thu Apr 01, 2004 11:47 am Subject: switch case with a range |
thank
I use
if (number >=10 && number <100) number = 99;
it helps me from making human typo error. |
Topic: switch case with a range |
wynnet
Replies: 3
Views: 10526
|
Forum: General CCS C Discussion Posted: Wed Mar 31, 2004 4:15 pm Subject: switch case with a range |
How do I write a switch case with a range?
switch (number) {
case 1: tax_1() ;
break;
case 2:
case 3:
case 4: tax_2()
break;
case 10: /* ... |
Topic: portB and momentary pushbutton? |
wynnet
Replies: 3
Views: 12135
|
Forum: General CCS C Discussion Posted: Thu Feb 05, 2004 5:24 am Subject: portB and Momentary pushbutton |
Thank you Steve,
I appreciate your clarification especially the example, #if,
I need to do some more thinking to reduce one interrupt out of two interrupt-on-change. |
Topic: portB and momentary pushbutton? |
wynnet
Replies: 3
Views: 12135
|
Forum: General CCS C Discussion Posted: Wed Feb 04, 2004 12:03 pm Subject: portB and momentary pushbutton? |
Hi,
Assuming I have 3 momentary pushbutton on port B:7,6, and 5, but only focus on portB:7 here.
With the interrupt-on-change, for port B pin 7, on PIC18F452,
Assuming the pin is normally pull high ... |
Topic: delay_ms and timer0 |
wynnet
Replies: 2
Views: 11516
|
Forum: General CCS C Discussion Posted: Sat Jan 31, 2004 3:25 pm Subject: delay_ms and timer0 |
I use timer0 or RTCC as my main timer interrupt, I also use delay_ms() function.
Does delay_ms() also use the same timer0 to perform the delay?
What timer does the delay_ms()?
Do I have to care a ... |
Topic: unwanted sleep in hex file |
wynnet
Replies: 1
Views: 8955
|
Forum: General CCS C Discussion Posted: Wed Jan 21, 2004 8:47 am Subject: unwanted sleep in hex file |
I have a 18F452, I wrote a simple program, compiled OK,
When I look at the assembly code,
the LAST line is a SLEEP command.
I did not put any SLEEP in my C code, why the CCS compiler adds SLEEP?
... |
Topic: ccs compiler from digikey |
wynnet
Replies: 3
Views: 14283
|
Forum: General CCS C Discussion Posted: Tue Dec 02, 2003 8:08 am Subject: ccs compiler from digikey |
I bought my ccs compiler PCW for windows from digikey.
I have win2k,
I have two questions
Do I need to pay for an add-in to use the PCW for Microchip 18F542?
Q2: Everytime, I close the PCW window, ... |
|