Hi guys,
If anyone out there has experience with Infrared, I'd sure appreciate your input on this...
I'm attempting to make a simulated, defusable bomb for our Lazertag games, and I've only recently had some success in my attempts to get my 20m2 to talk to our lazertag guns.
After googling to hell and back, I've come across the info needed to both pulse accurately at 38khz,
setfreq m32
PWMOut IR,209, 421
and I've found the proper protocol to talk to our taggers
http://web.archive.org/web/20090304155723/http://lasertagparts.com/ltto.htm
Which successfully triggered damage responses on my Pheonix LTX tagger.
My problem lies in that all the operations I need the chip to perform, I'm going to be using the parallel tasking feature;
Which, to my knowledge, forcibly sets the clock freq to 16mhz, and executes operations at 4mhz.
After attempting to compensate by dropping pwmout (and the related pauses) down by a factor of 8 (also by using the wizard) to;
PWMOut IR,25, 52
I just can't get a response from the gun anymore, is it because the frequency accuracy is too far out of spec?
(also, at this juncture, I'm not attempting to run any additional tasks save for placeholder pauses to force the parallel tasking mode, and the only thing I have wired up is an emitter LED to a transistor, which functioned perfectly at the 32mhz setup)
If anyone out there has experience with Infrared, I'd sure appreciate your input on this...
I'm attempting to make a simulated, defusable bomb for our Lazertag games, and I've only recently had some success in my attempts to get my 20m2 to talk to our lazertag guns.
After googling to hell and back, I've come across the info needed to both pulse accurately at 38khz,
setfreq m32
PWMOut IR,209, 421
and I've found the proper protocol to talk to our taggers
http://web.archive.org/web/20090304155723/http://lasertagparts.com/ltto.htm
Which successfully triggered damage responses on my Pheonix LTX tagger.
My problem lies in that all the operations I need the chip to perform, I'm going to be using the parallel tasking feature;
Which, to my knowledge, forcibly sets the clock freq to 16mhz, and executes operations at 4mhz.
After attempting to compensate by dropping pwmout (and the related pauses) down by a factor of 8 (also by using the wizard) to;
PWMOut IR,25, 52
I just can't get a response from the gun anymore, is it because the frequency accuracy is too far out of spec?
(also, at this juncture, I'm not attempting to run any additional tasks save for placeholder pauses to force the parallel tasking mode, and the only thing I have wired up is an emitter LED to a transistor, which functioned perfectly at the 32mhz setup)