f8kgl / swr_power_meter

Repo of Swr Power Meter project of F8KGL
1 stars 1 forks source link

La valeur de sortie en BCD est sur 3 octets #362

Closed f4bjh closed 3 years ago

f4bjh commented 3 years ago

ce qui n'est pas logique.

Ex : 2500 -> 0010 0101 0000 0000 soit 2 octets

f4bjh commented 3 years ago

359

f4bjh commented 3 years ago

même avec (9999) ça donnerait 1001 1001 1001 1001 => 2 octets suffisent

f4bjh commented 3 years ago

http://ww1.microchip.com/downloads/en/Appnotes/00526e.pdf

f4bjh commented 3 years ago

oui...c'est parce que 2 octets = [0;65535] => [00000000 00000000 00000000; 00000110 01010101 00110101]

donc 3 octets = taille max.

Il faudrait un convertisseur 11 bits (2047 max) vers BCD 2 octets

f4bjh commented 3 years ago

https://stackoverflow.com/questions/28670539/why-is-the-double-dabble-algorithm-working

f4bjh commented 3 years ago

370

f4bjh commented 3 years ago

oups, la référence au commit ci-dessus est incorrecte