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

BASCOM-AVR : strange biniary output : REPLY

$
0
0
[quote:ef57053e25="MHz"]It took me a long time to figure out ...[/quote:ef57053e25] It may also be, that you expect a functionality, which the µC doesn't provide and your result is because of this undefined state. This would explain, why a simulator does it right, while the µC has a different opinion about it. Quote from the data sheet: [quote:ef57053e25]The ICR1 Register can only be written when using a Waveform Generation mode that utilizes the ICR1 Register for defining the counter’s TOP value. In these cases the Waveform Generation mode (WGM13:0) bits must be set before the TOP value can be written to the ICR1 Register. When writing the ICR1 Register the high byte must be written to the ICR1H I/O location[/quote:ef57053e25] Could you explain, beside the inconsistency of the output, where this gives an actual problem?

Viewing all articles
Browse latest Browse all 20610

Trending Articles



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