E E 319K Final: EE319K FinalSp13aSol

25 views4 pages
31 Jan 2019
School
Course
Professor

Document Summary

Consider a game that has 100 bouncing balls. void samespace(void){ unsigned long i,j; for(i=0; i<99; i++){ for(j=i+1;j<100;j++){ if((ball[i]. x == ball[j]. x)&&(ball[i]. y == ball[j]. y)){ Interface a single-pole double-throw (spdt) switch to input port pa0. Implement a c function outputs a string to uart0. void uart_outstring(unsigned char *pt){ while(*pt){ while((uart0_fr_r & 0x20) != 0){}; // wait until txff = 0. Uart0_dr_r = *pt; // output pt++; // next (8) question 5. Design a 5-bit dac using the binary-weighted configuration. Any set of resistor values that doubles is ok. // this is the last line of the fun. c code file (10) question 7. Show an assembly subroutine that sets each element of the buffer to its index value. Assuming i varies from 0 to 99, set buffer[i] = i; Mov r2,#100 ;ending index loop str r1,[r0] ;put index into buffer. Write c or assembly code that creates this output on pa2 using systick interrupts.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents