I write a program using Keil C for 89C52. This program is successfully compiled. But when I choose another microcontroller (DS87C550), but I still keep the same program ( I just change the hearder file ), it get error like this : P0 redefinition, P1 redefinition, .... If anyone know how to solve this, please post your thread here or send an email to me : duyduong@vitek.com.vn. Thanks in advance.
Hi, Stefan Duncanson and Radim Vondra ! Thanks a lot ! I have checked my program and I found out that I included the header file "reg550.h" in another header file and I used both of them in my program. So this caused the error. I have successfully recomplied it.