- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an you please help me out on the lab_4 exercise in computer organization laboratory exercises. I prefer not to write in assembly, so using C to write the application program for it. Its a DE2 board.
If anyone could please help me out with a solution. code: # include<stdio.h> //define timerr (char *) 0x00011000 define jtag_uart_cnt (char *) 0x00011024 define jtag_uart_data ( char *) 0x00011020 int main(){ char x; int x2; while(1){ *jtag_uart_cnt=0xfffff; if(*jtag_uart_cnt>0){ printf("write data to jtag_uart\n"); scanf("%s",x); x2=(int)x; *jtag_uart_data=x2; printf("sucessfully written to jtag data register\n"); } } return 1; }Link Copied
0 Replies
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page