![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| 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 | |
| |
| | (permalink) |
| Check the PICList, it gives code examples for all the comparisons you want! | |
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| 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 |