Author |
Message |
Topic: program does not rotate |
jacktaylor
Replies: 5
Views: 14257
|
Forum: General CCS C Discussion Posted: Thu Mar 14, 2019 3:54 pm Subject: program does not rotate |
Very strange, nothing works.
I am now testing only on Proteus.
Does the program have no correct errors?
As for the leds the microcontroller output is connected to the anode of the led and the ... |
Topic: program does not rotate |
jacktaylor
Replies: 5
Views: 14257
|
Forum: General CCS C Discussion Posted: Thu Mar 14, 2019 2:25 pm Subject: program does not rotate |
Thanks for the reply, Ttelmah.
The initial value was 500ms, but I had gone down to 5ms to do the test in MPLAB, in the MPLAB the output oscillates.
I have placed 50ms, value proposed by you, up ... |
Topic: program does not rotate |
jacktaylor
Replies: 5
Views: 14257
|
Forum: General CCS C Discussion Posted: Thu Mar 14, 2019 1:52 pm Subject: program does not rotate |
Hello friends, I'm having trouble with a code from an RF receiver.
Using the same settings for the PIC12F675 microcontroller of the original code, I inserted in the while the commands for output Led1 ... |
Topic: POO-object-oriented programming C++ |
jacktaylor
Replies: 2
Views: 10723
|
Forum: General CCS C Discussion Posted: Thu Dec 06, 2018 12:51 pm Subject: POO-object-oriented programming C++ |
I understood. Thank you friend. |
Topic: POO-object-oriented programming C++ |
jacktaylor
Replies: 2
Views: 10723
|
Forum: General CCS C Discussion Posted: Thu Dec 06, 2018 9:37 am Subject: POO-object-oriented programming C++ |
Hello friends CCS compiler does not have the word reserve for creating classes in object-oriented programming with C ++? How can I create a class in CCS compiler?
Thank you. |
Topic: Arduino's "map" function in CCS |
jacktaylor
Replies: 4
Views: 56053
|
Forum: Code Library Posted: Sun Aug 12, 2018 12:25 pm Subject: Re: Arduino's "map" function in CCS |
I was looking for an explanation like that. I am passing a code in Arduino to the CCS compiler. I was having trouble figuring out how I could do normalization. So when driving a motor with a signal re ... |
Topic: Doubt in interrupt processing |
jacktaylor
Replies: 15
Views: 33302
|
Forum: General CCS C Discussion Posted: Tue Jul 10, 2018 3:54 pm Subject: Doubt in interrupt processing |
As Mr. T. say
Do NOT believe Proteus ! It's BUSTED, broke,incomplete, worthless...
Sadly there's a whole herd of folks who think Proteus is the next best thing to sliced bread...
however
it's NOT ... |
Topic: Doubt in interrupt processing |
jacktaylor
Replies: 15
Views: 33302
|
Forum: General CCS C Discussion Posted: Tue Jul 10, 2018 3:52 pm Subject: Doubt in interrupt processing |
As a comment I have just tried it in MPLAB 8.92, which the poster mentions, and in this the flag does set again merrily. If you put a break on the TMRIF=0 instruction, it happily arrives back there wi ... |
Topic: Doubt in interrupt processing |
jacktaylor
Replies: 15
Views: 33302
|
Forum: General CCS C Discussion Posted: Tue Jul 10, 2018 7:59 am Subject: Doubt in interrupt processing |
It's entirely up to you.
However if your interrupt was something like an event you wanted to count, the quite large time it takes to get _out_ of the interrupt becomes significant. So in this case ... |
Topic: Doubt in interrupt processing |
jacktaylor
Replies: 15
Views: 33302
|
Forum: General CCS C Discussion Posted: Mon Jul 09, 2018 8:17 am Subject: Doubt in interrupt processing |
When executing the interrupt while (1) processing is interrupted, even the overflow time being 131ms, ie no new interrupts occur while not executing the entire loop within the interrupt.
Actua ... |
Topic: Doubt in interrupt processing |
jacktaylor
Replies: 15
Views: 33302
|
Forum: General CCS C Discussion Posted: Mon Jul 09, 2018 7:17 am Subject: Doubt in interrupt processing |
FOR (REPEAT = 0; REPEAT <2; REPEAT ++);
can only be executed once as repeat starts at 0, increments to 1 and
when it goes to 2, exits the loop.
Actually the loop count is OK. It should e ... |
Topic: Doubt in interrupt processing |
jacktaylor
Replies: 15
Views: 33302
|
Forum: General CCS C Discussion Posted: Mon Jul 09, 2018 7:03 am Subject: Doubt in interrupt processing |
FOR (REPEAT = 0; REPEAT <2; REPEAT ++);
can only be executed once as repeat starts at 0, increments to 1 and
when it goes to 2, exits the loop.
Actually the loop count is OK. It should e ... |
Topic: Doubt in interrupt processing |
jacktaylor
Replies: 15
Views: 33302
|
Forum: General CCS C Discussion Posted: Sun Jul 08, 2018 11:10 am Subject: Doubt in interrupt processing |
2 quick comments.
1st. FOR (REPEAT = 0; REPEAT <2; REPEAT ++);
can only be executed once as repeat starts at 0, increments to 1 and when it goes to 2, exits the loop
2nd. you should never, ... |
Topic: Doubt in interrupt processing |
jacktaylor
Replies: 15
Views: 33302
|
Forum: General CCS C Discussion Posted: Sun Jul 08, 2018 8:46 am Subject: Doubt in interrupt processing |
Hello friends. I have a doubt in the execution of an interruption in the TIMER1 of the example, but that also applies to the TIMER0.
In the next program, the timer overflow is 131ms.
The doubt is: w ... |
Topic: Program stopping in the delay () function |
jacktaylor
Replies: 4
Views: 12863
|
Forum: General CCS C Discussion Posted: Wed Jul 04, 2018 10:57 am Subject: Program stopping in the delay () function |
Are you running this 'for real' , or in a simulator?.
In a simulator, a delay can take ages to execute.
If 'for real', are you sure you will see/detect a 10uSec pulse every 100mSec?.
It's you ... |
|