Menu

really slow down program

2017-07-13
2017-07-17
  • stan cartwright

    stan cartwright - 2017-07-13

    What sort of interrupt would slow a program down a 100 times so it showed a line being drawn a pixel at a time?...out of interest.

     
    • Chris Roper

      Chris Roper - 2017-07-17

      What sort of interrupt would slow a program down a 100 times so it showed
      a line being drawn a pixel at a time?...out of interest.

      You would need a hardware debug tool such as the ICD3.
      They use the programming pins as a JTAG port and can take over control at
      the hardware level to Single step instructions or step into or over calls.
      So what you want can be done but is not cheap and would require you to use
      Microchip tools, I doubt you could do it with GCBASIC Source.

       
  • Anobium

    Anobium - 2017-07-13

    Don't know. Do tell us.

     
  • stan cartwright

    stan cartwright - 2017-07-13

    There was a device in the 80's called SloMo that slowed home computers for games. You could turn a pot and slow the machine enough to see the screen being drawn. I could use delays but it was just a thought. Something I came across recently reminded me of it. Like single stepping through code with speed control but not in a simulator. Silly idea,forget it.

     
  • Chris Roper

    Chris Roper - 2017-07-17

    What sort of interrupt would slow a program down a 100 times so it showed a line being drawn a pixel at a time?...out of interest.

    You would need a hardware debug tool such as the ICD3.
    They use the programming pins as a JTAG port and can take over control at the hardware level to Single step instructions or step into or over calls.
    So what you want can be done but is not cheap and would require you to use Microchip tools, I doubt you could do it with GCBASIC Source - You maybe able to use the GCBASIC Generated ASM File though.

     
  • Anobium

    Anobium - 2017-07-17

    or, blink your eyes very very quickly.

    or, change PSET routine with two switch inputs. One to single step and one to toggle the one step capability.

     
    • Chris Roper

      Chris Roper - 2017-07-17

      How about seting the config for an external clock then feeding CLKIN with a Function Generator to vary the speed?

       
      • Anobium

        Anobium - 2017-07-17

        Clever!

         
  • stan cartwright

    stan cartwright - 2017-07-17

    I hadn't thought of that. I thought it was set frequencies.I'll try doing that but not sure about mega328p. I've not seen any GCB 328p examples at other than 328p,16.
    Cheers Chris.

     
    • Anobium

      Anobium - 2017-07-17

      PIC you can do.

      AVR.... the config fuses are set by the bootoader....play with thosie AVR no worky... but, you can use the EXT INT and update PSET to look for signal.

       
  • stan cartwright

    stan cartwright - 2017-07-17

    I think I better use pic more. That was always my intention. Dunno why I bothered with avr. It just happened. No vero and usb plug and play maybe for same price as an pic equivelent chip alone.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.