
#include <8052.h>

main()
{
        T2CON |= 0x01;
        EXEN2 = 1;
        EA = 1;
        ET2 = 1;
        TR2 = 1;
        while (1) {
                /* my application code here */
                /* This is a test code */
                if (TF2 == 1) {         /* check overflow */
                        P1_4 = !P1_4; /* LED1 */
                        TF2 = 0;
                }
        }
}
