| 数据搜索系统,热门电子元器件搜索 |
|
RM0345 数据表(PDF) 27 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
RM0345 数据表(HTML) 27 Page - STMicroelectronics |
|
27 / 38 page ![]() RM0345 Calibration software compatibility and configuration Doc ID 024080 Rev 3 27/38 9.2 Example Configuration CODE The following code is used to configure the calibration bus for 16bit de-multiplexed mode. //--------------------------------------------------- // SIU PCR (Pad Configuration Register) setup // (Cal BUS bommon drive strength = 20pF, DSC = 0b01) //--------------------------------------------------- SIU.PCR[336].R = 0x0040;//CAL_CS[0]DSC=20pF (0b01) SIU.PCR[338].R = 0x0440;//CAL_CS[2] (PA=0b1),DSC=20pF (0b01) SIU.PCR[339].R = 0x0040;//CAL_ADDR[11] (PA=0b0), DSC=20pF (0b01) SIU.PCR[340].R = 0x0040;//CAL_ADDR[12..15], DSC=20pF (0b01) SIU.PCR[345].R = 0x0040;//CAL_ADDR[16..30], DSC=20pF (0b01) SIU.PCR[341].R = 0x0040;//CAL_DATA[0..15], DSC=20pF (0b01) SIU.PCR[342].R = 0x0040;//CAL_RD/WR, CAL_WE[0-1], CAL_OE, DSC=20pF (0b01) SIU.PCR[343].R = 0x0040;//CAL_ALE, DSC=20pF (0b01) //-------------------------------------------------- // SIU ECCR (External Clock Control Register) setup //-------------------------------------------------- SIU.ECCR.R = 0x1000//External Bus Division Factor = 1 (EBDF=0b00) //-------------------------------------------------- // EBI Registers setup //-------------------------------------------------- //----------------------------------------------------------------- // EBI MCR setup for 16-bit bus configuration: // // EARP = 01 (Equal priority); // D16_31 = 0 (DATA[0:15] signals are used for 16-bit port accesses); // AD_MUX = 1 (Addr on Data Multiplexing Mode is used for non-CS acc.); // DBM = 0 (32-bit Data Bus Mode is used); EBI.MCR.R = 0x802; //------------------------------------------------------ // EBI Base Register setup for 16-bit bus configuration: // // Base Address = 0x20000000; // PS = 1 (16-bits port size) // AD_MUX = 1 (Address on Data Multiplexing Mode is enabled for this chip select); // WEBS = 1 (Use BE function); // BI = 1 (Disable burst accesses for this bank); // V = 1 (Valid CS Bank) EBI.CAL_CS[0].BR.R = 0x200008A3; |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |