OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 5:12 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: "Note2: some tutorials seem to claim ..." (fdc wiki.osdev.or
PostPosted: Mon Apr 18, 2022 9:51 am 
Offline

Joined: Mon Mar 12, 2018 12:31 pm
Posts: 2
hi ppl. about the floppy disk controller, i'm using an intel 82077 all-in-one chip;
so i went to check the wiki along the datasheet:
https://wiki.osdev.org/Floppy_Disk_Controller
then i saw the note,
"Note2: some tutorials seem to claim that changing/setting the datarate causes an IRQ6. This is false."

However, the 82077 datasheet page 41, shows a diagram with a procedure to init the controller that includes "Program Datarate via CCR" then "Wait for interrupt" then "Issue Sense Interrupt Status".

it seems that the fdc is not making an IRQ after setting CCR, (for now my program just aborts the wait with a timeout).
i'm still wondering why is stated in the datasheet that one should get an irq.
http://www.buchty.net/casio/files/82077.pdf


Top
 Profile  
 
 Post subject: Re: "Note2: some tutorials seem to claim ..." (fdc wiki.osde
PostPosted: Mon Apr 18, 2022 12:05 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5099
The datasheet shows the order in which you should initialize the controller, not cause and effect. The interrupt is caused by resetting the controller. It takes a while after reset for the controller to raise an interrupt request, so you have enough time to write CCR while you wait for the interrupt.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 24 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group