is there a way to secure my code in the chip 89c51 so that other can not copy it?
Yes such as Xeltek, Needhams, Bp micro and many others. Erik