watch value of W Reg in debugging mode.

General discussion on mikroC PRO for PIC.
Post Reply
Author
Message
elektromm
Posts: 8
Joined: 05 Jun 2023 18:51

watch value of W Reg in debugging mode.

#1 Post by elektromm » 05 Jun 2023 19:03

hi,
i want to know please,
is there a way to watch the W value (work register - Wreg ) of the PIC in MikroC Pro on debugging mode?
Thanks a lot

User avatar
IvanJeremic
mikroElektronika team
Posts: 316
Joined: 05 Sep 2022 14:32

Re: watch value of W Reg in debugging mode.

#2 Post by IvanJeremic » 07 Jun 2023 08:46

Hi,

You can see the value of WREG by adding it to the watch list, basically find WREG in your MCUs source file (in my case it will be PIC18F458) right click it and click on add to watch list.
After that you will be able to see its value in the watch list.

You can just write WREG in your main code and right click on it and click on find declaration if you are having trouble finding the source file for your MCU.
wreg1.png
wreg1.png (73.44 KiB) Viewed 580 times
wreg2.png
wreg2.png (9.42 KiB) Viewed 580 times
wreg3.png
wreg3.png (18.97 KiB) Viewed 580 times
Regards,

Ivan.

elektromm
Posts: 8
Joined: 05 Jun 2023 18:51

Re: watch value of W Reg in debugging mode.

#3 Post by elektromm » 07 Jun 2023 15:48

thanks thanks thanks :D

elektromm
Posts: 8
Joined: 05 Jun 2023 18:51

Re: watch value of W Reg in debugging mode.

#4 Post by elektromm » 07 Jun 2023 16:13

OUPS! :roll:
i use a PIC 12F675, i can't use this way, because i can't find the WREG.
im2.jpg
im2.jpg (157.48 KiB) Viewed 568 times
im2.jpg
im2.jpg (157.48 KiB) Viewed 568 times
Attachments
im1.jpg
im1.jpg (1001.7 KiB) Viewed 568 times

elektromm
Posts: 8
Joined: 05 Jun 2023 18:51

Re: watch value of W Reg in debugging mode.

#5 Post by elektromm » 07 Jun 2023 16:16

OUPS! :roll:
i use a PIC 12F675, i can't use this way, because i can't find the WREG.
im2.jpg
im2.jpg

Post Reply

Return to “mikroC PRO for PIC General”