i need a program regarding DETECTING POWER GRID SYNCHRONISATION FAILURE ON SENSING FREQUENCY OR VOLTAGE BEYOND ACCEPTABLE RANGE for 8051
So you'd better start writing it, then!
Alternatively, write a proper specification on which people could quote to do the work for you.