English
Language : 

TLE4201SI Datasheet, PDF (5/7 Pages) List of Unclassifed Manufacturers – TLE4201SI
Source
// Button.c
// Aigner Sebastian
// Dienstag, 18. Februar 2003
#include "D:\Picc\Examples\16F877.H"
#fuses HS,NOPROTECT,NOWDT
#use delay(clock=20000000)
//#use rs232(baud=9600,xmit=PIN_C6,rcv=PIN_C7)
main()
{
set_tris_c(0b01110000);
output_high(PIN_D7);
while(1)
{
if( input(PIN_D6) )
{
output_high(PIN_A0);
}
else
{
output_low(PIN_A0);
}
if( input(PIN_D5) )
{
output_high(PIN_A1);
}
else
{
output_low(PIN_A1);
}
if( input(PIN_D4) )
{
output_high(PIN_A2);
}
else
{
output_low(PIN_A2);
}
}
}
TLE 4201 SI
Aigner Sebastian
Samstag, 22. Februar 2003