EmbeddedRelated.com
Forums

interfacing a H21A1,2,3 IR detector with a BX24

Started by carolkysela April 29, 2005
On Fri, May 06, 2005 at 04:05:01PM -0500, Carol wrote:
> Has anyone stumbled across information on attempts to download code to a
> BX24 via RF or IR. One could not verify a download in the usual manner
> of course but still it would be a useful trick.

Maybe there's some kind of wireless relay you can get for serial/USB that
might do the trick in a roundabout way.

- Kevin



Mike, bxDism shows that global SeedPRNG is unreferenced; it seems to be
present whether Rnd is used or not. Is there any reason why I can't use
it as a long var?

It seems to work; is it used by the system anywhere else? Tom
Tom Becker
--... ...--
GTBecker@GTBe... www.RighTime.com
The RighTime Clock Company, Inc., Cape Coral, Florida USA
+1239 540 5700


Tom,

Yes I believe if you are not using random numbers then these 4 bytes are
safe to be reused for other purposes. Randomize seems to be the only
routine that writes to this memory location. Here is the BasicX
equivalent code for the system library routine Randomize() when I look
at is with bxDism.

Sub Randomize()
Dim t as Single
t = Timer()
Call BlockMove(4, MemAddressU(t), MemAddressU(sys~mathlibrary.sys~seedprng))
If sys~mathlibrary.sys~seedprng = 0 Then
sys~mathlibrary.sys~seedprng = 1
End If
End Sub

Mike
http://home.austin.rr.com/perks/basicx/bxDism/

> Mike, bxDism shows that global SeedPRNG is unreferenced; it seems to be
> present whether Rnd is used or not. Is there any reason why I can't use
> it as a long var?
>
> It seems to work; is it used by the system anywhere else? > Tom