EECS452_Lab1 - September 14th 2009 E ECS45 2 Lab Report...

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

View Full Document Right Arrow Icon
EECS45 2 September 14 th 2009 Lab Report Jordan Adams Kevin Buckner
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
3.5.2 Large Memory Model Using the large memory model write a program that generates the above table of pointer values. Verify its operation. Include the source code in your lab report. Assume silicon revision 2.1. /*********************************************************** Code generates a list of pointer values and loops back as there is no page crossing. ***********************************************************/ #include<stdio.h> void main() { int ctr; unsigned int * ptr; ptr = (unsigned int *)0x1FFF8; for(ctr = 0; ctr < 12; ctr++) { printf("0x%05lp \n", ptr); ptr++; } } 3.6 Determining the Silicon Revision Write and run a C program to read the contents of the Device Revision ID Register that identifies the silicon revision. Make note of the revision number and use it in future programs. Include your code in the lab write up and note the revision number that you determined. Revision Number: 0x6512 /*********************************************************** Reads the silicon version at the correct address ***********************************************************/ #include<stdio.h>
Image of page 3

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

View Full Document Right Arrow Icon
void main(void) { ioport unsigned * ptr; ptr = (ioport unsigned *)0x3804; printf("0x%X \n", *ptr); } 3.7 Accessing the CPLD, switches and LEDs Write a small program using the small memory model and the FarPeek and FarPoke functions to read the switches and copy their settings into the LEDs. Demonstrate to the GSI. Describe what you did and include your code in the lab report. Write a small program using the large memory model and pointers to read the switches and copy their settings into the LEDs.
Image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the 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