MPLAB simulator

Discussion in 'Embedded Systems and Microcontrollers' started by jimtr6, Jun 19, 2010.

  1. jimtr6

    Thread Starter New Member

    Jun 16, 2010
    6
    0
    I am making some headway in writing simple programs, testing goto and decfsz, bit tests etc, just basic getting familiar with trying to write code. Using MPLAB I can set a bit high, low etc and test it and see if it works as it should, no problem there, I can simulate a high on a input in stimulus and I'm ok, my question is this, is there a place on MPLAB where I can set a bit on PORTA (a bit designated to be output) and see in the simulator somewhere the condition of that bit, like if it actually went high after the program set it, like an LED or something, I searched help and can't find anything, my device is a 16F84, thanks...jim

    p.s. on the template...... w_temp EQU 0x0C (is 0x0C a hex address, is this a decimal 12)
     
  2. Markd77

    Senior Member

    Sep 7, 2009
    2,803
    594
    If you go to View, Special Function registers it will show the ports there. If it doesn't show binary, you right click the grey bar and add it to the view.
     
  3. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    Perhaps the OP want to lock at the watch function. You can use it to trace changes for selected items in the file register(RAM).
     
  4. jimtr6

    Thread Starter New Member

    Jun 16, 2010
    6
    0
    Thanks Mark, that was exactly what I was looking for, it was in hex which was fine but to see the port toggle in binary makes it a bit easier
     
Loading...