The code works on another platform, with the exact same wiring configuration. To make this clear, I can plug the power, gnd and signal into a Uno, and submit the same sketch and get the proper results. So even you should be able to grasp that code and wiring are not the problem. I suspect I know what the problem is, but before I break out the oscope, I posted a question to see if anyone else had encountered this issue before.
I did understand that from your first post but you seem to ignore that a different clock speed has implications on the software and a different voltage on Vcc may need a different wiring.
Your assistance (if that is what you want to call it) IS NOT REQUIRED OR DESIRED.
I accept that and will not post again in this topic.