treadmill program - [email protected],A mov DPTR#h'8007 mov A#h'01...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 Stacy Devino Lab 2b EECS 346 start RTC + P1 (port_1) mov p1,#h'00 mov R0, #h'ff loopit: mov R1, #h'ff loopnow: nop nop djnz R1,loopit djnz R0,loopnow Set registers mov DPTR, #h'800A Register A mov A,#d'0032 movx @DPTR,A mov DPTR, #h'800B Register B mov A,#d'0128 movx @DPTR,A mov DPTR,#h'8000 seconds mov A,#h'00 movx @DPTR,A mov DPTR,#h'8001 mov A,#h'00 movx @DPTR,A mov DPTR,#h'8002 minutes mov A,#h'00 movx @DPTR,A mov DPTR,#h'8003 mov A,#h'00 movx @DPTR,A mov DPTR,#h'8004 hours mov A,#h'00 movx @DPTR,A mov DPTR,#h'8005 mov A,#h'00 movx @DPTR,A mov DPTR,#h'8006 mov A,#h'01
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: movx @DPTR,A mov DPTR,#h'8007 mov A,#h'01 movx @DPTR,A mov DPTR,#h'8008 Sheet1 Page 2 mov A,#h'01 movx @DPTR,A mov DPTR,#h'8009 mov A,#h'01 movx @DPTR,A Reset B mov DPTR, #h'800B mov A,#h'00 movx @DPTR,A rxd_pin: JB p3.0, Hours clr p3.0 Seconds: mov DPTR,#h'8000 movx A, @DPTR mov p1, A setb p3.4 clr p3.4 mov DPTR,#h'8002 movx A, @DPTR mov p1, A setb p3.5 clr p3.5 jmp Seconds Hours: mov DPTR,#h'8002 movx A, @DPTR mov p1, A setb p3.4 clr p3.4 mov DPTR,#h'8004 movx A, @DPTR mov p1, A setb p3.5 clr p3.5 jmp Hours...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern