
• altera_avalon_cf_regs.h—The header file that defines the core's register maps.
• altera_avalon_cf.h, altera_avalon_cf.c—The header and source code for the functions and variables
required to integrate the driver into the HAL system library.
Register Maps
This section describes the register maps for the Avalon-MM slave interfaces.
Ide Registers
The ide port in the CompactFlash core allows you to access the IDE registers on a CompactFlash device.
Table 4-2: Ide Register Map
Offset
Register Names
Read Operation Write Operation
0 RD Data WR Data
1 Error Features
2 Sector Count Sector Count
3 Sector No Sector No
4 Cylinder Low Cylinder Low
5 Cylinder High Cylinder High
6 Select Card/Head Select Card/Head
7 Status Command
14 Alt Status Device Control
Ctl Registers
The ctl port in the CompactFlash core provides access to the registers which control the core’s operation
and interface.
Table 4-3: Ctl Register Map
Offset Register
Fields
31:4 3 2 1 0
0 cfctl Reserved IDET RST PWR DET
1 idectl Reserved IIDE
2 Reserved Reserved
3 Reserved Reserved
Cfctl Register
The cfctl register controls the operations of the CompactFlash core. Reading the cfctl register clears the
interrupt.
4-4
Register Maps
UG-01085
2014.24.07
Altera Corporation
Compact Flash Core
Send Feedback
Komentarze do niniejszej Instrukcji