lab3 - LAB 3 Writing a small application in assembly...

This preview shows page 1 - 2 out of 3 pages.

LAB 3:Writing a small application in assembly language.This lab is a two-week lab.This lab consists of the following tasks:Write a 48-bit unsigned multiplication subroutine in PIC24F assemblylanguage.Write a subroutine which implements the algorithm for the (modified)rand48 pseudo-random number generator in PIC24F assembly language(the methodology is given below.)Write setup code in PIC24Fassembly language to initialize bits RB2, RB3,..., RB9 as outputs (see discussion 1 code).Write code to initialize the pseudo-random number generator (the method-ology is given below) in PIC24F assembly language.Debug and simulate your code.Wire up the circuit as shown.Demonstrate that you have done this correctly by producing, on the out-put, the proper sequence of pseudo-random numbers (or at least 8 bits ofeach of them).You program should initially start with all LED’s off. Then, for each pressof the switch, it should generate a pseudo-random number obtained from the(modified) rand48 function whose algorithm is described below. This will be a

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture