Welcome, Guest. Please login or register.

Author Topic: CIA pins bit-banging: how fast?  (Read 976 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline tnt23Topic starter

  • Full Member
  • ***
  • Join Date: Dec 2005
  • Posts: 195
    • Show only replies by tnt23
CIA pins bit-banging: how fast?
« on: February 20, 2008, 07:12:11 AM »
All,

I am confused regarding CIA access speed. I need to determine just how fast these can be accessed.

In hackdisk.device, there's a piece of code that gets the ID of floppy drive(s) attached to Amiga. It involves asserting and deasserting certain floppy bus pins (SELx and MTR) as well as reading RDY pin, according to the algorithm covered in Amiga tech docs.

The code looks as follows:

Code: [Select]

move.l  #ciabprb,a0
bset    d1,(a0) ;motor
bset    d3,(a0) ;deselect
bclr    d3,(a0) ;select
bset    d3,(a0) ;deselect drive


I have read that CIAs are clocked at ~700kHz (F/10) no matter what Amiga it is and how fast the CPU runs. Does that mean the CIA won't be able to properly toggle its pins when this code is run by some 68030@25MHz, or that the fast clocked CPU would slow down when talking to slow clocked CIA? Please help me out :-?
 

Offline Zac67

  • Hero Member
  • *****
  • Join Date: Nov 2004
  • Posts: 2890
    • Show only replies by Zac67
Re: CIA pins bit-banging: how fast?
« Reply #1 on: February 20, 2008, 07:27:33 AM »
Accessing the CIA adresses will slow down the CPU to the required speed (through the bus interface (glue) logic).
 

Offline tnt23Topic starter

  • Full Member
  • ***
  • Join Date: Dec 2005
  • Posts: 195
    • Show only replies by tnt23
Re: CIA pins bit-banging: how fast?
« Reply #2 on: February 20, 2008, 07:43:40 AM »
Quote

Zac67 wrote:
Accessing the CIA adresses will slow down the CPU to the required speed (through the bus interface (glue) logic).


Thanks!