CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 7 matches
CCS Forum Index
Author Message
  Topic: output_high() in a "for(;;)" cycle
cmussoni

Replies: 11
Views: 14948

PostForum: 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. Rolling Eyes

Bye
Claudio
  Topic: output_high() in a "for(;;)" cycle
cmussoni

Replies: 11
Views: 14948

PostForum: 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

PostForum: 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
Cool
  Topic: output_high() in a "for(;;)" cycle
cmussoni

Replies: 11
Views: 14948

PostForum: 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

PostForum: 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

PostForum: 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

PostForum: 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 ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group