Shop OBEX P1 Docs P2 Docs Learn Events
BS SX and BS2 speeds — Parallax Forums

BS SX and BS2 speeds

ArchiverArchiver Posts: 46,084
edited 2001-04-26 16:10 in General Discussion
Hi all,

I'm currently running an app on the BS2 that reads the time, reads an
adc, logs the data to memory, outputs to lcd and then loops again.

Currently the loop takes between 6 and 8 100s of a sec to execute.

My question is, if I upgrade to a BS2SX, will the loop execute 2.5
times faster (BS2 4000 inst/sec vs. BS2SX 10000 inst/sec)?

Assuming that everything else in the circuit can handle the speed,
will the SXIC chip run that much faster?

Thanks in advance.

Simon

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-04-26 16:10
    >Hi all,
    >
    >I'm currently running an app on the BS2 that reads the time, reads an
    >adc, logs the data to memory, outputs to lcd and then loops again.
    >
    >Currently the loop takes between 6 and 8 100s of a sec to execute.
    >
    >My question is, if I upgrade to a BS2SX, will the loop execute 2.5
    >times faster (BS2 4000 inst/sec vs. BS2SX 10000 inst/sec)?
    >
    >Assuming that everything else in the circuit can handle the speed,
    >will the SXIC chip run that much faster?
    >Thanks in advance.
    >Simon


    Hi Simon,
    Yes, pretty much everything in the processing will run 2.5 x
    faster. The baud rate to the LCD (if serial) would be a limiting
    factor. The memory chip itself will take as much as 10 milliseconds
    to complete a write, but usually at room it will complete writes in 5
    milliseconds or less. It is possible to write a tight loop in PBASIC
    that challenges that limit, but if you are also reading an RTC,
    sending to an LCD etc etc in a 50 millisecond loop, then that will
    not be a problem with a 2.5x speed boost. If you want even faster
    performance, try the BS2P. It's sx48 chip is running in turbo mode,
    so it operates about 20% faster than a BS2SX.

    Watch out to avoid crossing 24LC256 memory page boundaries on a single write.

    -- regards,
    Tracy Allen
    electronically monitored ecosystems
    http://www.emesystems.com
Sign In or Register to comment.