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.

Testing byte?

Status
Not open for further replies.
Thorpydo said:
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.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top