When I send the value of testa on a DEBUG line I get the proper value so it must be a setting in MPSIM somewhere.
I can't figure out why there would be such a setting though!
Mike
When I send the value of testa on a DEBUG line I get the proper value so it must be a setting in MPSIM somewhere.
I can't figure out why there would be such a setting though!
Mike
Which PIC are you using?
Some with 16-bit read/write modes for timers require you to read low byte first, then high byte.
I am using 16F628A
In the Watch properties of testa I changed the size to 16 bits and that solved it.
Now how can I get the value of each array data in the watch window?
let say I have a variable called ArrayVariable(x)
I would like to read ArrayVariable(1) and ArrayVariable(2)
The only choice I get from the list is _ArrayVariable
Thanks
Mike
Click View, File Registers, and scroll down until you see _ArrayVariable. This will be
_ArrayVariable[0]. After that will be the rest of the array.
Bookmarks