Shop OBEX P1 Docs P2 Docs Learn Events
Encoder Project — Parallax Forums

Encoder Project

Jon WilliamsJon Williams Posts: 6,491
edited 2004-12-08 22:30 in General Discussion
This is a port of an old Parallax application note to the SX.· What I changed was reading the quadrature encoder in the ISR, as well as displaying the value on three multiplexed 7-segment LEDs (also handled in the ISR).

attachment.php?attachmentid=36663

Note that the version called 'ENCODER2.SXB' is 100% SX/B -- no assembly code included.

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


Post Edited (Jon Williams) : 12/8/2004 1:36:29 AM GMT
474 x 515 - 9K
800 x 477 - 225K

Comments

  • BeanBean Posts: 8,129
    edited 2004-12-07 19:57
    That is really cool Jon.
    I personally like the "all SX/B" version.
    Shows that alot can be done with not alot of code.

    Bean.
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-12-07 20:06
    Me too -- and it compiles to the same size as the version that uses ASM..ENDASM. That's very cool.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
  • James NewtonJames Newton Posts: 329
    edited 2004-12-07 23:21
    Your marketing people should have a blast with this one. It really does show the flexability and power of the system. The ability to drop in to assembly, makeing use of existing asm code, and then toss out some basic code to make it do what you want. Nice.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ---
    James Newton, Host of SXList.com
    james@sxlist.com 1-619-652-0593 fax:1-208-279-8767
    SX FAQ / Code / Tutorials / Documentation:
    http://www.sxlist.com Pick faster!



  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2004-12-07 23:58
    Jon,

    ·· What is that development board you're using?· I thought I had one of everything Parallax sells, but I've never seen that board before.




    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com


    Post Edited (Chris Savage (Parallax)) : 8/19/2005 3:37:17 AM GMT
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-12-08 01:31
    We (Ken and I) were wondering when somebody would notice that. It's our Professional Development Board, and will be available in a couple months. As you can see, it handles everything: BS1 (SIP), 24- and 40-pin Stamp modules, and an SX28 (you need to pull the SX when using a BS2p40 [noparse][[/noparse]shared pins]). It has USB and Serial connections for programming Stamps, lots of IO stuff -- it's going to be a winner.

    I will be rewriting StampWorks around this board.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2004-12-08 15:03
    Yer darn tootin' I noticed that!· I will have to get one of those...As it stands now, I use the NX-1000 for most of my development.· But with the BS2P40 I use the BS2P40 Demo Board.· Then of course I have the SX Tech Board for the SX...One universal board for everything?· I will have to get more than one!· =)


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com


    Post Edited (Chris Savage (Parallax)) : 8/19/2005 3:37:29 AM GMT
  • EddieEddie Posts: 15
    edited 2004-12-08 20:48
    Do you have any idea what the price will be; and mabye a bit of a more precise estimate to its release?

    I was looking for a board for Christmas, I can wait if this is not too expensive.
  • Ken GraceyKen Gracey Posts: 7,407
    edited 2004-12-08 21:00
    Eddie,

    We're just getting started with production, so it will be a while before we have ample quantities (probably 6-8 weeks). We're shooting for a $129 retail. This board pretty much does everything, supports all of our products and wants to be under $150. It will be the core of several kits and also available alone (with a parallel LCD).

    Ken Gracey
    Parallax, Inc.
  • EddieEddie Posts: 15
    edited 2004-12-08 21:04
    Thanks.

    Would one of those kits happen to be some sort of "super SX-Tech Kit"?

    I would definately hold off and buy that as soon as possible.
  • allanlane5allanlane5 Posts: 3,815
    edited 2004-12-08 21:37
    Wow, it supports BOTH the SX AND the BS2 family? That is quite some board.

    Looking at the picture, it does seem to have a lot of supported functions. I see a speaker, 5-character 7-seg LED, RTC, 8 buttons, and more. I hope you can keep it under $150 for all that, it would be a very good deal.

    AND it supports the SX? Man, I can't get over that aspect of it. That means you could prototype using the BS2, then port your code using SX/B to the SX to get the performance. What a powerhouse.
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-12-08 22:30
    Or you could develop your own co-processor/serial-slave and test it with a BASIC Stamp on the same board. I did that for my January N&V article: I made an eight-character LED multiplexer that accepts serial (buffered in the ISR) commands from a BASIC Stamp -- kind of single-wire version of the MAX7219; but all written in SX/B (okay,·there's a bit of simple assembly to keep the ISR serial stuff tight).

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
Sign In or Register to comment.