SUMMARY
The discussion centers on transitioning from the PIC 16F628A to the PIC 16F87 microcontroller due to the need for additional EEPROM. The user encountered issues with configuring PORTB<0-3> for I/O, mistakenly modifying the T1CON and SSPCON registers, which are intended for timer and serial communication functionalities. The resolution involved recognizing that the state of the ports is influenced by EEPROM values, specifically the registers EEADR, EEDATA, and EECON1, which reside in different memory banks. The user successfully restored functionality after addressing these issues.
PREREQUISITES
- Understanding of PIC microcontroller architecture, specifically the PIC 16F628A and PIC 16F87.
- Familiarity with EEPROM memory management in microcontrollers.
- Knowledge of register manipulation, particularly T1CON and SSPCON.
- Experience with assembly language programming for PIC microcontrollers.
NEXT STEPS
- Research the Microchip selection matrix for potential ROM upgrade paths for the PIC 16F628A.
- Learn about EEPROM handling in PIC microcontrollers, focusing on EEADR, EEDATA, and EECON1 registers.
- Explore alternatives to PICASM, such as Microchip's free C compilers for PIC programming.
- Investigate best practices for configuring I/O ports on PIC microcontrollers to avoid similar issues.
USEFUL FOR
This discussion is beneficial for embedded systems developers, engineers transitioning between PIC microcontroller models, and anyone involved in EEPROM management and I/O configuration in microcontroller applications.