I am wondering how to detect worm/cold reset in T89C51RD2. According to the data sheet there's a bit (POF) in PCON register that he should be high at worm reset, but for some reason it's not working. One of the first things I'm doing when program starts is to check this bit and if the bit is high then I initialize some parameters otherwise not. After running the program I sow that the bit value is always low no matter what kind of reset I do (switching power off, pressing reset switch, or in software jumping to address 0x0000). P.S. My software is based on RTX full and I check this bit in the following way: if (PCON & 0x10) buffs_init(); Does someone have a solution for that? Thanks for any help, Ruven