---- START NEW MESSAGE --- Received: from cherry.ease.lsoft.com [209.119.0.109] by dpmail10.doteasy.com with ESMTP (SMTPD32-8.05) id A3146C04003C; Sun, 01 Feb 2004 13:43:48 -0800 Received: from PEAR.EASE.LSOFT.COM (209.119.0.19) by cherry.ease.lsoft.com (LSMTP for Digital Unix v1.1b) with SMTP id <17.00CC8135@cherry.ease.lsoft.com>; 1 Feb 2004 16:43:40 -0500 Received: from MITVMA.MIT.EDU by MITVMA.MIT.EDU (LISTSERV-TCP/IP release 1.8e) with spool id 3976 for PICLIST@MITVMA.MIT.EDU; Sun, 1 Feb 2004 16:43:34 -0500 Received: from MITVMA (NJE origin SMTP@MITVMA) by MITVMA.MIT.EDU (LMail V1.2d/1.8d) with BSMTP id 5314; Sun, 1 Feb 2004 16:43:00 -0500 Received: from smtp2.clear.net.nz [203.97.37.27] by mitvma.mit.edu (IBM VM SMTP Level 430) via TCP with ESMTP ; Sun, 01 Feb 2004 16:42:59 EST X-Comment: mitvma.mit.edu: Mail was sent by smtp2.clear.net.nz Received: from jc2 (218-101-64-5.dialup.clear.net.nz [218.101.64.5]) by smtp2.clear.net.nz (CLEAR Net Mail) with SMTP id <0HSF00MPSDNO83@smtp2.clear.net.nz> for PICLIST@MITVMA.MIT.EDU; Mon, 02 Feb 2004 10:43:01 +1300 (NZDT) MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Mailer: Microsoft Outlook Express 6.00.2600.0000 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit X-Priority: 3 X-MSMail-priority: Normal References: <401D51CA.E28A1127@3mtmp.com> Message-ID: <005801c3e90c$93e2cea0$7223fea9@jc2> Date: Mon, 2 Feb 2004 10:44:27 +1300 Reply-To: pic microcontroller discussion list Sender: pic microcontroller discussion list From: Jinx Subject: Re: [PIC:] AND, and OR To: PICLIST@MITVMA.MIT.EDU Precedence: list X-RCPT-TO: Status: U X-UIDL: 371856782 > In addition to what the others have said, if you are running windows, > you may want to play with the calculator that comes with it. You can > switch it to scientific mode and do binary operations with boolean > logic. I use it a fair bit for quick sanity checking. Registers in MPLAB's Watch Window can be set to binary format so you can see how bits change while your PIC program is running (eg using F7 to step through instructions) For MPLAB 6.x open a Watch Window through "View" Add the register(s) you want to look at. Select one with left-click, right- click on it, Properties. Repeat for as many registers as you need You can double-click on the "Value" to initialise the register's contents before running a routine -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads .