Connect with us

Microchip PIC programming question

Discussion in 'Electronic Components' started by DAFLY98, Nov 5, 2003.

Scroll to continue with content
  1. DAFLY98

    DAFLY98 Guest

    Hi, I started programming PICS not to long ago 16F84A to be exact. I knew there
    were no value compares within the instruction set but now I am in need of some
    compare code. I did search the net and ran across a couple using the status
    reg. carry and zero bits, but I have found some problems using it. I am doing
    16bit compare but I can modify 8bit compare code to work for my needs. any help
    will be appreciated
  2. "As a result of a subtract operation, the C bit is cleared to zero if
    a borrow occurs, and is set otherwise."

    Design With PIC Microcontrollers
    John B. Peatman
    Prentice Hall
    ISBN 0-13-759259-0
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day