When I try to program the controller I go to reset the switch phase but the microcontroller is not detected as given in the link Controller to be detected ?
Are you sure your Sst89e516rd2 has a bootloader programmed into it ?
If you can find a parallel programmer, you may be able to read the DIP40 part, to check for the bootloader.
You can also connect a scope to the TXD.RXD lines and check what comes from PC side, and what the MCU replies with.
If the Sst89e516rd2 has no bootloader programmed, your choices would be to
a) find parallel programmer and bootloader code and pgm it
or
b) choose a newer DIP40 with a bootloader included
eg lcsc has these in older 89C51 pinout
STC89C516RD+40I-PDIP40 1+ US$1.696 131 In Stock
STC12C5A60S2-35I-PDIP40 1+ US$1.7278 940 In Stock
and this part is faster and newer and smarter, but not quite the same pinout.
STC8H8K64U-45I-PDIP40 1+ US$1.5607 51 In Stock
or, Aliexpress have MCU parts mounted with USB programming included for similar $
https://www.aliexpress.com/item/1005004472730522.htmlhttps://www.aliexpress.com/item/1005004786538002.htmlhttps://www.aliexpress.com/item/1005004786339050.html