BS2sx to CMUcam 38.4 baud
Archiver
Posts: 46,084
Hi Tracy
As I recall we never could get the BS2SX to work reliably at 38.4 with the
CMUcam. I recall the problem was that after you execute a SEROUT command to
send a command to the CMUcam you then execute a SERIN to receive the data
from the camera and this is where the BS2SX was to slow, going from SEROUT
to SERIN. It would miss the first part of the return packet data. You might
try the CMUcam's DM command to add delays between each packet. I cannot
remember if we ever tried that. If you do try it let me know if you can get
it to work.
Thank you
Ron A. Nucci
Seattle Robotics
Original Message
From: <basicstamps@yahoogroups.com>
To: <basicstamps@yahoogroups.com>
Sent: Friday, November 07, 2003 6:00 PM
Subject: [noparse][[/noparse]basicstamps] Digest Number 2090
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
>
> There are 25 messages in this issue.
>
> Topics in this digest:
>
> 1. Re: help with a controller for a windgenerator powered heater
> From: "Dave Mucha" <davemucha@j...>
> 2. Re: help with a controller for a windgenerator powered heater
> From: "ECO" <ecourt@b...>
> 3. top baud for BS2SX
> From: "catgirldo" <catgirldo@y...>
> 4. RE: help with a controller for a windgenerator powered heater
> From: "Hall, Melvin GR" <HallMG@b...>
> 5. RE: Re: help with a controller for a windgenerator powered heater
> From: "Hall, Melvin GR" <HallMG@b...>
> 6. power saving methods, new to servos
> From: "stewartmayer" <stewlist@k...>
> 7. Re: Editor file size limit?
> From: "aa7ej" <aa7ej@y...>
> 8. Re: power saving methods, new to servos
> From: "Beau Schwabe" <bschwabe@a...>
> 9. Re: power saving methods, new to servos
> From: Dave Evartt <davee@a...>
> 10. hex to dec conversion
> From: "Jonathan Peakall" <jpeakall@p...>
> 11. Re: help with a controller for a windgenerator powered heater
> From: "Dave Mucha" <davemucha@j...>
> 12. Re: 16 bit signed multiply.
> From: Tracy Allen <tracy@e...>
> 13. Re: power saving methods, new to servos
> From: Tracy Allen <tracy@e...>
> 14. Re: top baud for BS2SX
> From: Tracy Allen <tracy@e...>
> 15. RE: hex to dec conversion
> From: "Al Williams" <alw@a...>
> 16. Re: top baud for BS2SX
> From: Matthew W Seniff <mwseniff@i...>
> 17. Re: hex to dec conversion
> From: "Jonathan Peakall" <jpeakall@p...>
> 18. Re: hex to dec conversion
> From: Tracy Allen <tracy@e...>
> 19. RE: hex to dec conversion
> From: "Al Williams" <alw@a...>
> 20. Re: hex to dec conversion
> From: "Allan Lane" <allan.lane@h...>
> 21. RE: hex to dec conversion
> From: "Al Williams" <alw@a...>
> 22. Pulsout - need longer pulse time
> From: "heatly5" <ralph.heatly@l...>
> 23. RE: Pulsout - need longer pulse time
> From: "Al Williams" <alw@a...>
> 24. Re: hex to dec conversion
> From: "Jonathan Peakall" <jpeakall@p...>
> 25. Re: Re: Editor file size limit?
> From: Bill Boyer <daweasel@s...>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 1
> Date: Fri, 07 Nov 2003 15:49:09 -0000
> From: "Dave Mucha" <davemucha@j...>
> Subject: Re: help with a controller for a windgenerator powered heater
>
> --- In basicstamps@yahoogroups.com, "hallmgr" <HallMG@b...> wrote:
> > Hello,
> >
> > I am looking for a controller for a small wall heater which will be
> > powered by a windgenerator. The output from the generator will be
> > around 0-100v dc at a maximum continuous of around 500w. When the
> > generator starts turning the voltage will begin to rise so the
> > controller will be required to gradually increase the load as it
> > gathers speed and decrease the load when it slows down. I am
> pretty
> > much a beginner at electronics so any help would be much
> appreciated.
> >
> > Regards
>
>
> I'm not sure I follow.
>
> as the wind speed changes, the heater increases ? that would make
> heat dependant on wind speed ?
>
>
> are you sure the voltage from the generator is not contorlled so you
> get 100VAC at any speed above "x" but the available amps changes with
> speed ?
>
> Dave
>
>
>
>
>
>
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 2
> Date: Fri, 7 Nov 2003 16:56:26 +0100
> From: "ECO" <ecourt@b...>
> Subject: Re: help with a controller for a windgenerator powered heater
>
> You need absolutely nothing.
> When the voltage rises, the current rises accordingly.
> You have to verify that a typhon will not burn the heater.
> Regards
> ECO
>
Original Message
> From: "hallmgr" <HallMG@b...>
> To: <basicstamps@yahoogroups.com>
> Sent: Friday, November 07, 2003 11:41 AM
> Subject: [noparse][[/noparse]basicstamps] help with a controller for a windgenerator powered
heater
>
>
> > Hello,
> >
> > I am looking for a controller for a small wall heater which will be
> > powered by a windgenerator. The output from the generator will be
> > around 0-100v dc at a maximum continuous of around 500w. When the
> > generator starts turning the voltage will begin to rise so the
> > controller will be required to gradually increase the load as it
> > gathers speed and decrease the load when it slows down. I am pretty
> > much a beginner at electronics so any help would be much appreciated.
> >
> > Regards
> >
> >
> >
> >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
> >
> >
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 3
> Date: Fri, 07 Nov 2003 15:13:06 -0000
> From: "catgirldo" <catgirldo@y...>
> Subject: top baud for BS2SX
>
> Does anyone know what the top baud rate would be for a BS2SX? The
> manual has asterix on 4800 and 9600 parameters and warnings that
> there might be communication problems. I just want a short haul to a
> CMUcam and I'm wondering if I can run 38400 on a direct TTL set up.
> Thanks in advance
>
>
> Steve
>
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 4
> Date: Fri, 7 Nov 2003 15:47:25 -0000
> From: "Hall, Melvin GR" <HallMG@b...>
> Subject: RE: help with a controller for a windgenerator powered heater
>
> I dont have a specific heater in mind for the job but I will probably just
use a 110v one. I am not sure what controls it will have.
>
>
Original Message
> From: Bruce Bates [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=pWH4dG3JoNwh7NgKS9NJ5c3kXoiS13p_mk2US5kC3iAJNzy_00FdE0_NmJacpZlWofR-MvmfXWGh1aea]bvbates@u...[/url
> Sent: 07 November 2003 14:38
> To: basicstamps@yahoogroups.com
> Subject: Re: [noparse][[/noparse]basicstamps] help with a controller for a windgenerator
> powered heater
>
>
> At 10:41 AM 11/7/03 +0000, hallmgr wrote:
> >Hello,
> >
> >I am looking for a controller for a small wall heater which will be
> >powered by a windgenerator. The output from the generator will be
> >around 0-100v dc at a maximum continuous of around 500w. When the
> >generator starts turning the voltage will begin to rise so the
> >controller will be required to gradually increase the load as it
> >gathers speed and decrease the load when it slows down. I am pretty
> >much a beginner at electronics so any help would be much appreciated.
> >
> >Regards
> >
> >If the heater has multiple settings (high, medium, low), you may be able
> >to tap
> >into that with relays. Perhpas you could describe the heater, or provide
a
> >link ?
> >
> >Bruce Bates
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 5
> Date: Fri, 7 Nov 2003 16:41:46 -0000
> From: "Hall, Melvin GR" <HallMG@b...>
> Subject: RE: Re: help with a controller for a windgenerator powered heater
>
> What I am looking for is some kind of controller which will allow the
windgenerator to get up to speed before connecting the load. Connecting all
the load in one go would be too much for the generator, it would probably
stall, so some kind of gradual loading would be required as the generator
increases speed to maintain optimum loading. The generator produces
unregulated dc from 0 to around 100v so so I thought the controller would be
able to monitor this to control the loading? All I require from the heater
is for it to deliver what heat it can depending on the power from the wind,
I dont need any specific heat settings other than an emergency cut out. The
generator has to be kept loaded when it is running or it will overspeed.
>
> Melvin.
>
>
Original Message
> From: Dave Mucha [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=-qKYaDWawnxeGqde03-OnC5dEKELYtH89es6aO_I3aJR2-Yd39YaqDtPHS1X9w5lc3C3r7YWKX6tk9E]davemucha@j...[/url
> Sent: 07 November 2003 15:49
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Re: help with a controller for a windgenerator
> powered heater
>
>
> --- In basicstamps@yahoogroups.com, "hallmgr" <HallMG@b...> wrote:
> > Hello,
> >
> > I am looking for a controller for a small wall heater which will be
> > powered by a windgenerator. The output from the generator will be
> > around 0-100v dc at a maximum continuous of around 500w. When the
> > generator starts turning the voltage will begin to rise so the
> > controller will be required to gradually increase the load as it
> > gathers speed and decrease the load when it slows down. I am
> pretty
> > much a beginner at electronics so any help would be much
> appreciated.
> >
> > Regards
>
>
> I'm not sure I follow.
>
> as the wind speed changes, the heater increases ? that would make
> heat dependant on wind speed ?
>
>
> are you sure the voltage from the generator is not contorlled so you
> get 100VAC at any speed above "x" but the available amps changes with
> speed ?
>
> Dave
>
>
>
>
>
>
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 6
> Date: Fri, 07 Nov 2003 17:21:33 -0000
> From: "stewartmayer" <stewlist@k...>
> Subject: power saving methods, new to servos
>
> I'm thinking of building a battery powered device where I wan't the
> stamp to take measurements from other ICs and move servos perhaps
> once a day. To save power I'll put the stamp in sleep mode, and i'd
> like to cut power off to the other components when they are not in
> use. My first thought is to use a transistor triggered from a stamp
> pin to control power to the extra devices, but the sleep command will
> momentarily interupt any output signal going to the transistor every
> 2.3 seconds. Could I put a capacitor at the output so that the
> transisotr wouldn't see the momentary interuption? Any better ideas
> on how to cut power to the extra parts when they are not in use?
>
> Also, this is my first time to use hobby servos with the pulseout
> command, when I stop sending the pulseout command, will the servo
> stay where it is or will it go back to center?
>
> thanks,
> Stew
>
>
>
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 7
> Date: Fri, 07 Nov 2003 17:50:25 -0000
> From: "aa7ej" <aa7ej@y...>
> Subject: Re: Editor file size limit?
>
> Allan,
> It's beginning to make sense.
> I am using V2.0 beta 2.1 and would expect some strange behavior (from
> beta), but this is dangerous because you actually loose you work!
> I suppose this was "dormant" because " real programmer does not write
> comments"!
> Actually your idea is very good, but it would be real neat if one
> could write a macro to accomplish that (hint hint Parallax gurus).
> While I am at it - Parallax - how about "block comments" feature like
> VB does?
> Also why is there menu item "New page" in editor when it actually
> creates new file?
> Vaclav
>
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 8
> Date: Fri, 07 Nov 2003 13:08:44 -0500
> From: "Beau Schwabe" <bschwabe@a...>
> Subject: Re: power saving methods, new to servos
>
> At 05:21 PM 11/7/03 +0000, you wrote:
> >I'm thinking of building a battery powered device where I wan't the
> >stamp to take measurements from other ICs and move servos perhaps
> >once a day. To save power I'll put the stamp in sleep mode, and i'd
> >like to cut power off to the other components when they are not in
> >use. My first thought is to use a transistor triggered from a stamp
> >pin to control power to the extra devices, but the sleep command will
> >momentarily interupt any output signal going to the transistor every
> >2.3 seconds. Could I put a capacitor at the output so that the
> >transisotr wouldn't see the momentary interuption? Any better ideas
> >on how to cut power to the extra parts when they are not in use?
> >
> >Also, this is my first time to use hobby servos with the pulseout
> >command, when I stop sending the pulseout command, will the servo
> >stay where it is or will it go back to center?
> >
> >thanks,
> > Stew
>
>
> I have done this in the past... basically you have the right idea.
> Assuming that any of the external circuits will not need power as
> long as the stamp is sleeping. Connect a bias resistor 100K or so
> across the BE junction of your transistor(s) so that a "floating"
> state on any of the stamp I/O's will be pulled to ground and keep
> your transistor off. Then, instead of "cutting" power to the
> device from your stamp, "supply" power to the device by powering
> the stamp I/O pin. Don't forget your current limiting resistor
> between the Stamp pin and the Base of the transistor.
>
>
> -Beau Schwabe
>
>
>
>
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 9
> Date: Fri, 7 Nov 2003 13:06:56 -0500
> From: Dave Evartt <davee@a...>
> Subject: Re: power saving methods, new to servos
>
> The servo will act as though it is unpowered once the signal
> is taken away. This means that the servo will return to the
> position that has the least amount of force on it.
> --
> Regards
>
> Dave Evartt
> American Hovercraft
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 10
> Date: Fri, 7 Nov 2003 10:15:34 -0800
> From: "Jonathan Peakall" <jpeakall@p...>
> Subject: hex to dec conversion
>
> Hi all,
>
> Once again, not paying attention in math class bites me...
>
> I am reciving the Julian date in BCD format from an Ultralink clock. I am
> having problems converting it to dec format. I looked at Tracy's site, and
> still couldn't get it to work. My code is like this:
>
>
> rawYear var word
>
>
> main:
>
> serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), hex3 rawDays
>
> goto main
>
> Now, if I add a debug which says:
>
> debug hex3 rawDays, cr
>
> Of course I get the right number. I just can't seem to switch it to DEC
> format.
>
> Thanks!
>
> Jonathan
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 11
> Date: Fri, 07 Nov 2003 18:21:03 -0000
> From: "Dave Mucha" <davemucha@j...>
> Subject: Re: help with a controller for a windgenerator powered heater
>
> --- In basicstamps@yahoogroups.com, "Hall, Melvin GR" <HallMG@b...>
> wrote:
> > What I am looking for is some kind of controller which will allow
> the windgenerator to get up to speed before connecting the load.
> Connecting all the load in one go would be too much for the
> generator, it would probably stall, so some kind of gradual loading
> would be required as the generator increases speed to maintain
> optimum loading. The generator produces unregulated dc from 0 to
> around 100v so so I thought the controller would be able to monitor
> this to control the loading? All I require from the heater is for
> it to deliver what heat it can depending on the power from the wind,
> I dont need any specific heat settings other than an emergency cut
> out. The generator has to be kept loaded when it is running or it
> will overspeed.
> >
> > Melvin.
>
> The heater is a resistive load. as the generator increases above
> zero, the get some voltage and some current. do ohms law on what you
> can find on the spec sheet for the unit.
>
> the heater will not prevent the generator from turning as it cannot
> get 10 amps when only 1/10th amp is being generated.
>
> It seems like you have the easist setup. the heater is a resistive
> load and will just follow the curve of voltage and amps as the
> generator changes speed.
>
> Storage Batteries on the other hand are much more sensitive to a very
> narrow voltage band and require electronics.
>
> If you are just looking for a project, considder a voltage monitor
> that turns on different heaters at different voltages. maybe even a
> fan will be turned at some voltage and a voltage regulation circuit
> to keep the fan voltage constant.
>
>
> Dave
>
>
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 12
> Date: Fri, 7 Nov 2003 10:29:49 -0800
> From: Tracy Allen <tracy@e...>
> Subject: Re: 16 bit signed multiply.
>
> The trick here is that you want to multiply two signed 16 bit numbers
> (sign in bit 15) to get a signed 32 bit result (sign in bit 31).
>
> In one method to do this, the first step is to extend the sign to 32
> bits, and then just multiply them together:
> X0 = -5 ' low word of X
> Y0 = -2 ' low word of Y
> X1 = -X0.bit15 ' high word of X
> Y1 = -Y0.bit15 ' high word of Y
> Z0 = X0 * Y0 ' low word of 32 bit signed product
> Z1 = X1 ** Y1 ' high word of 32 bit signed product
>
> Another method is to multiply together the absolute values of the
> numbers, and then extend the sign:
> Z0 = ABS X0 * ABS Y0
> Z1 = ABS X1 ** ABS Y1
> IF X0.bit15 ^ Y0.bit15 = 1 THEN ' conditional negation
> Z0=~Z0+1 ' ~ is the NOT operator
> IF Z0=0 THEN Z1=~Z1+1 ' conditional carry
> ENDIF
>
> There is more info about this on the page that Adrian kindly mentioned.
>
> -- Tracy
>
>
>
> >have a look at
> >
> >http://www.emesystems.com/BS2math6.htm
> >
> >allways keep this website in mind for questions about any aspect
> >of basic stamps.
> >
> >regards
> >adrian
> >
>
> >>I am relativly new to programming basic stamps. Does anyone know of a
> >>routine for signed 16-bit by signed 16-bit multiply that yields a
> >>signed 32-bit resuslt? Thank you!
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 13
> Date: Fri, 7 Nov 2003 10:36:27 -0800
> From: Tracy Allen <tracy@e...>
> Subject: Re: power saving methods, new to servos
>
> >I'm thinking of building a battery powered device where I wan't the
> >stamp to take measurements from other ICs and move servos perhaps
> >once a day. To save power I'll put the stamp in sleep mode, and i'd
> >like to cut power off to the other components when they are not in
> >use. My first thought is to use a transistor triggered from a stamp
> >pin to control power to the extra devices, but the sleep command will
> >momentarily interupt any output signal going to the transistor every
> >2.3 seconds. Could I put a capacitor at the output so that the
> >transisotr wouldn't see the momentary interuption? Any better ideas
> >on how to cut power to the extra parts when they are not in use?
> >
> >Also, this is my first time to use hobby servos with the pulseout
> >command, when I stop sending the pulseout command, will the servo
> >stay where it is or will it go back to center?
> >
> >thanks,
> > Stew
>
>
> Hi Stew,
>
> The capacitor idea works fine for me. On the most of the Stamps, the
> interruption is about 18 milliseconds, so the capacitor has to hold
> the transistor ON (or OFF as the case may be) for that length of
> time. (The interruption on the BS2pe is only 0.1 millisecond, in
> contrast to the other Stamps). I usually use an IC voltage regulator
> for this purpose, instead of a transistor. The LT1121 turns off
> when its "shutdown" line is pulled low, and turns on when SD\ is
> pulled high or left floating.
>
> -- Tracy
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 14
> Date: Fri, 7 Nov 2003 10:47:12 -0800
> From: Tracy Allen <tracy@e...>
> Subject: Re: top baud for BS2SX
>
> > Does anyone know what the top baud rate would be for a BS2SX? The
> >manual has asterix on 4800 and 9600 parameters and warnings that
> >there might be communication problems. I just want a short haul to a
> >CMUcam and I'm wondering if I can run 38400 on a direct TTL set up.
> > Thanks in advance
> >
> >Steve
>
>
> Hi Steve,
>
> The highest baud rate for the 'SX is theoretically 125 kbaud when the
> baudmode parameter is zero. You should have no trouble achieving
> 38.4.
>
> I think the business in the manual about communications problems is a
> bit misleading. The difficulties they speak of come about mainly
> when you are trying to receive data from external devices over which
> you have no control, and which are spitting out long strings of data
> at a high baud rate with no extra inter-byte padding beyond the
> standard 1 stop bit. The SERIN command modifiers like DEC or WAIT or
> SKIP take some time to interpret in the Stamp, and it is likely to
> miscue and garble the incoming message. Also, the hardware flow
> control on the Stamp works byte by byte, and some external devices,
> even though they implement some kind of hardware flow control, do so
> on a buffer that may send several bytes before the flow control is
> recognized. If you do in fact have control over both ends of the
> communication, or you can be sure that there is a little extra
> breathing room between the bytes, you can push the Stamp almost to
> its limit. At the very limit on the SX, 125 kbaud, the bit timing
> will be dicey, but there should not be much problem at 38.4 with
> individual bytes.
>
> -- Tracy
> http://www.emesystems.com/BS2rs232.htm#Baudmode <-- table of baud
rates
>
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 15
> Date: Fri, 7 Nov 2003 12:58:29 -0600
> From: "Al Williams" <alw@a...>
> Subject: RE: hex to dec conversion
>
> There are a few ways to do this. The most blatant one is:
>
> Euyear=(rawyear>>8)*100+((rawyear&$F0)>>4)*10 + (rawyear&$F)
>
> I think that will work. You could make it easier by reading the bytes
> separate:
> serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), a,b,c
> year=(a-"0")*100+(b-"0")*10+(c-"0")
>
> or maybe:
>
> serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), dec1 a, dec1 b, dec1 c
> year=a*100+(b*10)+c
>
> Something like that?
>
> Regards,
>
> Al Williams
> AWC
> *8 channels of PWM:
> http://www.al-williams.com/pak5.htm
>
>
>
> >
Original Message
> > From: Jonathan Peakall [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=cZLb25-OVlsCZFsfdzONH-dvT8SAsMpfQ50m4gHB_0NE-T65zY5KVUJWyfv95XKgEVBX-D9DEH6n--ciW9uo]jpeakall@p...[/url
> > Sent: Friday, November 07, 2003 12:16 PM
> > To: basicstamps@yahoogroups.com
> > Subject: [noparse][[/noparse]basicstamps] hex to dec conversion
> >
> >
> > Hi all,
> >
> > Once again, not paying attention in math class bites me...
> >
> > I am reciving the Julian date in BCD format from an Ultralink
> > clock. I am having problems converting it to dec format. I
> > looked at Tracy's site, and still couldn't get it to work. My
> > code is like this:
> >
> >
> > rawYear var word
> >
> >
> > main:
> >
> > serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), hex3 rawDays
> >
> > goto main
> >
> > Now, if I add a debug which says:
> >
> > debug hex3 rawDays, cr
> >
> > Of course I get the right number. I just can't seem to switch
> > it to DEC format.
> >
> > Thanks!
> >
> > Jonathan
> >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the
> > Subject and Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> >
> >
> >
> >
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 16
> Date: Fri, 07 Nov 2003 13:13:48 -0600
> From: Matthew W Seniff <mwseniff@i...>
> Subject: Re: top baud for BS2SX
>
> What would the top baud rate be for a BS2. I am doing a project that needs
> to talk to a serial port at 38400, I don't need to receive anything back
> just send some hex values similar to the earlier discussion to control a
> Sony projector. Thanks in advance for any answers. matt
>
>
> At 10:47 AM 11/7/2003 -0800, you wrote:
> > > Does anyone know what the top baud rate would be for a BS2SX? The
> > >manual has asterix on 4800 and 9600 parameters and warnings that
> > >there might be communication problems. I just want a short haul to a
> > >CMUcam and I'm wondering if I can run 38400 on a direct TTL set up.
> > > Thanks in advance
> > >
> > >Steve
> >
> >
> >Hi Steve,
> >
> >The highest baud rate for the 'SX is theoretically 125 kbaud when the
> >baudmode parameter is zero. You should have no trouble achieving
> >38.4.
> >
> >I think the business in the manual about communications problems is a
> >bit misleading. The difficulties they speak of come about mainly
> >when you are trying to receive data from external devices over which
> >you have no control, and which are spitting out long strings of data
> >at a high baud rate with no extra inter-byte padding beyond the
> >standard 1 stop bit. The SERIN command modifiers like DEC or WAIT or
> >SKIP take some time to interpret in the Stamp, and it is likely to
> >miscue and garble the incoming message. Also, the hardware flow
> >control on the Stamp works byte by byte, and some external devices,
> >even though they implement some kind of hardware flow control, do so
> >on a buffer that may send several bytes before the flow control is
> >recognized. If you do in fact have control over both ends of the
> >communication, or you can be sure that there is a little extra
> >breathing room between the bytes, you can push the Stamp almost to
> >its limit. At the very limit on the SX, 125 kbaud, the bit timing
> >will be dicey, but there should not be much problem at 38.4 with
> >individual bytes.
> >
> > -- Tracy
> > http://www.emesystems.com/BS2rs232.htm#Baudmode <-- table of baud
rates
> >
> >
> >
> >To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> >from the same email address that you subscribed. Text in the Subject and
> >Body of the message will be ignored.
> >
> >
> >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
> Matt Seniff
> Principle Electronic Technician
> Classroom Technology Support Services
> Illinois State University
> PH 309-438-7734
> FAX 309-438-3623
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 17
> Date: Fri, 7 Nov 2003 11:14:31 -0800
> From: "Jonathan Peakall" <jpeakall@p...>
> Subject: Re: hex to dec conversion
>
> Al,
>
> Substituting "days" for "years" in your code I get the same results I get
> from code I made using Tracy's site. The current day (Julian) is 310, but
> your code returns 011. I am doing days, not years, is that it?
>
> Thanks for the help,
>
> Jonathan
>
>
Original Message
> From: "Al Williams" <alw@a...>
> To: <basicstamps@yahoogroups.com>
> Sent: Friday, November 07, 2003 10:58 AM
> Subject: RE: [noparse][[/noparse]basicstamps] hex to dec conversion
>
>
> > There are a few ways to do this. The most blatant one is:
> >
> > Euyear=(rawyear>>8)*100+((rawyear&$F0)>>4)*10 + (rawyear&$F)
> >
> > I think that will work. You could make it easier by reading the bytes
> > separate:
> > serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), a,b,c
> > year=(a-"0")*100+(b-"0")*10+(c-"0")
> >
> > or maybe:
> >
> > serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), dec1 a, dec1 b, dec1 c
> > year=a*100+(b*10)+c
> >
> > Something like that?
> >
> > Regards,
> >
> > Al Williams
> > AWC
> > *8 channels of PWM:
> > http://www.al-williams.com/pak5.htm
> >
> >
> >
> > >
Original Message
> > > From: Jonathan Peakall [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=cZLb25-OVlsCZFsfdzONH-dvT8SAsMpfQ50m4gHB_0NE-T65zY5KVUJWyfv95XKgEVBX-D9DEH6n--ciW9uo]jpeakall@p...[/url
> > > Sent: Friday, November 07, 2003 12:16 PM
> > > To: basicstamps@yahoogroups.com
> > > Subject: [noparse][[/noparse]basicstamps] hex to dec conversion
> > >
> > >
> > > Hi all,
> > >
> > > Once again, not paying attention in math class bites me...
> > >
> > > I am reciving the Julian date in BCD format from an Ultralink
> > > clock. I am having problems converting it to dec format. I
> > > looked at Tracy's site, and still couldn't get it to work. My
> > > code is like this:
> > >
> > >
> > > rawYear var word
> > >
> > >
> > > main:
> > >
> > > serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), hex3 rawDays
> > >
> > > goto main
> > >
> > > Now, if I add a debug which says:
> > >
> > > debug hex3 rawDays, cr
> > >
> > > Of course I get the right number. I just can't seem to switch
> > > it to DEC format.
> > >
> > > Thanks!
> > >
> > > Jonathan
> > >
> > >
> > > To UNSUBSCRIBE, just send mail to:
> > > basicstamps-unsubscribe@yahoogroups.com
> > > from the same email address that you subscribed. Text in the
> > > Subject and Body of the message will be ignored.
> > >
> > >
> > > Your use of Yahoo! Groups is subject to
> > > http://docs.yahoo.com/info/terms/
> > >
> > >
> > >
> > >
> >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the Subject
and
> Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
> >
> >
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 18
> Date: Fri, 7 Nov 2003 11:14:33 -0800
> From: Tracy Allen <tracy@e...>
> Subject: Re: hex to dec conversion
>
> >Hi all,
> >Once again, not paying attention in math class bites me...
> >I am reciving the Julian date in BCD format from an Ultralink clock. I am
> >having problems converting it to dec format. I looked at Tracy's site,
and
> >still couldn't get it to work. My code is like this:
> >rawYear var word
> >
> >main:
> >serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), hex3 rawDays
> >goto main
> >Now, if I add a debug which says:
> >debug hex3 rawDays, cr
> >Of course I get the right number. I just can't seem to switch it to DEC
> >format.
> >Thanks!
> >Jonathan
>
>
> Hi Jonathan,
>
> The calculation goes as follows:
>
> decdays = rawdays.nib2 * 10 + rawdays.nib1 * 10 + rawdays.nib0
> DEBUG DEC decdays, CR
> That is the ordinal day of the year. The clock also gives a flag
> that tells if the current year is a leap year or not. The code here
> http://www.emesystems.com/BS2math4.htm#JulianDate
> describes how to change the ordinal date into YY:MM[noparse]:D[/noparse]D format.
>
> Which model clock are you using? <http://www.ulio.com> I have the
> older OEM model that Parallax used to sell, now seemingly
> discontinued. But the string you have, "wait("B"), hex3 rawDays"
> does not match what I was familiar with. The old OEM model had a
> choice of packed BCD or ascii BCD responses. I was quite hip to it
> at the time, because I was beta testing the interface.
>
> -- Tracy
>
>
>
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 19
> Date: Fri, 7 Nov 2003 13:23:47 -0600
> From: "Al Williams" <alw@a...>
> Subject: RE: hex to dec conversion
>
> Doh. I always forget about the .nib stuff. I keep thinking in assembly and
> writing in Basic :-)
>
> Al Williams
> AWC
> * Easy RS232 prototyping:
> http://www.al-williams.com/rs1.htm
>
>
> >
Original Message
> > From: Tracy Allen [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=ucPgqALIqphurbsuDTRyIAzEIs2Em7y_vaR8smn_RSiOdpfqym1gSezTilrwXopQepn6WUTo_ECWY00]tracy@e...[/url
> > Sent: Friday, November 07, 2003 1:15 PM
> > To: basicstamps@yahoogroups.com
> > Subject: Re: [noparse][[/noparse]basicstamps] hex to dec conversion
> >
> >
> > >Hi all,
> > >Once again, not paying attention in math class bites me...
> > >I am reciving the Julian date in BCD format from an
> > Ultralink clock. I
> > >am having problems converting it to dec format. I looked at Tracy's
> > >site, and still couldn't get it to work. My code is like
> > this: rawYear
> > >var word
> > >
> > >main:
> > >serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), hex3 rawDays
> > >goto main
> > >Now, if I add a debug which says:
> > >debug hex3 rawDays, cr
> > >Of course I get the right number. I just can't seem to
> > switch it to DEC
> > >format. Thanks!
> > >Jonathan
> >
> >
> > Hi Jonathan,
> >
> > The calculation goes as follows:
> >
> > decdays = rawdays.nib2 * 10 + rawdays.nib1 * 10 + rawdays.nib0
> > DEBUG DEC decdays, CR
> > That is the ordinal day of the year. The clock also gives a flag
> > that tells if the current year is a leap year or not. The code here
> > http://www.emesystems.com/BS2math4.htm#JulianDate
> > describes how to change the ordinal date into YY:MM[noparse]:D[/noparse]D format.
> >
> > Which model clock are you using? <http://www.ulio.com> I have the
> > older OEM model that Parallax used to sell, now seemingly
> > discontinued. But the string you have, "wait("B"), hex3 rawDays"
> > does not match what I was familiar with. The old OEM model had a
> > choice of packed BCD or ascii BCD responses. I was quite hip to it
> > at the time, because I was beta testing the interface.
> >
> > -- Tracy
> >
> >
> >
> >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the
> > Subject and Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> >
> >
> >
> >
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 20
> Date: Fri, 07 Nov 2003 19:52:42 -0000
> From: "Allan Lane" <allan.lane@h...>
> Subject: Re: hex to dec conversion
>
> DecDays VAR WORD
>
> DecDays = (rawyear.Nib2 * 100) + (rawyear.Nib1 * 10) + rawyear.Nib0
>
>
> --- In basicstamps@yahoogroups.com, "Al Williams" <alw@a...> wrote:
> > There are a few ways to do this. The most blatant one is:
> >
> > Euyear=(rawyear>>8)*100+((rawyear&$F0)>>4)*10 + (rawyear&$F)
> >
> > I think that will work. You could make it easier by reading the
> bytes
> > separate:
> > serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), a,b,c
> > year=(a-"0")*100+(b-"0")*10+(c-"0")
> >
> > or maybe:
> >
> > serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), dec1 a, dec1 b, dec1 c
> > year=a*100+(b*10)+c
> >
> > Something like that?
> >
> > Regards,
> >
> > Al Williams
> > AWC
> > *8 channels of PWM:
> > http://www.al-williams.com/pak5.htm
> >
> >
> >
> > >
Original Message
> > > From: Jonathan Peakall [noparse][[/noparse]mailto:jpeakall@p...]
> > > Sent: Friday, November 07, 2003 12:16 PM
> > > To: basicstamps@yahoogroups.com
> > > Subject: [noparse][[/noparse]basicstamps] hex to dec conversion
> > >
> > >
> > > Hi all,
> > >
> > > Once again, not paying attention in math class bites me...
> > >
> > > I am reciving the Julian date in BCD format from an Ultralink
> > > clock. I am having problems converting it to dec format. I
> > > looked at Tracy's site, and still couldn't get it to work. My
> > > code is like this:
> > >
> > >
> > > rawYear var word
> > >
> > >
> > > main:
> > >
> > > serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), hex3 rawDays
> > >
> > > goto main
> > >
> > > Now, if I add a debug which says:
> > >
> > > debug hex3 rawDays, cr
> > >
> > > Of course I get the right number. I just can't seem to switch
> > > it to DEC format.
> > >
> > > Thanks!
> > >
> > > Jonathan
> > >
> > >
> > > To UNSUBSCRIBE, just send mail to:
> > > basicstamps-unsubscribe@yahoogroups.com
> > > from the same email address that you subscribed. Text in the
> > > Subject and Body of the message will be ignored.
> > >
> > >
> > > Your use of Yahoo! Groups is subject to
> > > http://docs.yahoo.com/info/terms/
> > >
> > >
> > >
> > >
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 21
> Date: Fri, 7 Nov 2003 14:06:14 -0600
> From: "Al Williams" <alw@a...>
> Subject: RE: hex to dec conversion
>
> Hmm.. is it BCD or ASCII BCD. In other words, is 310 showing up as $310 or
> $33 $31 $30 (ASCII)?
>
> Your original code says:
> serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), hex3 rawDays
>
> The hex3 makes me think you are getting $33 $31 $30, right? Otherwise,
that
> might be your problem right there.
>
> Al Williams
> AWC
> * Connect a PS/2 keyboard or mouse to any microcontroller:
> http://www.al-williams.com/pak6.htm
>
>
> >
Original Message
> > From: Jonathan Peakall [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=cZLb25-OVlsCZFsfdzONH-dvT8SAsMpfQ50m4gHB_0NE-T65zY5KVUJWyfv95XKgEVBX-D9DEH6n--ciW9uo]jpeakall@p...[/url
> > Sent: Friday, November 07, 2003 1:15 PM
> > To: basicstamps@yahoogroups.com
> > Subject: Re: [noparse][[/noparse]basicstamps] hex to dec conversion
> >
> >
> > Al,
> >
> > Substituting "days" for "years" in your code I get the same
> > results I get from code I made using Tracy's site. The
> > current day (Julian) is 310, but your code returns 011. I am
> > doing days, not years, is that it?
> >
> > Thanks for the help,
> >
> > Jonathan
> >
> >
Original Message
> > From: "Al Williams" <alw@a...>
> > To: <basicstamps@yahoogroups.com>
> > Sent: Friday, November 07, 2003 10:58 AM
> > Subject: RE: [noparse][[/noparse]basicstamps] hex to dec conversion
> >
> >
> > > There are a few ways to do this. The most blatant one is:
> > >
> > > Euyear=(rawyear>>8)*100+((rawyear&$F0)>>4)*10 + (rawyear&$F)
> > >
> > > I think that will work. You could make it easier by reading
> > the bytes
> > > separate:
> > > serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), a,b,c
> > > year=(a-"0")*100+(b-"0")*10+(c-"0")
> > >
> > > or maybe:
> > >
> > > serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), dec1 a, dec1 b, dec1 c
> > > year=a*100+(b*10)+c
> > >
> > > Something like that?
> > >
> > > Regards,
> > >
> > > Al Williams
> > > AWC
> > > *8 channels of PWM:
> > > http://www.al-williams.com/pak5.htm
> > >
> > >
> > >
> > > >
Original Message
> > > > From: Jonathan Peakall [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=cZLb25-OVlsCZFsfdzONH-dvT8SAsMpfQ50m4gHB_0NE-T65zY5KVUJWyfv95XKgEVBX-D9DEH6n--ciW9uo]jpeakall@p...[/url
> > > > Sent: Friday, November 07, 2003 12:16 PM
> > > > To: basicstamps@yahoogroups.com
> > > > Subject: [noparse][[/noparse]basicstamps] hex to dec conversion
> > > >
> > > >
> > > > Hi all,
> > > >
> > > > Once again, not paying attention in math class bites me...
> > > >
> > > > I am reciving the Julian date in BCD format from an
> > Ultralink clock.
> > > > I am having problems converting it to dec format. I looked at
> > > > Tracy's site, and still couldn't get it to work. My code is like
> > > > this:
> > > >
> > > >
> > > > rawYear var word
> > > >
> > > >
> > > > main:
> > > >
> > > > serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), hex3 rawDays
> > > >
> > > > goto main
> > > >
> > > > Now, if I add a debug which says:
> > > >
> > > > debug hex3 rawDays, cr
> > > >
> > > > Of course I get the right number. I just can't seem to
> > switch it to
> > > > DEC format.
> > > >
> > > > Thanks!
> > > >
> > > > Jonathan
> > > >
> > > >
> > > > To UNSUBSCRIBE, just send mail to:
> > > > basicstamps-unsubscribe@yahoogroups.com
> > > > from the same email address that you subscribed. Text in the
> > > > Subject and Body of the message will be ignored.
> > > >
> > > >
> > > > Your use of Yahoo! Groups is subject to
> > > > http://docs.yahoo.com/info/terms/
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > > To UNSUBSCRIBE, just send mail to:
> > > basicstamps-unsubscribe@yahoogroups.com
> > > from the same email address that you subscribed. Text in
> > the Subject
> > > and
> > Body of the message will be ignored.
> > >
> > >
> > > Your use of Yahoo! Groups is subject to
> > > http://docs.yahoo.com/info/terms/
> > >
> > >
> > >
> > >
> >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the
> > Subject and Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
>
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 22
> Date: Fri, 07 Nov 2003 22:53:11 -0000
> From: "heatly5" <ralph.heatly@l...>
> Subject: Pulsout - need longer pulse time
>
> I'm using a BS2sx and need a longer pulse time than is possible
> and do not want to change to a slower Stamp.
> Can the equivalent to PULSOUT be programmed using other
> command?
>
> Thanks
>
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 23
> Date: Fri, 7 Nov 2003 17:49:42 -0600
> From: "Al Williams" <alw@a...>
> Subject: RE: Pulsout - need longer pulse time
>
> I would guess you could do something like:
>
> HIGH 5
> PAUSE 1
> LOW 5
>
> The trick is measuring empirically the duration it takes the Stamp to read
> the instructions and execute between the HIGH and the LOW. The simplistic
> take would be that the above pulse would be 1mS in duration, but that is
> almost certainly not true. What's more is that the duration could vary
> depending on where the instructions reside in memory (in other words, if
the
> instructions straddle byte boundaries or not). So What you could do is use
> the above fragment and "calibrate" by changing the length of the pause. As
> the constant number gets bigger, the timing may change. So PAUSE 100 may
not
> be 100x longer than PAUSE 1 because the overhead of loading a constant 1
is
> probably less than loading a constant 100 (the Stamp uses varying bit
> lengths for encoding things).
>
> You could also try to get finer control by using other commands. For
> example:
>
> HIGH 5
> PAUSE 1
> PULSOUT 15,100 ' Pin 15 is not really used -- this is a dummy PULSOUT
> LOW 5
>
> This might give you better than 1mS tuning. Of course, it means pin 15 (or
> whatever) goes to waste.
>
> Hope that helps.
>
> Al Williams
> AWC
> *NEW: PAK-XI turns a mouse into an X/Y position sensor
> http://www.al-williams.com/pak11.htm
>
>
> >
Original Message
> > From: heatly5 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=wG0r6rCaoxlhr5aA-nuWmXIvfkg4-JeoqBEVluE6pJiSFdkt4qtL5gyJytDxFiBkL0WrDevh9N0LBz-XuDU]ralph.heatly@l...[/url
> > Sent: Friday, November 07, 2003 4:53 PM
> > To: basicstamps@yahoogroups.com
> > Subject: [noparse][[/noparse]basicstamps] Pulsout - need longer pulse time
> >
> >
> > I'm using a BS2sx and need a longer pulse time than is
> > possible and do not want to change to a slower Stamp. Can the
> > equivalent to PULSOUT be programmed using other command?
> >
> > Thanks
> >
> >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the
> > Subject and Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> >
> >
> >
> >
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 24
> Date: Fri, 7 Nov 2003 16:26:26 -0800
> From: "Jonathan Peakall" <jpeakall@p...>
> Subject: Re: hex to dec conversion
>
> Al, Tracy,
>
> The code you gave, of course, works. I just made a little program to watch
> all the math happen, and I think I get it. Maybe. Why wasn't I given the
> math gene?
>
> On your page it gives the formula:
>
> DD = DD.nib1 * 10 + DD.nib0 ' BCD to binary conversion of day
>
> Looking through the example code, I thought that would apply to me. Why
> doesn't it?
>
> I am using the old OEM module, the 325B, I think it is. The WAIT("B") is
> because the Stamp is actually receiving the data from a 433mHz receiver. I
> have the WWVB module hooked up to a 433mHz transmitter so that any of my
> projects that need the time can get it using a cheap receiver, with no
need
> to include I/O or code for setting the time and date. It's a great system,
I
> have three projects using it so far and more to come. All I need is to get
> the date going, (one of the projects finally needs more than the time) and
> with your and Al's help, I think I have it licked.
>
> Doh! I shouldn't have said that! Now I'll need to ask a question for sure!
> *knocks wood*
>
>
> Jonathan
>
>
>
>
Original Message
> From: "Tracy Allen" <tracy@e...>
> To: <basicstamps@yahoogroups.com>
> Sent: Friday, November 07, 2003 11:14 AM
> Subject: Re: [noparse][[/noparse]basicstamps] hex to dec conversion
>
>
> > >Hi all,
> > >Once again, not paying attention in math class bites me...
> > >I am reciving the Julian date in BCD format from an Ultralink clock. I
am
> > >having problems converting it to dec format. I looked at Tracy's site,
> and
> > >still couldn't get it to work. My code is like this:
> > >rawYear var word
> > >
> > >main:
> > >serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), hex3 rawDays
> > >goto main
> > >Now, if I add a debug which says:
> > >debug hex3 rawDays, cr
> > >Of course I get the right number. I just can't seem to switch it to DEC
> > >format.
> > >Thanks!
> > >Jonathan
> >
> >
> > Hi Jonathan,
> >
> > The calculation goes as follows:
> >
> > decdays = rawdays.nib2 * 10 + rawdays.nib1 * 10 + rawdays.nib0
> > DEBUG DEC decdays, CR
> > That is the ordinal day of the year. The clock also gives a flag
> > that tells if the current year is a leap year or not. The code here
> > http://www.emesystems.com/BS2math4.htm#JulianDate
> > describes how to change the ordinal date into YY:MM[noparse]:D[/noparse]D format.
> >
> > Which model clock are you using? <http://www.ulio.com> I have the
> > older OEM model that Parallax used to sell, now seemingly
> > discontinued. But the string you have, "wait("B"), hex3 rawDays"
> > does not match what I was familiar with. The old OEM model had a
> > choice of packed BCD or ascii BCD responses. I was quite hip to it
> > at the time, because I was beta testing the interface.
> >
> > -- Tracy
> >
> >
> >
> >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the Subject
and
> Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
> >
> >
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 25
> Date: 07 Nov 2003 19:59:34 -0600
> From: Bill Boyer <daweasel@s...>
> Subject: Re: Re: Editor file size limit?
>
> There is or was an issue with the Stamp Editor concerning too-long lines
> of text. The text would "disappear" if you tried to make your remarks
> too long on one line.
>
> > It's beginning to make sense.
> > I am using V2.0 beta 2.1 and would expect
As I recall we never could get the BS2SX to work reliably at 38.4 with the
CMUcam. I recall the problem was that after you execute a SEROUT command to
send a command to the CMUcam you then execute a SERIN to receive the data
from the camera and this is where the BS2SX was to slow, going from SEROUT
to SERIN. It would miss the first part of the return packet data. You might
try the CMUcam's DM command to add delays between each packet. I cannot
remember if we ever tried that. If you do try it let me know if you can get
it to work.
Thank you
Ron A. Nucci
Seattle Robotics
Original Message
From: <basicstamps@yahoogroups.com>
To: <basicstamps@yahoogroups.com>
Sent: Friday, November 07, 2003 6:00 PM
Subject: [noparse][[/noparse]basicstamps] Digest Number 2090
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
>
> There are 25 messages in this issue.
>
> Topics in this digest:
>
> 1. Re: help with a controller for a windgenerator powered heater
> From: "Dave Mucha" <davemucha@j...>
> 2. Re: help with a controller for a windgenerator powered heater
> From: "ECO" <ecourt@b...>
> 3. top baud for BS2SX
> From: "catgirldo" <catgirldo@y...>
> 4. RE: help with a controller for a windgenerator powered heater
> From: "Hall, Melvin GR" <HallMG@b...>
> 5. RE: Re: help with a controller for a windgenerator powered heater
> From: "Hall, Melvin GR" <HallMG@b...>
> 6. power saving methods, new to servos
> From: "stewartmayer" <stewlist@k...>
> 7. Re: Editor file size limit?
> From: "aa7ej" <aa7ej@y...>
> 8. Re: power saving methods, new to servos
> From: "Beau Schwabe" <bschwabe@a...>
> 9. Re: power saving methods, new to servos
> From: Dave Evartt <davee@a...>
> 10. hex to dec conversion
> From: "Jonathan Peakall" <jpeakall@p...>
> 11. Re: help with a controller for a windgenerator powered heater
> From: "Dave Mucha" <davemucha@j...>
> 12. Re: 16 bit signed multiply.
> From: Tracy Allen <tracy@e...>
> 13. Re: power saving methods, new to servos
> From: Tracy Allen <tracy@e...>
> 14. Re: top baud for BS2SX
> From: Tracy Allen <tracy@e...>
> 15. RE: hex to dec conversion
> From: "Al Williams" <alw@a...>
> 16. Re: top baud for BS2SX
> From: Matthew W Seniff <mwseniff@i...>
> 17. Re: hex to dec conversion
> From: "Jonathan Peakall" <jpeakall@p...>
> 18. Re: hex to dec conversion
> From: Tracy Allen <tracy@e...>
> 19. RE: hex to dec conversion
> From: "Al Williams" <alw@a...>
> 20. Re: hex to dec conversion
> From: "Allan Lane" <allan.lane@h...>
> 21. RE: hex to dec conversion
> From: "Al Williams" <alw@a...>
> 22. Pulsout - need longer pulse time
> From: "heatly5" <ralph.heatly@l...>
> 23. RE: Pulsout - need longer pulse time
> From: "Al Williams" <alw@a...>
> 24. Re: hex to dec conversion
> From: "Jonathan Peakall" <jpeakall@p...>
> 25. Re: Re: Editor file size limit?
> From: Bill Boyer <daweasel@s...>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 1
> Date: Fri, 07 Nov 2003 15:49:09 -0000
> From: "Dave Mucha" <davemucha@j...>
> Subject: Re: help with a controller for a windgenerator powered heater
>
> --- In basicstamps@yahoogroups.com, "hallmgr" <HallMG@b...> wrote:
> > Hello,
> >
> > I am looking for a controller for a small wall heater which will be
> > powered by a windgenerator. The output from the generator will be
> > around 0-100v dc at a maximum continuous of around 500w. When the
> > generator starts turning the voltage will begin to rise so the
> > controller will be required to gradually increase the load as it
> > gathers speed and decrease the load when it slows down. I am
> pretty
> > much a beginner at electronics so any help would be much
> appreciated.
> >
> > Regards
>
>
> I'm not sure I follow.
>
> as the wind speed changes, the heater increases ? that would make
> heat dependant on wind speed ?
>
>
> are you sure the voltage from the generator is not contorlled so you
> get 100VAC at any speed above "x" but the available amps changes with
> speed ?
>
> Dave
>
>
>
>
>
>
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 2
> Date: Fri, 7 Nov 2003 16:56:26 +0100
> From: "ECO" <ecourt@b...>
> Subject: Re: help with a controller for a windgenerator powered heater
>
> You need absolutely nothing.
> When the voltage rises, the current rises accordingly.
> You have to verify that a typhon will not burn the heater.
> Regards
> ECO
>
Original Message
> From: "hallmgr" <HallMG@b...>
> To: <basicstamps@yahoogroups.com>
> Sent: Friday, November 07, 2003 11:41 AM
> Subject: [noparse][[/noparse]basicstamps] help with a controller for a windgenerator powered
heater
>
>
> > Hello,
> >
> > I am looking for a controller for a small wall heater which will be
> > powered by a windgenerator. The output from the generator will be
> > around 0-100v dc at a maximum continuous of around 500w. When the
> > generator starts turning the voltage will begin to rise so the
> > controller will be required to gradually increase the load as it
> > gathers speed and decrease the load when it slows down. I am pretty
> > much a beginner at electronics so any help would be much appreciated.
> >
> > Regards
> >
> >
> >
> >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
> >
> >
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 3
> Date: Fri, 07 Nov 2003 15:13:06 -0000
> From: "catgirldo" <catgirldo@y...>
> Subject: top baud for BS2SX
>
> Does anyone know what the top baud rate would be for a BS2SX? The
> manual has asterix on 4800 and 9600 parameters and warnings that
> there might be communication problems. I just want a short haul to a
> CMUcam and I'm wondering if I can run 38400 on a direct TTL set up.
> Thanks in advance
>
>
> Steve
>
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 4
> Date: Fri, 7 Nov 2003 15:47:25 -0000
> From: "Hall, Melvin GR" <HallMG@b...>
> Subject: RE: help with a controller for a windgenerator powered heater
>
> I dont have a specific heater in mind for the job but I will probably just
use a 110v one. I am not sure what controls it will have.
>
>
Original Message
> From: Bruce Bates [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=pWH4dG3JoNwh7NgKS9NJ5c3kXoiS13p_mk2US5kC3iAJNzy_00FdE0_NmJacpZlWofR-MvmfXWGh1aea]bvbates@u...[/url
> Sent: 07 November 2003 14:38
> To: basicstamps@yahoogroups.com
> Subject: Re: [noparse][[/noparse]basicstamps] help with a controller for a windgenerator
> powered heater
>
>
> At 10:41 AM 11/7/03 +0000, hallmgr wrote:
> >Hello,
> >
> >I am looking for a controller for a small wall heater which will be
> >powered by a windgenerator. The output from the generator will be
> >around 0-100v dc at a maximum continuous of around 500w. When the
> >generator starts turning the voltage will begin to rise so the
> >controller will be required to gradually increase the load as it
> >gathers speed and decrease the load when it slows down. I am pretty
> >much a beginner at electronics so any help would be much appreciated.
> >
> >Regards
> >
> >If the heater has multiple settings (high, medium, low), you may be able
> >to tap
> >into that with relays. Perhpas you could describe the heater, or provide
a
> >link ?
> >
> >Bruce Bates
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 5
> Date: Fri, 7 Nov 2003 16:41:46 -0000
> From: "Hall, Melvin GR" <HallMG@b...>
> Subject: RE: Re: help with a controller for a windgenerator powered heater
>
> What I am looking for is some kind of controller which will allow the
windgenerator to get up to speed before connecting the load. Connecting all
the load in one go would be too much for the generator, it would probably
stall, so some kind of gradual loading would be required as the generator
increases speed to maintain optimum loading. The generator produces
unregulated dc from 0 to around 100v so so I thought the controller would be
able to monitor this to control the loading? All I require from the heater
is for it to deliver what heat it can depending on the power from the wind,
I dont need any specific heat settings other than an emergency cut out. The
generator has to be kept loaded when it is running or it will overspeed.
>
> Melvin.
>
>
Original Message
> From: Dave Mucha [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=-qKYaDWawnxeGqde03-OnC5dEKELYtH89es6aO_I3aJR2-Yd39YaqDtPHS1X9w5lc3C3r7YWKX6tk9E]davemucha@j...[/url
> Sent: 07 November 2003 15:49
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Re: help with a controller for a windgenerator
> powered heater
>
>
> --- In basicstamps@yahoogroups.com, "hallmgr" <HallMG@b...> wrote:
> > Hello,
> >
> > I am looking for a controller for a small wall heater which will be
> > powered by a windgenerator. The output from the generator will be
> > around 0-100v dc at a maximum continuous of around 500w. When the
> > generator starts turning the voltage will begin to rise so the
> > controller will be required to gradually increase the load as it
> > gathers speed and decrease the load when it slows down. I am
> pretty
> > much a beginner at electronics so any help would be much
> appreciated.
> >
> > Regards
>
>
> I'm not sure I follow.
>
> as the wind speed changes, the heater increases ? that would make
> heat dependant on wind speed ?
>
>
> are you sure the voltage from the generator is not contorlled so you
> get 100VAC at any speed above "x" but the available amps changes with
> speed ?
>
> Dave
>
>
>
>
>
>
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 6
> Date: Fri, 07 Nov 2003 17:21:33 -0000
> From: "stewartmayer" <stewlist@k...>
> Subject: power saving methods, new to servos
>
> I'm thinking of building a battery powered device where I wan't the
> stamp to take measurements from other ICs and move servos perhaps
> once a day. To save power I'll put the stamp in sleep mode, and i'd
> like to cut power off to the other components when they are not in
> use. My first thought is to use a transistor triggered from a stamp
> pin to control power to the extra devices, but the sleep command will
> momentarily interupt any output signal going to the transistor every
> 2.3 seconds. Could I put a capacitor at the output so that the
> transisotr wouldn't see the momentary interuption? Any better ideas
> on how to cut power to the extra parts when they are not in use?
>
> Also, this is my first time to use hobby servos with the pulseout
> command, when I stop sending the pulseout command, will the servo
> stay where it is or will it go back to center?
>
> thanks,
> Stew
>
>
>
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 7
> Date: Fri, 07 Nov 2003 17:50:25 -0000
> From: "aa7ej" <aa7ej@y...>
> Subject: Re: Editor file size limit?
>
> Allan,
> It's beginning to make sense.
> I am using V2.0 beta 2.1 and would expect some strange behavior (from
> beta), but this is dangerous because you actually loose you work!
> I suppose this was "dormant" because " real programmer does not write
> comments"!
> Actually your idea is very good, but it would be real neat if one
> could write a macro to accomplish that (hint hint Parallax gurus).
> While I am at it - Parallax - how about "block comments" feature like
> VB does?
> Also why is there menu item "New page" in editor when it actually
> creates new file?
> Vaclav
>
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 8
> Date: Fri, 07 Nov 2003 13:08:44 -0500
> From: "Beau Schwabe" <bschwabe@a...>
> Subject: Re: power saving methods, new to servos
>
> At 05:21 PM 11/7/03 +0000, you wrote:
> >I'm thinking of building a battery powered device where I wan't the
> >stamp to take measurements from other ICs and move servos perhaps
> >once a day. To save power I'll put the stamp in sleep mode, and i'd
> >like to cut power off to the other components when they are not in
> >use. My first thought is to use a transistor triggered from a stamp
> >pin to control power to the extra devices, but the sleep command will
> >momentarily interupt any output signal going to the transistor every
> >2.3 seconds. Could I put a capacitor at the output so that the
> >transisotr wouldn't see the momentary interuption? Any better ideas
> >on how to cut power to the extra parts when they are not in use?
> >
> >Also, this is my first time to use hobby servos with the pulseout
> >command, when I stop sending the pulseout command, will the servo
> >stay where it is or will it go back to center?
> >
> >thanks,
> > Stew
>
>
> I have done this in the past... basically you have the right idea.
> Assuming that any of the external circuits will not need power as
> long as the stamp is sleeping. Connect a bias resistor 100K or so
> across the BE junction of your transistor(s) so that a "floating"
> state on any of the stamp I/O's will be pulled to ground and keep
> your transistor off. Then, instead of "cutting" power to the
> device from your stamp, "supply" power to the device by powering
> the stamp I/O pin. Don't forget your current limiting resistor
> between the Stamp pin and the Base of the transistor.
>
>
> -Beau Schwabe
>
>
>
>
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 9
> Date: Fri, 7 Nov 2003 13:06:56 -0500
> From: Dave Evartt <davee@a...>
> Subject: Re: power saving methods, new to servos
>
> The servo will act as though it is unpowered once the signal
> is taken away. This means that the servo will return to the
> position that has the least amount of force on it.
> --
> Regards
>
> Dave Evartt
> American Hovercraft
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 10
> Date: Fri, 7 Nov 2003 10:15:34 -0800
> From: "Jonathan Peakall" <jpeakall@p...>
> Subject: hex to dec conversion
>
> Hi all,
>
> Once again, not paying attention in math class bites me...
>
> I am reciving the Julian date in BCD format from an Ultralink clock. I am
> having problems converting it to dec format. I looked at Tracy's site, and
> still couldn't get it to work. My code is like this:
>
>
> rawYear var word
>
>
> main:
>
> serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), hex3 rawDays
>
> goto main
>
> Now, if I add a debug which says:
>
> debug hex3 rawDays, cr
>
> Of course I get the right number. I just can't seem to switch it to DEC
> format.
>
> Thanks!
>
> Jonathan
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 11
> Date: Fri, 07 Nov 2003 18:21:03 -0000
> From: "Dave Mucha" <davemucha@j...>
> Subject: Re: help with a controller for a windgenerator powered heater
>
> --- In basicstamps@yahoogroups.com, "Hall, Melvin GR" <HallMG@b...>
> wrote:
> > What I am looking for is some kind of controller which will allow
> the windgenerator to get up to speed before connecting the load.
> Connecting all the load in one go would be too much for the
> generator, it would probably stall, so some kind of gradual loading
> would be required as the generator increases speed to maintain
> optimum loading. The generator produces unregulated dc from 0 to
> around 100v so so I thought the controller would be able to monitor
> this to control the loading? All I require from the heater is for
> it to deliver what heat it can depending on the power from the wind,
> I dont need any specific heat settings other than an emergency cut
> out. The generator has to be kept loaded when it is running or it
> will overspeed.
> >
> > Melvin.
>
> The heater is a resistive load. as the generator increases above
> zero, the get some voltage and some current. do ohms law on what you
> can find on the spec sheet for the unit.
>
> the heater will not prevent the generator from turning as it cannot
> get 10 amps when only 1/10th amp is being generated.
>
> It seems like you have the easist setup. the heater is a resistive
> load and will just follow the curve of voltage and amps as the
> generator changes speed.
>
> Storage Batteries on the other hand are much more sensitive to a very
> narrow voltage band and require electronics.
>
> If you are just looking for a project, considder a voltage monitor
> that turns on different heaters at different voltages. maybe even a
> fan will be turned at some voltage and a voltage regulation circuit
> to keep the fan voltage constant.
>
>
> Dave
>
>
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 12
> Date: Fri, 7 Nov 2003 10:29:49 -0800
> From: Tracy Allen <tracy@e...>
> Subject: Re: 16 bit signed multiply.
>
> The trick here is that you want to multiply two signed 16 bit numbers
> (sign in bit 15) to get a signed 32 bit result (sign in bit 31).
>
> In one method to do this, the first step is to extend the sign to 32
> bits, and then just multiply them together:
> X0 = -5 ' low word of X
> Y0 = -2 ' low word of Y
> X1 = -X0.bit15 ' high word of X
> Y1 = -Y0.bit15 ' high word of Y
> Z0 = X0 * Y0 ' low word of 32 bit signed product
> Z1 = X1 ** Y1 ' high word of 32 bit signed product
>
> Another method is to multiply together the absolute values of the
> numbers, and then extend the sign:
> Z0 = ABS X0 * ABS Y0
> Z1 = ABS X1 ** ABS Y1
> IF X0.bit15 ^ Y0.bit15 = 1 THEN ' conditional negation
> Z0=~Z0+1 ' ~ is the NOT operator
> IF Z0=0 THEN Z1=~Z1+1 ' conditional carry
> ENDIF
>
> There is more info about this on the page that Adrian kindly mentioned.
>
> -- Tracy
>
>
>
> >have a look at
> >
> >http://www.emesystems.com/BS2math6.htm
> >
> >allways keep this website in mind for questions about any aspect
> >of basic stamps.
> >
> >regards
> >adrian
> >
>
> >>I am relativly new to programming basic stamps. Does anyone know of a
> >>routine for signed 16-bit by signed 16-bit multiply that yields a
> >>signed 32-bit resuslt? Thank you!
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 13
> Date: Fri, 7 Nov 2003 10:36:27 -0800
> From: Tracy Allen <tracy@e...>
> Subject: Re: power saving methods, new to servos
>
> >I'm thinking of building a battery powered device where I wan't the
> >stamp to take measurements from other ICs and move servos perhaps
> >once a day. To save power I'll put the stamp in sleep mode, and i'd
> >like to cut power off to the other components when they are not in
> >use. My first thought is to use a transistor triggered from a stamp
> >pin to control power to the extra devices, but the sleep command will
> >momentarily interupt any output signal going to the transistor every
> >2.3 seconds. Could I put a capacitor at the output so that the
> >transisotr wouldn't see the momentary interuption? Any better ideas
> >on how to cut power to the extra parts when they are not in use?
> >
> >Also, this is my first time to use hobby servos with the pulseout
> >command, when I stop sending the pulseout command, will the servo
> >stay where it is or will it go back to center?
> >
> >thanks,
> > Stew
>
>
> Hi Stew,
>
> The capacitor idea works fine for me. On the most of the Stamps, the
> interruption is about 18 milliseconds, so the capacitor has to hold
> the transistor ON (or OFF as the case may be) for that length of
> time. (The interruption on the BS2pe is only 0.1 millisecond, in
> contrast to the other Stamps). I usually use an IC voltage regulator
> for this purpose, instead of a transistor. The LT1121 turns off
> when its "shutdown" line is pulled low, and turns on when SD\ is
> pulled high or left floating.
>
> -- Tracy
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 14
> Date: Fri, 7 Nov 2003 10:47:12 -0800
> From: Tracy Allen <tracy@e...>
> Subject: Re: top baud for BS2SX
>
> > Does anyone know what the top baud rate would be for a BS2SX? The
> >manual has asterix on 4800 and 9600 parameters and warnings that
> >there might be communication problems. I just want a short haul to a
> >CMUcam and I'm wondering if I can run 38400 on a direct TTL set up.
> > Thanks in advance
> >
> >Steve
>
>
> Hi Steve,
>
> The highest baud rate for the 'SX is theoretically 125 kbaud when the
> baudmode parameter is zero. You should have no trouble achieving
> 38.4.
>
> I think the business in the manual about communications problems is a
> bit misleading. The difficulties they speak of come about mainly
> when you are trying to receive data from external devices over which
> you have no control, and which are spitting out long strings of data
> at a high baud rate with no extra inter-byte padding beyond the
> standard 1 stop bit. The SERIN command modifiers like DEC or WAIT or
> SKIP take some time to interpret in the Stamp, and it is likely to
> miscue and garble the incoming message. Also, the hardware flow
> control on the Stamp works byte by byte, and some external devices,
> even though they implement some kind of hardware flow control, do so
> on a buffer that may send several bytes before the flow control is
> recognized. If you do in fact have control over both ends of the
> communication, or you can be sure that there is a little extra
> breathing room between the bytes, you can push the Stamp almost to
> its limit. At the very limit on the SX, 125 kbaud, the bit timing
> will be dicey, but there should not be much problem at 38.4 with
> individual bytes.
>
> -- Tracy
> http://www.emesystems.com/BS2rs232.htm#Baudmode <-- table of baud
rates
>
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 15
> Date: Fri, 7 Nov 2003 12:58:29 -0600
> From: "Al Williams" <alw@a...>
> Subject: RE: hex to dec conversion
>
> There are a few ways to do this. The most blatant one is:
>
> Euyear=(rawyear>>8)*100+((rawyear&$F0)>>4)*10 + (rawyear&$F)
>
> I think that will work. You could make it easier by reading the bytes
> separate:
> serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), a,b,c
> year=(a-"0")*100+(b-"0")*10+(c-"0")
>
> or maybe:
>
> serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), dec1 a, dec1 b, dec1 c
> year=a*100+(b*10)+c
>
> Something like that?
>
> Regards,
>
> Al Williams
> AWC
> *8 channels of PWM:
> http://www.al-williams.com/pak5.htm
>
>
>
> >
Original Message
> > From: Jonathan Peakall [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=cZLb25-OVlsCZFsfdzONH-dvT8SAsMpfQ50m4gHB_0NE-T65zY5KVUJWyfv95XKgEVBX-D9DEH6n--ciW9uo]jpeakall@p...[/url
> > Sent: Friday, November 07, 2003 12:16 PM
> > To: basicstamps@yahoogroups.com
> > Subject: [noparse][[/noparse]basicstamps] hex to dec conversion
> >
> >
> > Hi all,
> >
> > Once again, not paying attention in math class bites me...
> >
> > I am reciving the Julian date in BCD format from an Ultralink
> > clock. I am having problems converting it to dec format. I
> > looked at Tracy's site, and still couldn't get it to work. My
> > code is like this:
> >
> >
> > rawYear var word
> >
> >
> > main:
> >
> > serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), hex3 rawDays
> >
> > goto main
> >
> > Now, if I add a debug which says:
> >
> > debug hex3 rawDays, cr
> >
> > Of course I get the right number. I just can't seem to switch
> > it to DEC format.
> >
> > Thanks!
> >
> > Jonathan
> >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the
> > Subject and Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> >
> >
> >
> >
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 16
> Date: Fri, 07 Nov 2003 13:13:48 -0600
> From: Matthew W Seniff <mwseniff@i...>
> Subject: Re: top baud for BS2SX
>
> What would the top baud rate be for a BS2. I am doing a project that needs
> to talk to a serial port at 38400, I don't need to receive anything back
> just send some hex values similar to the earlier discussion to control a
> Sony projector. Thanks in advance for any answers. matt
>
>
> At 10:47 AM 11/7/2003 -0800, you wrote:
> > > Does anyone know what the top baud rate would be for a BS2SX? The
> > >manual has asterix on 4800 and 9600 parameters and warnings that
> > >there might be communication problems. I just want a short haul to a
> > >CMUcam and I'm wondering if I can run 38400 on a direct TTL set up.
> > > Thanks in advance
> > >
> > >Steve
> >
> >
> >Hi Steve,
> >
> >The highest baud rate for the 'SX is theoretically 125 kbaud when the
> >baudmode parameter is zero. You should have no trouble achieving
> >38.4.
> >
> >I think the business in the manual about communications problems is a
> >bit misleading. The difficulties they speak of come about mainly
> >when you are trying to receive data from external devices over which
> >you have no control, and which are spitting out long strings of data
> >at a high baud rate with no extra inter-byte padding beyond the
> >standard 1 stop bit. The SERIN command modifiers like DEC or WAIT or
> >SKIP take some time to interpret in the Stamp, and it is likely to
> >miscue and garble the incoming message. Also, the hardware flow
> >control on the Stamp works byte by byte, and some external devices,
> >even though they implement some kind of hardware flow control, do so
> >on a buffer that may send several bytes before the flow control is
> >recognized. If you do in fact have control over both ends of the
> >communication, or you can be sure that there is a little extra
> >breathing room between the bytes, you can push the Stamp almost to
> >its limit. At the very limit on the SX, 125 kbaud, the bit timing
> >will be dicey, but there should not be much problem at 38.4 with
> >individual bytes.
> >
> > -- Tracy
> > http://www.emesystems.com/BS2rs232.htm#Baudmode <-- table of baud
rates
> >
> >
> >
> >To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> >from the same email address that you subscribed. Text in the Subject and
> >Body of the message will be ignored.
> >
> >
> >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
> Matt Seniff
> Principle Electronic Technician
> Classroom Technology Support Services
> Illinois State University
> PH 309-438-7734
> FAX 309-438-3623
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 17
> Date: Fri, 7 Nov 2003 11:14:31 -0800
> From: "Jonathan Peakall" <jpeakall@p...>
> Subject: Re: hex to dec conversion
>
> Al,
>
> Substituting "days" for "years" in your code I get the same results I get
> from code I made using Tracy's site. The current day (Julian) is 310, but
> your code returns 011. I am doing days, not years, is that it?
>
> Thanks for the help,
>
> Jonathan
>
>
Original Message
> From: "Al Williams" <alw@a...>
> To: <basicstamps@yahoogroups.com>
> Sent: Friday, November 07, 2003 10:58 AM
> Subject: RE: [noparse][[/noparse]basicstamps] hex to dec conversion
>
>
> > There are a few ways to do this. The most blatant one is:
> >
> > Euyear=(rawyear>>8)*100+((rawyear&$F0)>>4)*10 + (rawyear&$F)
> >
> > I think that will work. You could make it easier by reading the bytes
> > separate:
> > serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), a,b,c
> > year=(a-"0")*100+(b-"0")*10+(c-"0")
> >
> > or maybe:
> >
> > serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), dec1 a, dec1 b, dec1 c
> > year=a*100+(b*10)+c
> >
> > Something like that?
> >
> > Regards,
> >
> > Al Williams
> > AWC
> > *8 channels of PWM:
> > http://www.al-williams.com/pak5.htm
> >
> >
> >
> > >
Original Message
> > > From: Jonathan Peakall [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=cZLb25-OVlsCZFsfdzONH-dvT8SAsMpfQ50m4gHB_0NE-T65zY5KVUJWyfv95XKgEVBX-D9DEH6n--ciW9uo]jpeakall@p...[/url
> > > Sent: Friday, November 07, 2003 12:16 PM
> > > To: basicstamps@yahoogroups.com
> > > Subject: [noparse][[/noparse]basicstamps] hex to dec conversion
> > >
> > >
> > > Hi all,
> > >
> > > Once again, not paying attention in math class bites me...
> > >
> > > I am reciving the Julian date in BCD format from an Ultralink
> > > clock. I am having problems converting it to dec format. I
> > > looked at Tracy's site, and still couldn't get it to work. My
> > > code is like this:
> > >
> > >
> > > rawYear var word
> > >
> > >
> > > main:
> > >
> > > serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), hex3 rawDays
> > >
> > > goto main
> > >
> > > Now, if I add a debug which says:
> > >
> > > debug hex3 rawDays, cr
> > >
> > > Of course I get the right number. I just can't seem to switch
> > > it to DEC format.
> > >
> > > Thanks!
> > >
> > > Jonathan
> > >
> > >
> > > To UNSUBSCRIBE, just send mail to:
> > > basicstamps-unsubscribe@yahoogroups.com
> > > from the same email address that you subscribed. Text in the
> > > Subject and Body of the message will be ignored.
> > >
> > >
> > > Your use of Yahoo! Groups is subject to
> > > http://docs.yahoo.com/info/terms/
> > >
> > >
> > >
> > >
> >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the Subject
and
> Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
> >
> >
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 18
> Date: Fri, 7 Nov 2003 11:14:33 -0800
> From: Tracy Allen <tracy@e...>
> Subject: Re: hex to dec conversion
>
> >Hi all,
> >Once again, not paying attention in math class bites me...
> >I am reciving the Julian date in BCD format from an Ultralink clock. I am
> >having problems converting it to dec format. I looked at Tracy's site,
and
> >still couldn't get it to work. My code is like this:
> >rawYear var word
> >
> >main:
> >serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), hex3 rawDays
> >goto main
> >Now, if I add a debug which says:
> >debug hex3 rawDays, cr
> >Of course I get the right number. I just can't seem to switch it to DEC
> >format.
> >Thanks!
> >Jonathan
>
>
> Hi Jonathan,
>
> The calculation goes as follows:
>
> decdays = rawdays.nib2 * 10 + rawdays.nib1 * 10 + rawdays.nib0
> DEBUG DEC decdays, CR
> That is the ordinal day of the year. The clock also gives a flag
> that tells if the current year is a leap year or not. The code here
> http://www.emesystems.com/BS2math4.htm#JulianDate
> describes how to change the ordinal date into YY:MM[noparse]:D[/noparse]D format.
>
> Which model clock are you using? <http://www.ulio.com> I have the
> older OEM model that Parallax used to sell, now seemingly
> discontinued. But the string you have, "wait("B"), hex3 rawDays"
> does not match what I was familiar with. The old OEM model had a
> choice of packed BCD or ascii BCD responses. I was quite hip to it
> at the time, because I was beta testing the interface.
>
> -- Tracy
>
>
>
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 19
> Date: Fri, 7 Nov 2003 13:23:47 -0600
> From: "Al Williams" <alw@a...>
> Subject: RE: hex to dec conversion
>
> Doh. I always forget about the .nib stuff. I keep thinking in assembly and
> writing in Basic :-)
>
> Al Williams
> AWC
> * Easy RS232 prototyping:
> http://www.al-williams.com/rs1.htm
>
>
> >
Original Message
> > From: Tracy Allen [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=ucPgqALIqphurbsuDTRyIAzEIs2Em7y_vaR8smn_RSiOdpfqym1gSezTilrwXopQepn6WUTo_ECWY00]tracy@e...[/url
> > Sent: Friday, November 07, 2003 1:15 PM
> > To: basicstamps@yahoogroups.com
> > Subject: Re: [noparse][[/noparse]basicstamps] hex to dec conversion
> >
> >
> > >Hi all,
> > >Once again, not paying attention in math class bites me...
> > >I am reciving the Julian date in BCD format from an
> > Ultralink clock. I
> > >am having problems converting it to dec format. I looked at Tracy's
> > >site, and still couldn't get it to work. My code is like
> > this: rawYear
> > >var word
> > >
> > >main:
> > >serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), hex3 rawDays
> > >goto main
> > >Now, if I add a debug which says:
> > >debug hex3 rawDays, cr
> > >Of course I get the right number. I just can't seem to
> > switch it to DEC
> > >format. Thanks!
> > >Jonathan
> >
> >
> > Hi Jonathan,
> >
> > The calculation goes as follows:
> >
> > decdays = rawdays.nib2 * 10 + rawdays.nib1 * 10 + rawdays.nib0
> > DEBUG DEC decdays, CR
> > That is the ordinal day of the year. The clock also gives a flag
> > that tells if the current year is a leap year or not. The code here
> > http://www.emesystems.com/BS2math4.htm#JulianDate
> > describes how to change the ordinal date into YY:MM[noparse]:D[/noparse]D format.
> >
> > Which model clock are you using? <http://www.ulio.com> I have the
> > older OEM model that Parallax used to sell, now seemingly
> > discontinued. But the string you have, "wait("B"), hex3 rawDays"
> > does not match what I was familiar with. The old OEM model had a
> > choice of packed BCD or ascii BCD responses. I was quite hip to it
> > at the time, because I was beta testing the interface.
> >
> > -- Tracy
> >
> >
> >
> >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the
> > Subject and Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> >
> >
> >
> >
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 20
> Date: Fri, 07 Nov 2003 19:52:42 -0000
> From: "Allan Lane" <allan.lane@h...>
> Subject: Re: hex to dec conversion
>
> DecDays VAR WORD
>
> DecDays = (rawyear.Nib2 * 100) + (rawyear.Nib1 * 10) + rawyear.Nib0
>
>
> --- In basicstamps@yahoogroups.com, "Al Williams" <alw@a...> wrote:
> > There are a few ways to do this. The most blatant one is:
> >
> > Euyear=(rawyear>>8)*100+((rawyear&$F0)>>4)*10 + (rawyear&$F)
> >
> > I think that will work. You could make it easier by reading the
> bytes
> > separate:
> > serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), a,b,c
> > year=(a-"0")*100+(b-"0")*10+(c-"0")
> >
> > or maybe:
> >
> > serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), dec1 a, dec1 b, dec1 c
> > year=a*100+(b*10)+c
> >
> > Something like that?
> >
> > Regards,
> >
> > Al Williams
> > AWC
> > *8 channels of PWM:
> > http://www.al-williams.com/pak5.htm
> >
> >
> >
> > >
Original Message
> > > From: Jonathan Peakall [noparse][[/noparse]mailto:jpeakall@p...]
> > > Sent: Friday, November 07, 2003 12:16 PM
> > > To: basicstamps@yahoogroups.com
> > > Subject: [noparse][[/noparse]basicstamps] hex to dec conversion
> > >
> > >
> > > Hi all,
> > >
> > > Once again, not paying attention in math class bites me...
> > >
> > > I am reciving the Julian date in BCD format from an Ultralink
> > > clock. I am having problems converting it to dec format. I
> > > looked at Tracy's site, and still couldn't get it to work. My
> > > code is like this:
> > >
> > >
> > > rawYear var word
> > >
> > >
> > > main:
> > >
> > > serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), hex3 rawDays
> > >
> > > goto main
> > >
> > > Now, if I add a debug which says:
> > >
> > > debug hex3 rawDays, cr
> > >
> > > Of course I get the right number. I just can't seem to switch
> > > it to DEC format.
> > >
> > > Thanks!
> > >
> > > Jonathan
> > >
> > >
> > > To UNSUBSCRIBE, just send mail to:
> > > basicstamps-unsubscribe@yahoogroups.com
> > > from the same email address that you subscribed. Text in the
> > > Subject and Body of the message will be ignored.
> > >
> > >
> > > Your use of Yahoo! Groups is subject to
> > > http://docs.yahoo.com/info/terms/
> > >
> > >
> > >
> > >
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 21
> Date: Fri, 7 Nov 2003 14:06:14 -0600
> From: "Al Williams" <alw@a...>
> Subject: RE: hex to dec conversion
>
> Hmm.. is it BCD or ASCII BCD. In other words, is 310 showing up as $310 or
> $33 $31 $30 (ASCII)?
>
> Your original code says:
> serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), hex3 rawDays
>
> The hex3 makes me think you are getting $33 $31 $30, right? Otherwise,
that
> might be your problem right there.
>
> Al Williams
> AWC
> * Connect a PS/2 keyboard or mouse to any microcontroller:
> http://www.al-williams.com/pak6.htm
>
>
> >
Original Message
> > From: Jonathan Peakall [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=cZLb25-OVlsCZFsfdzONH-dvT8SAsMpfQ50m4gHB_0NE-T65zY5KVUJWyfv95XKgEVBX-D9DEH6n--ciW9uo]jpeakall@p...[/url
> > Sent: Friday, November 07, 2003 1:15 PM
> > To: basicstamps@yahoogroups.com
> > Subject: Re: [noparse][[/noparse]basicstamps] hex to dec conversion
> >
> >
> > Al,
> >
> > Substituting "days" for "years" in your code I get the same
> > results I get from code I made using Tracy's site. The
> > current day (Julian) is 310, but your code returns 011. I am
> > doing days, not years, is that it?
> >
> > Thanks for the help,
> >
> > Jonathan
> >
> >
Original Message
> > From: "Al Williams" <alw@a...>
> > To: <basicstamps@yahoogroups.com>
> > Sent: Friday, November 07, 2003 10:58 AM
> > Subject: RE: [noparse][[/noparse]basicstamps] hex to dec conversion
> >
> >
> > > There are a few ways to do this. The most blatant one is:
> > >
> > > Euyear=(rawyear>>8)*100+((rawyear&$F0)>>4)*10 + (rawyear&$F)
> > >
> > > I think that will work. You could make it easier by reading
> > the bytes
> > > separate:
> > > serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), a,b,c
> > > year=(a-"0")*100+(b-"0")*10+(c-"0")
> > >
> > > or maybe:
> > >
> > > serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), dec1 a, dec1 b, dec1 c
> > > year=a*100+(b*10)+c
> > >
> > > Something like that?
> > >
> > > Regards,
> > >
> > > Al Williams
> > > AWC
> > > *8 channels of PWM:
> > > http://www.al-williams.com/pak5.htm
> > >
> > >
> > >
> > > >
Original Message
> > > > From: Jonathan Peakall [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=cZLb25-OVlsCZFsfdzONH-dvT8SAsMpfQ50m4gHB_0NE-T65zY5KVUJWyfv95XKgEVBX-D9DEH6n--ciW9uo]jpeakall@p...[/url
> > > > Sent: Friday, November 07, 2003 12:16 PM
> > > > To: basicstamps@yahoogroups.com
> > > > Subject: [noparse][[/noparse]basicstamps] hex to dec conversion
> > > >
> > > >
> > > > Hi all,
> > > >
> > > > Once again, not paying attention in math class bites me...
> > > >
> > > > I am reciving the Julian date in BCD format from an
> > Ultralink clock.
> > > > I am having problems converting it to dec format. I looked at
> > > > Tracy's site, and still couldn't get it to work. My code is like
> > > > this:
> > > >
> > > >
> > > > rawYear var word
> > > >
> > > >
> > > > main:
> > > >
> > > > serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), hex3 rawDays
> > > >
> > > > goto main
> > > >
> > > > Now, if I add a debug which says:
> > > >
> > > > debug hex3 rawDays, cr
> > > >
> > > > Of course I get the right number. I just can't seem to
> > switch it to
> > > > DEC format.
> > > >
> > > > Thanks!
> > > >
> > > > Jonathan
> > > >
> > > >
> > > > To UNSUBSCRIBE, just send mail to:
> > > > basicstamps-unsubscribe@yahoogroups.com
> > > > from the same email address that you subscribed. Text in the
> > > > Subject and Body of the message will be ignored.
> > > >
> > > >
> > > > Your use of Yahoo! Groups is subject to
> > > > http://docs.yahoo.com/info/terms/
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > > To UNSUBSCRIBE, just send mail to:
> > > basicstamps-unsubscribe@yahoogroups.com
> > > from the same email address that you subscribed. Text in
> > the Subject
> > > and
> > Body of the message will be ignored.
> > >
> > >
> > > Your use of Yahoo! Groups is subject to
> > > http://docs.yahoo.com/info/terms/
> > >
> > >
> > >
> > >
> >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the
> > Subject and Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
>
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 22
> Date: Fri, 07 Nov 2003 22:53:11 -0000
> From: "heatly5" <ralph.heatly@l...>
> Subject: Pulsout - need longer pulse time
>
> I'm using a BS2sx and need a longer pulse time than is possible
> and do not want to change to a slower Stamp.
> Can the equivalent to PULSOUT be programmed using other
> command?
>
> Thanks
>
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 23
> Date: Fri, 7 Nov 2003 17:49:42 -0600
> From: "Al Williams" <alw@a...>
> Subject: RE: Pulsout - need longer pulse time
>
> I would guess you could do something like:
>
> HIGH 5
> PAUSE 1
> LOW 5
>
> The trick is measuring empirically the duration it takes the Stamp to read
> the instructions and execute between the HIGH and the LOW. The simplistic
> take would be that the above pulse would be 1mS in duration, but that is
> almost certainly not true. What's more is that the duration could vary
> depending on where the instructions reside in memory (in other words, if
the
> instructions straddle byte boundaries or not). So What you could do is use
> the above fragment and "calibrate" by changing the length of the pause. As
> the constant number gets bigger, the timing may change. So PAUSE 100 may
not
> be 100x longer than PAUSE 1 because the overhead of loading a constant 1
is
> probably less than loading a constant 100 (the Stamp uses varying bit
> lengths for encoding things).
>
> You could also try to get finer control by using other commands. For
> example:
>
> HIGH 5
> PAUSE 1
> PULSOUT 15,100 ' Pin 15 is not really used -- this is a dummy PULSOUT
> LOW 5
>
> This might give you better than 1mS tuning. Of course, it means pin 15 (or
> whatever) goes to waste.
>
> Hope that helps.
>
> Al Williams
> AWC
> *NEW: PAK-XI turns a mouse into an X/Y position sensor
> http://www.al-williams.com/pak11.htm
>
>
> >
Original Message
> > From: heatly5 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=wG0r6rCaoxlhr5aA-nuWmXIvfkg4-JeoqBEVluE6pJiSFdkt4qtL5gyJytDxFiBkL0WrDevh9N0LBz-XuDU]ralph.heatly@l...[/url
> > Sent: Friday, November 07, 2003 4:53 PM
> > To: basicstamps@yahoogroups.com
> > Subject: [noparse][[/noparse]basicstamps] Pulsout - need longer pulse time
> >
> >
> > I'm using a BS2sx and need a longer pulse time than is
> > possible and do not want to change to a slower Stamp. Can the
> > equivalent to PULSOUT be programmed using other command?
> >
> > Thanks
> >
> >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the
> > Subject and Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> >
> >
> >
> >
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 24
> Date: Fri, 7 Nov 2003 16:26:26 -0800
> From: "Jonathan Peakall" <jpeakall@p...>
> Subject: Re: hex to dec conversion
>
> Al, Tracy,
>
> The code you gave, of course, works. I just made a little program to watch
> all the math happen, and I think I get it. Maybe. Why wasn't I given the
> math gene?
>
> On your page it gives the formula:
>
> DD = DD.nib1 * 10 + DD.nib0 ' BCD to binary conversion of day
>
> Looking through the example code, I thought that would apply to me. Why
> doesn't it?
>
> I am using the old OEM module, the 325B, I think it is. The WAIT("B") is
> because the Stamp is actually receiving the data from a 433mHz receiver. I
> have the WWVB module hooked up to a 433mHz transmitter so that any of my
> projects that need the time can get it using a cheap receiver, with no
need
> to include I/O or code for setting the time and date. It's a great system,
I
> have three projects using it so far and more to come. All I need is to get
> the date going, (one of the projects finally needs more than the time) and
> with your and Al's help, I think I have it licked.
>
> Doh! I shouldn't have said that! Now I'll need to ask a question for sure!
> *knocks wood*
>
>
> Jonathan
>
>
>
>
Original Message
> From: "Tracy Allen" <tracy@e...>
> To: <basicstamps@yahoogroups.com>
> Sent: Friday, November 07, 2003 11:14 AM
> Subject: Re: [noparse][[/noparse]basicstamps] hex to dec conversion
>
>
> > >Hi all,
> > >Once again, not paying attention in math class bites me...
> > >I am reciving the Julian date in BCD format from an Ultralink clock. I
am
> > >having problems converting it to dec format. I looked at Tracy's site,
> and
> > >still couldn't get it to work. My code is like this:
> > >rawYear var word
> > >
> > >main:
> > >serin 7,17405,10,No_Data, [noparse][[/noparse]wait("B"), hex3 rawDays
> > >goto main
> > >Now, if I add a debug which says:
> > >debug hex3 rawDays, cr
> > >Of course I get the right number. I just can't seem to switch it to DEC
> > >format.
> > >Thanks!
> > >Jonathan
> >
> >
> > Hi Jonathan,
> >
> > The calculation goes as follows:
> >
> > decdays = rawdays.nib2 * 10 + rawdays.nib1 * 10 + rawdays.nib0
> > DEBUG DEC decdays, CR
> > That is the ordinal day of the year. The clock also gives a flag
> > that tells if the current year is a leap year or not. The code here
> > http://www.emesystems.com/BS2math4.htm#JulianDate
> > describes how to change the ordinal date into YY:MM[noparse]:D[/noparse]D format.
> >
> > Which model clock are you using? <http://www.ulio.com> I have the
> > older OEM model that Parallax used to sell, now seemingly
> > discontinued. But the string you have, "wait("B"), hex3 rawDays"
> > does not match what I was familiar with. The old OEM model had a
> > choice of packed BCD or ascii BCD responses. I was quite hip to it
> > at the time, because I was beta testing the interface.
> >
> > -- Tracy
> >
> >
> >
> >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the Subject
and
> Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
> >
> >
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 25
> Date: 07 Nov 2003 19:59:34 -0600
> From: Bill Boyer <daweasel@s...>
> Subject: Re: Re: Editor file size limit?
>
> There is or was an issue with the Stamp Editor concerning too-long lines
> of text. The text would "disappear" if you tried to make your remarks
> too long on one line.
>
> > It's beginning to make sense.
> > I am using V2.0 beta 2.1 and would expect