Author |
Message |
Topic: output_high() in a "for(;;)" cycle |
cmussoni
Replies: 11
Views: 14948
|
Forum: General CCS C Discussion Posted: Sun Aug 22, 2010 1:26 am Subject: output_high() in a "for(;;)" cycle |
FvM...THAAANKS for the solutions: input_c() set PORTC to input !!!
Thank also Ttelmah for all the other my oversights.
Bye
Claudio |
Topic: output_high() in a "for(;;)" cycle |
cmussoni
Replies: 11
Views: 14948
|
Forum: General CCS C Discussion Posted: Sat Aug 21, 2010 11:52 am Subject: output_high() in a "for(;;)" cycle |
Sorry, sorry. The complete for-cycle is the sequence:
for(;;){
current_b=input_b();
delay_us(100);
current_c=input_c();
delay_us( ... |
Topic: output_high() in a "for(;;)" cycle |
cmussoni
Replies: 11
Views: 14948
|
Forum: General CCS C Discussion Posted: Sat Aug 21, 2010 11:41 am Subject: output_high() in a "for(;;)" cycle |
IDE 4.093
PCB 4.093
PCM 4.093
PCH 4.093
PCD 4.093
 |
Topic: output_high() in a "for(;;)" cycle |
cmussoni
Replies: 11
Views: 14948
|
Forum: General CCS C Discussion Posted: Sat Aug 21, 2010 11:08 am Subject: output_high() in a "for(;;)" cycle |
Ok there it is :
#include <16F876A.h>
#fuses XT, NOWDT, NOPROTECT, NOPUT, NOBROWNOUT, NOLVP
#use delay (clock=4000000)
#define TX232 PIN_A2
#define RX232 PIN_A5
#define ... |
Topic: output_high() in a "for(;;)" cycle |
cmussoni
Replies: 11
Views: 14948
|
Forum: General CCS C Discussion Posted: Sat Aug 21, 2010 10:28 am Subject: output_high() in a "for(;;)" cicle |
...ooops... I remind I' m working with a PIC16F876A.
Bye. |
Topic: output_high() in a "for(;;)" cycle |
cmussoni
Replies: 11
Views: 14948
|
Forum: General CCS C Discussion Posted: Sat Aug 21, 2010 10:25 am Subject: output_high() in a "for(;;)" cicle |
Hello,
I've no WDog (#fuses XT, NOWDT...). I don't try to change the output load but when I bring out the code :
delay_ms(1000);
output_high(PIN_C0);
delay_ms(1000); ... |
Topic: output_high() in a "for(;;)" cycle |
cmussoni
Replies: 11
Views: 14948
|
Forum: General CCS C Discussion Posted: Sat Aug 21, 2010 8:02 am Subject: output_high() in a "for(;;)" cycle |
Hello to all,
I've this stupid doubt. In this code:
void main(){
...
set_tris_c(0b00000000);
...
for(;;){
delay_ms(1000);
ou ... |
|