38.5KHz using the BS2P-40
Jeff Steencken
Posts: 32
I am trying to figure out what variables to use with the BS2P to achieve 38500 Hz. I have been studying page 123 of the basic stamp manual and can't seem to get the 38.5KHz. The most I read on the frequency meter is around 3 KHz. Can someone help with the proper variables?
Thank You
Thank You
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
I initially was using the freqout example from the IR Test program for the boe bot (FREQOUT 8, 1, 38500 ) with that code I was getting about 1 KHZ. Realizing that I am using a BS2p not a bs2 I reviewed page 123. Looking at the chart I divided 38500 by 3.77 and used 10212 for the Freq variable. I also changed the Period to 3, I am not sure that was correct.
The last code I tried was FREQOUT 8, 3, 10212. Thank you for your help.
Jeff
With FREQOUT 8, 3, 10212 it's giving 3msec bursts of 38500Hz
"FREQOUT 8, 1, 38500" gives 1msec bursts of.. a·value not allowed (0 - 32767, only)