> status equ 0x07 ; status register > rp0 equ 5 ; > carry equ 0 ; the carry bit > > ;; port B configuration > portb equ 0x06 ; I/O port B > serio equ 7 ; the serial i/o is RB7 > sda equ 5 ; SDA is RB5 > scl equ 4 ; SCL is RB4 > > trisb equ 0x86 ; trisb is the direction register for port B DON'T DO THIS!!!! (This must be about the 20th time this has come up in the last year). Microchip provides include files that contain all these constants for every PIC. They are in your MPLAB installation directory. At best you won't mess up by typing these in yourself. In your case you did mess up. ******************************************************************** Olin Lathrop, embedded systems consultant in Littleton Massachusetts (978) 742-9014, olin@embedinc.com, http://www.embedinc.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads