Answers to Questions

Answers 1

Image

Answers 2

1.
(a) Load the working register with the number 0FFh (sets all bits)(2)
(b) Jump to a subroutine starting with the label ‘delay’ and return afterwards(2)
2.
(a) CODE: indicates start of program code(2)
(b) EQU: declares a constant label(2)
(c) #INCLUDE: insert source code text file(2)
3.GOTO, SLEEP; program will run through blank locations and repeat(3)
4.Address, register(2)
5.Power-up timer enable, watchdog timer enable, clock oscillator type select(3)
6.A bit test is used to determine whether the next instruction is skipped or not (BTFSS, BTFSC). This is usually followed by a GOTO or CALL to change the program ...

Get Interfacing PIC Microcontrollers, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.