In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Mag748 wrote:
[3]Hello again. I have been trying this Interrupt routine that you guys suggested and I don't know why, but I am having some kind of problem. I am still using the very basic test program that pulses the IR led at 40 KHz. I even used an oscope to determine the output and it is exactly 40000Hz at 50% duty cycle. And, using a 62 Ohm resistor, the LED is getting plenty of power. Yet, I still can only get the phototransistor to turn on if the unit is less than about 1 foot away. I have tried many different RETURNINT ## values and different clock speeds and different IR LEDs and different resistor values. But nothing seems to be working. I can't find any information on Google either. I can't understand either why it worked with a 555 timer. Anyway, if anyone can shed some light (Ill accept IR as well) on this subject, I'd be very grateful.[/3]
[3][/3]
[3]Thank you,[/3]
[3]Marcus.[/3]
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=116040#m118169
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)