0
\$\begingroup\$

The input frequency is 2 MHz and the output should be 2 kHz since I used mode 3 and the initial count value N=1000d.

The output frequency is 500kHz.

enter image description here

\$\endgroup\$
1
  • \$\begingroup\$ You sure you are doing what you think you are doing? Discerning PNs from your screenshot is impossible - for me - but I see that you are not using half of your address (or data?) bus... \$\endgroup\$ Dec 13, 2020 at 8:41

1 Answer 1

0
\$\begingroup\$

You are using the BCD mode and loading in a divider that is illegal BCD number.

\$\endgroup\$
7
  • \$\begingroup\$ When i use binary counter proutues freezes and shuts down \$\endgroup\$
    – mmm
    Dec 13, 2020 at 9:59
  • \$\begingroup\$ That's unfortunate but does it prevent you from using a valid BCD number? \$\endgroup\$
    – Justme
    Dec 13, 2020 at 10:49
  • \$\begingroup\$ can you suggest a value ? \$\endgroup\$
    – mmm
    Dec 13, 2020 at 11:28
  • \$\begingroup\$ Just convert any value 0-9999 to BCD, so 1000 in BCD should be fine. \$\endgroup\$
    – Justme
    Dec 13, 2020 at 21:15
  • \$\begingroup\$ you mean i have to write mov ax,0001 0000 0000 0000 b ? \$\endgroup\$
    – mmm
    Dec 14, 2020 at 8:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.