Introduction - If you have any usage issues, please Google them yourself
C51 shifted from AVR, from the concept of conversion, you can pass this book to understand the AVR architecture, so that it can in the above program. Single-chip entry-Series C51 to AVR