1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

what is oshonsoft?

Discussion in 'Oshonsoft' started by magnatro, Apr 1, 2011.

  1. magnatro

    magnatro New Member

    Joined:
    Mar 23, 2010
    Messages:
    295
    Likes:
    0
    Location:
    India
    :) kinda silly but need some text!
     
  2. ericgibbs

    ericgibbs Well-Known Member Most Helpful Member

    Joined:
    Jan 4, 2007
    Messages:
    21,181
    Likes:
    644
    Location:
    Ex Yorks' Hants UK
    hi,
    Oshonsoft is the name of a PIC simulator IDE.
    Look here for more information.
    Oshon Software Homepage
     
  3. Ian Rogers

    Ian Rogers Super Moderator Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    9,160
    Likes:
    909
    Location:
    Rochdale UK
    Good question on an Oshonsoft forum!!! Give it a go, I find it very good software for the price.

    Cheers Ian
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. tong143

    tong143 New Member

    Joined:
    May 15, 2011
    Messages:
    16
    Likes:
    0

    I have downloaded the software from the website but it is not running. I is showing "unexpected error:quitting". Please help me
     
  6. sahu

    sahu Member

    Joined:
    Oct 18, 2009
    Messages:
    468
    Likes:
    3
    what , it is work only microelectronika hex file ?
     
  7. ericgibbs

    ericgibbs Well-Known Member Most Helpful Member

    Joined:
    Jan 4, 2007
    Messages:
    21,181
    Likes:
    644
    Location:
    Ex Yorks' Hants UK
    If you load the HEX file using the Oshonsoft menus, the program will run
     
  8. sahu

    sahu Member

    Joined:
    Oct 18, 2009
    Messages:
    468
    Likes:
    3
    one file which compile with CSC C & get susecsfuly hex file .load the HEX file using the Oshonsoft menu.Oshonsoft show as PNG file..



    CSC C compiler show as..
     

    Attached Files:

    • 676.PNG
      676.PNG
      File size:
      81.7 KB
      Views:
      181
  9. ericgibbs

    ericgibbs Well-Known Member Most Helpful Member

    Joined:
    Jan 4, 2007
    Messages:
    21,181
    Likes:
    644
    Location:
    Ex Yorks' Hants UK
    That looks a good result.
     
  10. sahu

    sahu Member

    Joined:
    Oct 18, 2009
    Messages:
    468
    Likes:
    3
    how tell u , pl check briefly PNG FLIE
     
  11. ericgibbs

    ericgibbs Well-Known Member Most Helpful Member

    Joined:
    Jan 4, 2007
    Messages:
    21,181
    Likes:
    644
    Location:
    Ex Yorks' Hants UK
    If you post your HEX file and tell me the PIC type I will run it in my PC with Oshonsoft
     
  12. sahu

    sahu Member

    Joined:
    Oct 18, 2009
    Messages:
    468
    Likes:
    3
    My hex file as...USING micro-controller pic16f676
     

    Attached Files:

    • 676.hex
      File size:
      3 KB
      Views:
      112
  13. ericgibbs

    ericgibbs Well-Known Member Most Helpful Member

    Joined:
    Jan 4, 2007
    Messages:
    21,181
    Likes:
    644
    Location:
    Ex Yorks' Hants UK
    I have downloaded your hex, will run it, let you know tomorrow.
     
  14. sahu

    sahu Member

    Joined:
    Oct 18, 2009
    Messages:
    468
    Likes:
    3
    why its only running 5 instructions in Oshon Soft.
     
  15. ericgibbs

    ericgibbs Well-Known Member Most Helpful Member

    Joined:
    Jan 4, 2007
    Messages:
    21,181
    Likes:
    644
    Location:
    Ex Yorks' Hants UK
    It will run only the first 5 instructions, the next instruction is CALL 0x3FF, which normally is the internal oscillator calibration value.

    As this CALL doesn't get a RETURN in Oshonsoft, the program simulation will terminate.

    I would suggest in the binary hex file you change at address 0x0004 the Opcode 0x23FF to 0x0000 [ which will remove that CALL]

    Note: Oshonsoft is not able to use the SLEEP instruction.
     

    Attached Files:

  16. alec_t

    alec_t Well-Known Member Most Helpful Member

    Joined:
    Jul 10, 2011
    Messages:
    9,253
    Likes:
    1,218
    Location:
    Cardiff, Wales
    Shame. Is that true of the licenced software or just the trial version? That 'feature' rules it out for many battery-powered projects. Perhaps that could be mentioned in your Sticky, Eric? :(
     
  17. Ian Rogers

    Ian Rogers Super Moderator Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    9,160
    Likes:
    909
    Location:
    Rochdale UK
    Thanks for that Eric.... I use it extensively, never needed that sort of timing precision though.. So I don't use the osctune value....

    I know for the future
     
  18. ericgibbs

    ericgibbs Well-Known Member Most Helpful Member

    Joined:
    Jan 4, 2007
    Messages:
    21,181
    Likes:
    644
    Location:
    Ex Yorks' Hants UK
    hi alec,
    Extract from OSH doc 'pichelptopics.txt'
    <topic>Special notes

    - Watchdog Timer is not simulated (CLRWDT instruction is executed as NOP)
    - Power-down Mode is not simulated (SLEEP instruction will stop the simulation)
     
  19. alec_t

    alec_t Well-Known Member Most Helpful Member

    Joined:
    Jul 10, 2011
    Messages:
    9,253
    Likes:
    1,218
    Location:
    Cardiff, Wales
    Ah, understood. I thought we were talking about compiled code, not simulation.
     

Share This Page