Thus spake Simon C Sirin (simon@ROBIN.EE.UNLV.EDU): > Alright....how the hell do you write to a port??? > > This is what I did... > > Is there something wrong with my > logic or did I miss something again????? Although you should not use the TRIS instructions, you still need to program the port pin as an output bit. You do this on the 14 bit chips by writing to the corresponding register in bank 1 of the RAM. This requires you to set the appropriate bit in the status register before doing the write. For example: bsf 3,5 ;set the RP0 bit to select bank1 clrf portb ;reset all the DDR bits bcf 3,5 ;reselect bank 0 This will set ALL the bits of portb to be outputs. -- Clyde Smith-Stubbs | HI-TECH Software, | Voice: +61 7 3354 2411 clyde@htsoft.com | P.O. Box 103, Alderley, | Fax: +61 7 3354 2422 http://www.htsoft.com | QLD, 4051, AUSTRALIA. | --------------------------------------------------------------------------- Download a FREE beta version of our new ANSI C compiler for the PIC microcontroller! Point your WWW browser at http://www.htsoft.com/