已知51单片机,fosc=6MHz,试编写程序,利用T0和P1.7产生如下图所示的连续矩形脉冲。参考程序:org 0000hljmp mainorg 000bhljmp int_t0org 0030hmain: mov tmod,#00000010bmov ie,#10000010bmov th0,#0echmov tl0,#4chclr p1.7setb tr0sjmp $int_t0: jb p1.7,loopmov th0,#4chsetb p1.7reti[详细]
Copyright © 2014-2023 颖特新科技有限公司 All Rights Reserved. 粤ICP备14043402号-4