Homework 10
- due: Monday Dec 8
- hand in or email to
esb@hawaii.edu, no later than the beginning of class.
- Read and understand pages 3-14 and 69-76 of the PIC 12F675 datasheet, and skim the remainder.
- Note added after the homework was due, on a student's suggestion:
if you need additional assistance, you may look at this
PIC tutorial.
- Write and turn in a program fragment (in assembly) that will put
the processor into low-power mode (SLEEP mode) for 1 hour. You will
probably need to loop. Remember that each "register" only contains
8 bits, so you will probably need a nested loop. There is no need
to declare your registers -- assume they are called LOOP1, LOOP2, etc.
You do, of course, need to appropriately initialize these registers.
- The innermost part of your loops should start timer1, scaled to
go as slowly as possible, and then call SLEEP. You do not need to
worry about interrupts -- assume they are disabled. You may find
Section 5 of the manual useful.
Optional: if you have a special project in mind and wish to write a
different a assembly program for this processor instead of the above,
please contact the instructor ASAP to make arrangements.