Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 22nd September 2007, 05:07 PM   (permalink)
Question Need help !! If commands in asm file

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
rukshankb is offline  
Old 22nd September 2007, 05:15 PM   (permalink)
Default

Check the PICList, it gives code examples for all the comparisons you want!
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Programming HEX file with MPlab/Inchworm gregmcc Micro Controllers 4 27th April 2007 04:20 PM
Good Programing Techniques Suraj143 Micro Controllers 5 27th April 2007 08:27 AM
How we can do it in Assembly..Help Needed Ayne Micro Controllers 37 29th December 2006 06:49 PM
Cellular AT Commands mayo General Electronics Chat 4 28th June 2006 09:45 PM
how would i generate HEX file for multiple assembly files? belinda_sg Micro Controllers 2 30th March 2004 08:54 AM



All times are GMT. The time now is 09:18 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker