Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20587

BASCOM-AVR : m128 pwm problem : REPLY

$
0
0
[quote:b355df2098="apam"][code:1:b355df2098] Str1 = Hex(h) ´bad Cas = Val(str1) ´bad '... Str1 = Hex(m) ´bad Tempword = Val(str1) ´bad [/code:1:b355df2098][/quote:b355df2098] First you convert to a Hex-string and then back, but you do it wrong, you need to use HexVal(), Val() will give a wrong result. However, the more serious side-effect about disturbing a PWM isn't explained by this piece of code and wrong commands. What I've said: "may lead then to a consequential error in your other code" likely applies to further code, you have to dug deeper.

Viewing all articles
Browse latest Browse all 20587

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>