Shop OBEX P1 Docs P2 Docs Learn Events
sx48 with domecontrole — Parallax Forums

sx48 with domecontrole

stefstef Posts: 173
edited 2007-09-07 12:50 in General Discussion
Hi

I rcreated me a little project and I develped my PCB to command dome camera's. I use an sx48. Reading commands from my domotica system and translating them to dome commands (Pelco P protocol) on a rs485 bus. Everything is working but I ran out of memporyspace in the sx. I tried to optimize the program I wrote, so I gained some space but I still need more. I store a lot of presetvalues for diffrent domes.

Has somone already some desing to connect extra memory. (eprom, ram, memorystick) somthing???? I wand to add more to the program.

Stef.
·

Comments

  • BeanBean Posts: 8,129
    edited 2007-09-05 16:47
    Using EEPROM to store data would be the simplest way.

    Or you could use the Parallax memory stick data logger http://www.parallax.com/detail.asp?product_id=27937

    Or my SD Data Logger http://www.hittconsulting.com/products/sddatalogger/

    Bean

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    The first rule to being successful is "Learn from your mistakes",
    The second rule is "Be willing to make mistakes"
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    www.hittconsulting.com
    ·
  • JonnyMacJonnyMac Posts: 9,216
    edited 2007-09-05 16:54
    Are you using SX/B for your program? If yes, are you encapsulating "big" instructions (like SERIN, PAUSE, etc.) in subroutines to save space? It seems odd that a protocol translation program would take up so much room.
  • stefstef Posts: 173
    edited 2007-09-06 20:35
    HI

    Thanks Bean. I' ll look in to it.

    Yes it is in SX/B and Yes all the pissible large instruktions are in subroutines. It is not only a protocol translator but it contains also all the strings for presets and everyting. So the larges part of memory is filled with static data. With the links like Bean provided I can free up that part so I gain a lot off space for more program.

    Thanks in advance

    Stef
  • BeanBean Posts: 8,129
    edited 2007-09-06 20:45
    Stef,
    If you can post the program we could probably give you more tips to conserve space.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    The first rule to being successful is "Learn from your mistakes",
    The second rule is "Be willing to make mistakes"
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    www.hittconsulting.com
    ·
  • JonnyMacJonnyMac Posts: 9,216
    edited 2007-09-06 20:50
    Bean is right: storing your strings in an EEPROM will help you recover a lot of program space. I've written boatloads of code for EE storage; you can find some in the September issue of Nuts & Volts magazine. You'll just need to know the address (in EE) of where your string starts, then read the characters out until a 0 is encountered -- same as what we do with DATA statements. It will probably be pretty easy to port the program.
  • stefstef Posts: 173
    edited 2007-09-07 12:50
    Hi

    Sorry I can't post program. It is written for a security company and I sigend a non discloser contrakt.

    The program is working fine and I'm just preparing it for more commands. So· I will go with the extra memory option and store my predifined strings thier. Thanks bean for the links to memorystick and datalogger. the consept is ok but I like to enclose everything to my PCB. That is wy i 'm interested in already used and tested schematics.

    I'm going to test and search myself some further.



    stef
Sign In or Register to comment.