> -----Original Message----- > From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf > Of microsoftwarecontrol > Sent: 10 May 2010 01:54 > To: piclist@mit.edu > Subject: [PIC]picc805 add 16F886, strange behave > > The first: piccinfo.h added: > [16F886] > ARCH=PIC14 > PROCID=886F > ROMSIZE=2000 > BANKS=4 > RAMBANK=20,7F > RAMBANK=A0,EF > RAMBANK=110,16F > RAMBANK=190,1EF > COMMON=70,7F > ICDRAM=70,70 > ICDRAM=1E5,1EF > ICDROM=1F00,1FFF > DATABANK=2 > FLASHTYPE=READWRITE_A > EEPROMSIZE=100 > > Then: 16f877.h from version 9.70 coppied to 8.05's \include. > Third: pic.h have been added #include 16F877.h > > Compiling seems no error. But when running, even can not run "blink > =!blink;" > But can do blink=1; blink=0; > > What is wrong? > One is a Read-Modify-Write operation, the other isn't. Check your port has been configured properly for digital operation i.e. analog disabled. Mike ======================================================================= This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. ======================================================================= -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist