Hello Heino
Thank you very much for replying to my question personally [:)]
I followed the example in the transmitter ASM file (WEM zender), and could not resolve the X_1 value to 128 and got <b>219</b> instead :
3600,000,000 / 600 = 6,000,000 then 6,000,000 / 65536 = 91 (X_3) - <font color="green">OK</font id="green">
6,000,000 - 5963685 (91 x 65535) / 256 = 141 (X_2) - <font color="green">OK</font id="green">
6,000,000 - 5963685 (65535 x 91) - 36096 (256 x X_2) = 219 - <font color="red">Incorrect</font id="red">
However, if 65535 was 6553<b>6</b> above, you <u>would</u> get 128.
My meter gives 166.6666 (2/3) impulses / rotations per kW/h
So, firstly :
3,600,000,000 / 166.6666 = <b>216,000,00</b> - My parameter
216,000,00 / 65536 = <b>329</b> (X_3)
216,000,00 - (329 x 65535) / 256 = <b>152</b> (X_2)
216,000,00 - (329 x <b>65536</b>) - 38912 (256 x 152) = <b>minus -256</b> (X_1) ???
I am sorry for the very long calculations, but you can now see why I have been struggling with this.
Also, I was not aware that you needed to change and code in the transmitter (WEM zender.asm) software - there are no instructions.
Again, very many thanks for your help
Richard