ME Labs, Inc. 719-520-5323 |
Migration from 16F877A to 16F887The PIC16F877A is an older part that is becoming obsolete. In our bundled development systems, we have replaced the 16F877A with the more modern 16F887. However, many of the books that we sell only have sample programs for the 16F877A. This is especially problematic in the book "LAB-X1 Tutorial and Resource Book" by Harprit Sandhu, which is included in our Super Bundle development system. The following information is intended to assist in converting programs for use with the 16F887. The syntax below is for PICBASIC PRO Compiler. Much of the function of the 16F877A ADCON1 register has been moved to the ANSEL and ANSELH registers in the 16F887:
DEFINE ADC_CLOCK does not function on the 16F887. This define must be replaced by a setting to the ADCON0 register:
|
Copyright 2022 ME Labs, Inc. PO Box 8250 Asheville NC 28814 (719) 520-5323 (719) 520-1867 fax email: support@melabs.com |
|