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.

Need help !! If commands in asm file

Status
Not open for further replies.

rukshankb

New Member
Hi to all
I'm a newbie to pic programming. So i need to learn "How i make if else command in assembly language?"
I know the btfss and btfsc commands...
But i need to do like this?

Eg:- I use a temperature reader....
If temp> 100 = bulb1 is on
else 100>temp>30 = bulb2 is on
otherwise = bulb3 is on
(Those values are in pic registry)
The problem is how can i compare the value? I can get the binary or hex value of the temperature. But i need to know is "How compare values (< or >) in pic programming.(I use MPLAB)"

Regards
 
Status
Not open for further replies.

Latest threads

Back
Top