Continue to Site

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.

  • 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.

Is there anyway to monitor the carry bit using MPLAB?

It depends what you mean by monitor. The state of the carry bit is shown on the information line at the bottom of the screen. A capital C is carry set, lower case is carry clear.

If you want to break at a certain point only when the carry is set then the only way I know to do it is to insert extra code.
I.E.
Code:
        btfsc   STATUS,C
        nop   ;                 set a break point here

Mike.
 

Latest threads

Back
Top