We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>


Looking For Something at vustudents.ning.com? Click Here to Search

Assignment [Total Marks 20]

Q No. 1

Write the C Program that can be used to program the master DMA controller, description of your program is as follows.

We have supposed that an I/O device have acquired the control of channel 1of the master DMA controller and want to write the data from I/O device to RAM using demand transfer mode of DMA. You are required to program therequired DMA internal registers such that I/O device can perform the demandtransfer mode with above specifications.
In your program suppose the following things.

  • Supposed you want to transfer the data from I\O device to Memory and have stored that data in a character array, i.e. global data in your program and name of that character array should be according to your VUID suppose mc060402111.
  • Size of the data that I/O device want to write in the memory using thedemand transfer mode of DMA should be calculated as follows. Take the last four digits of your VUID and represent them in a hexadecimal number. For example VUID mc060402111 have the value of last four digits ‘2111’ and these are represented in hexadecimal number as 0x2111 and load these values in the respected count register.

+ Click Here To Join also Our facebook study Group.

..How to Join Subject Study Groups & Get Helping Material?..


See Your Saved Posts Timeline

Views: 1006

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

Replies to This Discussion

any one help...............please i have no idea at alll..................

Any idea Dears!!!

koi Allah ka banda share kr de aj last date ha CS609 ki?

plz help today is last date plzzzzzzzzzzzzzzzzzzzzzzzzzzzzz

any hints plz share , so we can solve this question from old solved solution assignments..????

any idea solution please.............

any one pleaseeeeeeeeeeee.................

#include <dos.h>
#include <bios.h>
#include <conio.h>

char st[100];
unsigned long int temp;
unsigned int i;
unsigned int count=96; // 96 bytes will be transferred

void main (void)
{

// As data is globally declared so DS have the segment address of data part.

temp=(unsigned long int)_DS; // Segment address (Address of Data part)

temp=temp4; // Getting absolute (base) address for data part (20 bit address)

i=*((unsigned int *)(&temp));// Lower 16 bits are stored in i of that 20 bit address

temp=temp>>16; // Higher 4 bits of temp are now in temp's least significant position.



// Higher 4 bytes will be loaded in Latch b for channel 2

outportb(0x82,*((unsigned char *)(&temp))); // 0x82 is address of Latch B for channel 2


// Lower 16 bits will be loaded serially into base register

outportb(0x04,*(((unsigned char *)(&i)))); // 0x04 is the base register for channel 2
outportb(0x04,*(((unsigned char *)(&i))+1));


count--;

// count will be loaded serially into count register as we did above

outportb(0x05,*((unsigned char *)(&count))); // 0x05 is the count register for channel 2
outportb(0x05,*(((unsigned char*)(&count))+1));


outportb(0x0b,0x86);// 0x0b is address of mode register
// 0x86 means Mode register is programmed for channel 2 in block transfer mode
// for write cycle and Auto initialization is off

outportb(0x08,0); // 0x08 is address of command register for slave
// 0 means transfer data between memory and I/O


outport(0x0a,2); // unmasking the channel 2

getch();

sir where to write our vu id and where to write last four digits of id...................please as there is no time now.....please any one.....God bless you for ever....thanx.

That's not correct solution.

code complete nahi ha

tariq bhai is main VU ID add nahi ha

RSS

Latest Activity

+ M.Tariq Malik added a discussion to the group MCM601 Media Management
18 seconds ago
+ M.Tariq Malik added a discussion to the group MCM532 Magazine Journalism
29 seconds ago
+ M.Tariq Malik added a discussion to the group MCM531 Community Journalism
42 seconds ago
+ M.Tariq Malik added a discussion to the group MCM520 Contemporary Mass Media
52 seconds ago
+ M.Tariq Malik added a discussion to the group MCM517 Online Journalism
1 minute ago
+ M.Tariq Malik added a discussion to the group MCM516 TV News Reporting & Production
1 minute ago
+ M.Tariq Malik added a discussion to the group MCM515 Radio News Reporting & Production
1 minute ago
+ M.Tariq Malik added a discussion to the group MCM514 Feature & Column Writing
1 minute ago

Today Top Members 

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service