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 8 matches
CCS Forum Index
Author Message
  Topic: 2 LM35 Temperature sensors, 1 motor, 2 switches and 2 relays
cer

Replies: 11
Views: 9827

PostForum: General CCS C Discussion   Posted: Thu Jan 12, 2012 4:27 pm   Subject: 2 LM35 Temperature sensors, 1 motor, 2 switches and 2 relays
Hi,

I want it to read adc_channel(1) when the conditions occur but when it is in channel(0), it does not read channel(1) even if the conditions occur. Should i use a "break;" or something ...
  Topic: 2 LM35 Temperature sensors, 1 motor, 2 switches and 2 relays
cer

Replies: 11
Views: 9827

PostForum: General CCS C Discussion   Posted: Thu Jan 12, 2012 11:10 am   Subject: 2 LM35 Temperature sensors, 1 motor, 2 switches and 2 relays
temtronic,

Great comments! Thank you very much, these will totally help!
  Topic: 2 LM35 Temperature sensors, 1 motor, 2 switches and 2 relays
cer

Replies: 11
Views: 9827

PostForum: General CCS C Discussion   Posted: Thu Jan 12, 2012 8:41 am   Subject: 2 LM35 Temperature sensors, 1 motor, 2 switches and 2 relays
@temtronics

How can I read the port to clear it?

Yes, I wrote it intentionally, thanks anyway.

I removed set_tris and fast_io on behalf of your comment.

Schematics link is on the first pos ...
  Topic: 2 LM35 Temperature sensors, 1 motor, 2 switches and 2 relays
cer

Replies: 11
Views: 9827

PostForum: General CCS C Discussion   Posted: Thu Jan 12, 2012 8:20 am   Subject: 2 LM35 Temperature sensors, 1 motor, 2 switches and 2 relays
try
byte junk;
junk=input_b();
Should this be in the interrupt function or a global one?
  Topic: 2 LM35 Temperature sensors, 1 motor, 2 switches and 2 relays
cer

Replies: 11
Views: 9827

PostForum: General CCS C Discussion   Posted: Thu Jan 12, 2012 8:10 am   Subject: 2 LM35 Temperature sensors, 1 motor, 2 switches and 2 relays
asmboy schematics link is under the post. How do i clear the interrupt without writing in it? Is the poblem here: output_b(0x00);?
  Topic: 2 LM35 Temperature sensors, 1 motor, 2 switches and 2 relays
cer

Replies: 11
Views: 9827

PostForum: General CCS C Discussion   Posted: Thu Jan 12, 2012 7:13 am   Subject: 2 LM35 Temperature sensors, 1 motor, 2 switches and 2 relays
It reads only channel(0) and does not react on what happened on channel(1). How can i break the channel(0) loop?
  Topic: 2 LM35 Temperature sensors, 1 motor, 2 switches and 2 relays
cer

Replies: 11
Views: 9827

PostForum: General CCS C Discussion   Posted: Wed Jan 11, 2012 8:02 pm   Subject: 2 LM35 Temperature sensors, 1 motor, 2 switches and 2 relays
btw it does not execute this code as i understood but i might be wrong. I thought so because it does not power the LED by output_high(pin_a7);

set_adc_channel(1); //DIŞ SENSÖR OKUNUYOR | ...
  Topic: 2 LM35 Temperature sensors, 1 motor, 2 switches and 2 relays
cer

Replies: 11
Views: 9827

PostForum: General CCS C Discussion   Posted: Wed Jan 11, 2012 7:39 pm   Subject: 2 LM35 Temperature sensors, 1 motor, 2 switches and 2 relays
Hi,

I have some problems with this (
while(TRUE)
{
set_adc_channel(1); //DIŞ SENSÖR OKUNUYOR |Outside LM35 Reading
delay_us(20);
bilgi_dis=read_adc& ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group