TGO Electronica wrote: > Hello, > > I have been programming this PIC for several years without a problem, until > now, that we got a new batch of PIC18F2610s date coded 0804. > > Same program, same configuration, same board, same programmer, etc... Older > PICs dated 04XX up to 07XX work perfect, only the new ones we got don't > work. > > I have isolated the problem to PortA. For example: > > PortA configured as Digital I/O (no analog inputs) ADCON1=B'00111111' > bsf PORTA,3 > bsf PORTA,5 > after executing this instructions PORTA,3 is LOW (!!!) and PORTA,5 is HIGH What happens after bsf PORTA, 3 nop nop bsf PORTA, 5 ? Jan-Erik > > but if I reverse the instructions: > bsf PORTA,5 > bsf PORTA,3 > both PORTA,3 and PORTA,5 are HIGH > > I may have been doing something wrong and never showed up until these new > PICs or something changed on the silicon, that I have not been able to > pinpoint in the erratas. So any help will be greatly appreciated. > > Gabriel > TGO -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist