​ ​ ​ ​ Porting from original 20M software to a 20X or 20M2
Results 1 to 5 of 5

Thread: Porting from original 20M software to a 20X or 20M2

  1. #1
    Senior Member
    Join Date
    Jun 2008
    Location
    *.*
    Posts
    1,110

    Default Porting from original 20M software to a 20X or 20M2

    Looong time, I've posted in this forum.

    My PICAXE basic is somewhat rusted, so this may be a very simple question to some of you.

    What is required to port original 20M software to a modern 20X or 20M2?

    I've an old project which I accidentally damaged the 20M. I already have a 20X which could be a solution. Or if you guys think a 20M2 would be easier to port, I will acquire one.
    "Will design analog circuitry for Beer."

  2. #2
    Senior Member
    Join Date
    Jan 1970
    Location
    Colorado USA
    Posts
    3,212

    Default

    I would start in the editor - put in your old code and change the picaxe type to that proposed and run syntax and simulate... I'm an empiricist ;-0

  3. #3
    Senior Member
    Join Date
    Jun 2008
    Location
    *.*
    Posts
    1,110

    Default

    Thanks Premelec, that is what I did, and find myself a bunch of errors which I have to manually correct one by one.

    All I wanted to know if anyone had figured a shortcut or trick...plus any gotchas.
    "Will design analog circuitry for Beer."

  4. #4
    Senior Member
    Join Date
    Feb 2012
    Location
    London
    Posts
    2,886

    Default

    Hi,

    I've never programmed anything less than an M2, and it may depend how well structured was the original program. But you might not need to do much more than change SYMBOL xxxx = 1 to SYMBOL xxxx = B.1, etc.

    If not, then it could be worth trying the PICAXE > Wizards > X2 conversion > Convert to 20X2 option in the PE{5} editor. That seems to get the pin names correct for a 20M2, but you may then need to look at ADC input/channel numbers, etc., if used.

    Cheers, Alan.

  5. #5
    Senior Member
    Join Date
    Jun 2008
    Location
    *.*
    Posts
    1,110

    Default

    Thanks AllyCat, that is EXACTLY what I required!
    "Will design analog circuitry for Beer."

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •