What white powdery compound turn black immediately after heating?
The answer to this question partially answers yours.Let me speculate. The compound could be some crystallized organic compound, making it appear white. On heating, it degrades and becomes solid carbon, which is black, giving of some carbon dioxide and water vapour. It wouldn't have any sulfurous groups, as it would give off sulfur dioxide.