Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
I hope this isnt too "low tech" a solution, but if Atomsoft is ready to chuck in the towel perhaps he might consider an astable 555 circuit to provide the 38khz then AND it with his SIRC output pin via a transistor?
It's a really poor and pointless solution
Could you explain the delay in more detail? Thanks
"However, doing short delays in C is tricky as you don't know how long a call or a for next loop will take."
<sigh> i'll get on with my knitting....
P.S. if anyone knows how to tell the compiler to place this code inline and therefore get rid of the 13 cycle overhead, please let me know.
void Pulse(unsigned char Bit){
unsigned char i;
if(Bit==0){ //send 24 blips for a zero
for(i=0;i<24;i++){ //12 cycles
ir=1; //1
Delay13p3W(7); //1*3+13=16
ir=0; //1
Delay13p3W(24); //3*3+13=22
}
}else if(Bit==1){ //48 for a 1
for(i=0;i<48;i++){
ir=1;
Delay13p3W(7);
ir=0;
Delay13p3W(24);
}
}else{ //must be a start pulse
for(i=0;i<96;i++){ //so do 96 blips
ir=1;
Delay13p3W(7);
ir=0;
Delay13p3W(24);
}
}
Delay13p3W(250); //Do 600uS pause. 196*3+13 = 601
Delay13p3W(250); //do it again as we are at 8MHz
Delay13p3W(250);
Delay13p3W(236);
}
Actually Im making like a touch screen Remote controll system with some added coNtrol features like my pc and maybe my lights and some other things and of course my tv, dvd, surround sound