Download M68HC05 Applications Guide
Transcript
Freescale Semiconductor, Inc. Review Questions Review Questions, Answers, and Explanations 0100 10 00 0102 11 00 0104 20 fa PROG2 BSET BCLR BRA BSET 0, $00 0,$00 0,$00 PROG2 BCLR 0, $00 [5] Set port A bit 0 [5] Clear port A bit 0 [3] Repeat loop continuously BRA PROG2 BSET 0, $00 PROCESSOR CLOCK (INT) Freescale Semiconductor, Inc... PA0 PIN PULSE HIGH = 5~ PROG2 0100 a6 01 PROG3 LDA 0102 5f #$01 [2] Pattern for bit 0 high [3] Pattern for bit 0 low [4] Write to port A [4) Write to port A [3] Repeat loop continuously CLRX 0103 b7 00 0105 bf 00 0107 20 fa LDA #$01 PERIOD = 13~ LOOP3 STA STX BRA CLRX STA $00 $00 $00 LOOP3 STX $00 BRA PROG3 STA $00 STX $00 BRA PROG3 PROCESSOR CLOCK (INT) PA0 PIN PROG3 PULSE HIGH = 4~ PERIOD = 11~ M68HC05 Applications Guide — Rev. 4.0 MOTOROLA Review Questions For More Information On This Product, Go to: www.freescale.com 331