$changed not working well

In reply to amudelka:

Hard to help you without knowing what the difference between working and not working is. We need to see a timing diagram or complete code example. (MCVE)