Shop OBEX P1 Docs P2 Docs Learn Events
Funny problem... — Parallax Forums

Funny problem...

ArchiverArchiver Posts: 46,084
edited 2003-09-11 13:46 in General Discussion
Hi all,

I have been doing some fairly simple test routines for my low frequency sampling
project (as per past emails) and am working on a pause 125 to give me 8 samples
per second and simply read the input pin state. and then use some kind of fuzzy
logic to work out whats going on.

BUT... none of my code seems to run (not necessarily work but simple run) unless
I put a debug statement at the start. Just a simple DEBUG CLS and the stamp
jumps in life, but without it the code never runs!! I'm concerned I've fired the
stamp somehow becuase I realised after the fact that the signal I was reading
was 12V and not 5V!! But it seems to be a very strange thing to be broken. With
this debug statement the code runs fine and my output to the LCD works without
it nothing is displayed!!

Anyone any ideas...

Cheers 4 now


Kev/.
D 12USH @ www.KevP.com

[noparse][[/noparse]Non-text portions of this message have been removed]

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-09-11 13:41
    We've seen this and you're right, it is peculiar. The problem is --
    believe it or not -- with your serial port. I'll bet you're running on
    a laptop, aren't you? If you change the FIFO settings on your port to
    minimum values the problem should go away. I saw this firsthand while
    conducting a BASIC Stamp programming class in Holland last year.

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office


    Original Message
    From: Kev Pearce (kevp.com) [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=RvbiFNPVqdekLUkje8TZD0m3e5clQ85l7Keqoy35CktI5DIkGr141AQiCtisCRPL4ZqrurP_KQ]email.me@k...[/url
    Sent: Thursday, September 11, 2003 5:06 AM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Funny problem...


    Hi all,

    I have been doing some fairly simple test routines for my low frequency
    sampling project (as per past emails) and am working on a pause 125 to
    give me 8 samples per second and simply read the input pin state. and
    then use some kind of fuzzy logic to work out whats going on.

    BUT... none of my code seems to run (not necessarily work but simple
    run) unless I put a debug statement at the start. Just a simple DEBUG
    CLS and the stamp jumps in life, but without it the code never runs!!
    I'm concerned I've fired the stamp somehow becuase I realised after the
    fact that the signal I was reading was 12V and not 5V!! But it seems to
    be a very strange thing to be broken. With this debug statement the code
    runs fine and my output to the LCD works without it nothing is
    displayed!!

    Anyone any ideas...

    Cheers 4 now


    Kev/.
    D 12USH @ www.KevP.com

    [noparse][[/noparse]Non-text portions of this message have been removed]


    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/




    This message has been scanned by WebShield. Please report SPAM to
    abuse@p....
  • ArchiverArchiver Posts: 46,084
    edited 2003-09-11 13:46
    Laptop, yes! albeit thru a doocking station but I know what you mean.
    I'll try fiddling with the settings.

    Thanks for your help

    Kev/.

    Original Message
    From: "Jon Williams" <jwilliams@p...>
    To: <basicstamps@yahoogroups.com>
    Sent: Thursday, September 11, 2003 1:41 PM
    Subject: RE: [noparse][[/noparse]basicstamps] Funny problem...


    > We've seen this and you're right, it is peculiar. The problem is --
    > believe it or not -- with your serial port. I'll bet you're running on
    > a laptop, aren't you? If you change the FIFO settings on your port to
    > minimum values the problem should go away. I saw this firsthand while
    > conducting a BASIC Stamp programming class in Holland last year.
    >
    > -- Jon Williams
    > -- Applications Engineer, Parallax
    > -- Dallas Office
    >
    >
    >
    Original Message
    > From: Kev Pearce (kevp.com) [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=CYGuo53TPnWNU1wFvwlIXj1DvCH_KdhiJadkmOT-Y2NHCEysP2Hphz6Bf9ghdtLlvE4_Iniif5zO]email.me@k...[/url
    > Sent: Thursday, September 11, 2003 5:06 AM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] Funny problem...
    >
    >
    > Hi all,
    >
    > I have been doing some fairly simple test routines for my low frequency
    > sampling project (as per past emails) and am working on a pause 125 to
    > give me 8 samples per second and simply read the input pin state. and
    > then use some kind of fuzzy logic to work out whats going on.
    >
    > BUT... none of my code seems to run (not necessarily work but simple
    > run) unless I put a debug statement at the start. Just a simple DEBUG
    > CLS and the stamp jumps in life, but without it the code never runs!!
    > I'm concerned I've fired the stamp somehow becuase I realised after the
    > fact that the signal I was reading was 12V and not 5V!! But it seems to
    > be a very strange thing to be broken. With this debug statement the code
    > runs fine and my output to the LCD works without it nothing is
    > displayed!!
    >
    > Anyone any ideas...
    >
    > Cheers 4 now
    >
    >
    > Kev/.
    > D 12USH @ www.KevP.com
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
    >
    >
    > 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/
    >
    >
    >
    >
    > This message has been scanned by WebShield. Please report SPAM to
    > abuse@p....
    >
    >
    > 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/
    >
    >
Sign In or Register to comment.