TI-AM335X GPMC 7个config寄存器重点

每个Config寄存器有32位

Config1:

1-0 GPMCFCLKDIVIDER Divides the GPMC.FCLK clock

//用于设置时钟 使用默认0

0 GPMC_CLK frequency = GPMC_FCLK frequency

1h GPMC_CLK frequency = GPMC_FCLK frequency/2

2h GPMC_CLK frequency = GPMC_FCLK frequency/3

3h GPMC_CLK frequency = GPMC_FCLK frequency/4


4 TIMEPARAGRANULARITY Signals timing latencies scalar factor (Rd/WRCycleTime, AccessTime,PageBurstAccessTime, CSOnTime, CSRd/WrOffTime, ADVOnTime,

//设置时间速度有关,没懂,默认0

ADVRd/WrOffTime, OEOnTime, OEOffTime, WEOnTime, WEOffTime,

Cycle2CycleDelay, BusTurnAround, TimeOutStartValue)

0 ×1 latencies

1 ×2 latencies


9-8 MUXADDDATA Enables the Address and data multiplexed protocol (Reset value is CS0MUXDEVICE input pin sampled at IC reset for CS[0] and 0 for CS[1-5])

//使用默认 0


0 Non-multiplexed attached device

1h AAD-multiplexed protocol device

2h Address and data multiplexed attached device

3h Reserved


11-10 DEVICETYPE Selects the attached device type

//默认0,我的是SRAM

0 NOR Flash like, asynchronous and synchronous devices
1h Reserved
2h NAND Flash like devices, stream mode
3h Reserved


13-12 DEVICESIZE Selects the device size attached (Reset value is BOOTDEVICESIZE input

//终于自己设置了,要操作的ram是16位的,当然以后操作别的ram就改为其它的

pin sampled at IC reset for CS[0] and 01 for CS[1-5])
0 8 bit
1h 16 bit
2h Reserved
3h Reserved

28 WRITEMULTIPLE Selects the write single or multiple access

//28 30设置读写为单个或复用?有点不肯定,但这里都设置为0

0 Single access
1 Multiple access (burst if synchronous, considered as single if asynchronous)

30 READMULTIPLE Selects the read single or multiple access

0 single access
1 multiple access (burst if synchonous, page if asynchronous)


config2-6:

//按照芯片手册757页时序图配置

config7:

5-0 BASEADDRESS 0-3Fh Chip-select base address.

//设置为0x10;A24设置为有效

CSi base address where i = 0 to 3 (16 Mbytes minimum granularity). Bits [5-0] corresponds

to A29, A28, A27, A26, A25, and A24.

11-8 MASKADDRESS Chip-select mask address. Values not listed must be avoided as they create holes in the chip-select address space.

//默认设置为0

0 Chip-select size of 256 Mbytes

8h Chip-select size of 128 Mbytes

Ch Chip-select size of 64 Mbytes

Eh Chip-select size of 32 Mbytes

Fh Chip-select size of 16 Mbytes

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值