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

new function: input_change_x

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
jelodavid



Joined: 03 Apr 2005
Posts: 22
Location: Laguna Philippines

View user's profile Send private message Yahoo Messenger

new function: input_change_x
PostPosted: Fri Jan 15, 2010 10:50 pm     Reply with quote

Hello,

New version of CCS compiler has a a new function: input_change_x.
May I know how to use it? A sample program from you good guys would be a great help..Thanks!Smile
guaros1



Joined: 19 Apr 2013
Posts: 2
Location: carora

View user's profile Send private message

input_change_x()
PostPosted: Fri Apr 19, 2013 10:16 am     Reply with quote

Le envio un ejemplo simple



#include <16F877.H>
#fuses XT, NOWDT, BROWNOUT, PUT, NOLVP
#use delay(clock=4000000)

int8 boton = 0;
#define retardo delay_ms(250)
//======================================
void main()
{
set_tris_b(0xff);
set_tris_a(0b11111110);
port_b_pullups(TRUE);
delay_us(10);

input_change_b(); // inicializa cambio

while(true)
{
boton = input_change_b();
if(boton)
{
output_high(PIN_A0);
retardo;
}
else
{
output_low(PIN_A0);
retardo;
}
}
}
guaros1



Joined: 19 Apr 2013
Posts: 2
Location: carora

View user's profile Send private message

ccs c and proteus
PostPosted: Fri Apr 19, 2013 12:24 pm     Reply with quote

http://www.4shared.com/zip/V2PYwEYW/FUNCION_input_change_b__.html
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Apr 19, 2013 12:54 pm     Reply with quote

This question was already answered back in 2010:
http://www.ccsinfo.com/forum/viewtopic.php?t=41560
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group