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 10th August 2004, 04:58 AM   (permalink)
Default Testing byte?

Is there a more elegant way to test a byte than using the BTFSC or BTFSS on all 8 bits for a 12F629?
Thorpydo is offline  
Old 10th August 2004, 06:47 AM   (permalink)
Default Re: Testing byte?

Quote:
Originally Posted by Thorpydo
Is there a more elegant way to test a byte than using the BTFSC or BTFSS on all 8 bits for a 12F629?
Yes, using normal byte sized logic, you can do an XOR or a SUBLW, and check the STATUS bits. If you look onj the PICList theres a good size section about comparing values.

If you check my tutorials I do this in various ones, try checking the codelock in the keypad tutorial, where I check fior the correct keys.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 04:17 PM.


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

eXTReMe Tracker