EECS452_Lab1 - EECS45 2 September 14 th 2009 Lab Report...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: EECS45 2 September 14 th 2009 Lab Report Jordan Adams Kevin Buckner 3.5.2 Large Memory Model Using the large memory model w rite a program that generates the above table of pointer values. Verify its operation. I nclude 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 I D Register that identifies the silicon revision. Make note of the revision number and use it in future programs. I nclude your code in the lab w rite up and note the revision number that you determined. Revision Number: 0x6512 /******* ** *** ** *** ** ** *** ** ** *** ** *** ** ** *** ** *** ** ** *** ** ** Reads the silicon version at the correct address ***********************************************************/ #include<stdio.h> 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....
View Full Document

This note was uploaded on 09/24/2009 for the course EECS 452 taught by Professor Staff during the Spring '08 term at University of Michigan.

Page1 / 11

EECS452_Lab1 - EECS45 2 September 14 th 2009 Lab Report...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online