⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lxfxp2.h

📁 系统通过JTAG接口烧结挂接在LXFXP2 上的s29gl256N的FLASH的代码,
💻 H
📖 第 1 页 / 共 2 页
字号:
/***********************************************************************/   
/*                                                                     */   
/* Module Name   : LXFXP2                                              */   
/*                                                                     */   
/* Description   : Implementation of a flash module for the            */   
/*                 LXFXP2.                                             */   
/*                                                                     */   
/*                                                                     */   
/* Document Ref. : - Datasheets for the LXFXP2.                        */   
/*                                                                     */   
/* Function List : Exported                                            */   
/* Note          :                                                     */   
/*                                                                     */   
/* modification history :                                              */   
/***********************************************************************/  

#define LXFXP25E208_CHAIN_LENGTH    394
#define LXFXP25E208_INSTRUC_LENGTH  8
#define LXFXP2_IDCODE_LENGTH        34

#define CPU_ADDRESS_BITS_NUMBERS    25
#define CPU_DATA_BITS_NUMBERS       16

#define EXTEST						0xD5	//(11010101)
#define IDCODE                      0x16    //00010110
#if 0
		"   ISC_ADDRESS_SHIFT		(00000001)," &
		"              IDCODE		(00010110," &
		"                    		 00011001," &
		"                    		 00011101)," &
		"             PRELOAD		(00011100)," &
		"          ISC_ENABLE		(00010101)," &
		"            ISC_READ		(00001010)," &
		"    ISC_PROGRAM_DONE		(00101111)," &
		"         ISC_DISABLE		(00011110)," &
		"ISC_PROGRAM_USERCODE		(00011010)," &
		"           ISC_ERASE		(00000011)," &
		"            ISC_NOOP		(00110000)," &
		"         ISC_PROGRAM		(00000111)," &
		"ISC_PROGRAM_SECURITY		(00001001)," &
		"              SAMPLE		(00011100)," &
		"               HIGHZ		(00011000)," &
		"         LSC_REFRESH		(00100011)," &
		"              BYPASS		(11111111)," &
		"      ISC_DATA_SHIFT		(00000010)," &
		"       ISC_DISCHARGE		(00010100)," &
		"            USERCODE		(00010111)," &
		"   LSC_RESET_ADDRESS		(00100001)," &
		"               CLAMP		(00100000)," &
		"              EXTEST		(11010101)," &
#endif

/**********************************************************************
 * Boundary register list
 **********************************************************************/
#define PR14A               393
#define PR14A_ENB           392
#define PR14B               391
#define PR14B_ENB           390
#define PR15A               389
#define PR15A_ENB           388
#define PR15B               387
#define PR15B_ENB           386
#define PR16A               385
#define PR16A_ENB           384
#define PR16B               383
#define PR16B_ENB           382
#define PR17A               381
#define PR17A_ENB           380
#define PR17B               379
#define PR17B_ENB           378
#define PR18A               377
#define PR18A_ENB           376
#define PR18B               375
#define PR18B_ENB           374
#define PR19A               373
#define PR19A_ENB           372
#define PR19B               371
#define PR19B_ENB           370
#define PR20A               369
#define PR20A_ENB           368
#define PR20B               367
#define PR20B_ENB           366

//Some internal registers
#define PR24A               357
#define PR24A_ENB           356
#define PR24B               355
#define PR24B_ENB           354

//Some internal registers
#define PB28B               349
#define PB28B_ENB           348
#define PB28A               347
#define PB28A_ENB           346
#define PB27B               345
#define PB27B_ENB           344
#define PB27A               343
#define PB27A_ENB           342
#define PB26B               341
#define PB26B_ENB           340
#define PB26A               339
#define PB26A_ENB           338
#define PB25B               337
#define PB25B_ENB           336
#define PB25A               335
#define PB25A_ENB           334
#define PB24B               333
#define PB24B_ENB           332
#define PB24A               331
#define PB24A_ENB           330
#define PB23B               329
#define PB23B_ENB           328
#define PB23A               327
#define PB23A_ENB           326
#define PB22B               325
#define PB22B_ENB           324
#define PB22A               323
#define PB22A_ENB           322
#define PB21B               321
#define PB21B_ENB           320
#define PB21A               319
#define PB21A_ENB           318
#define PB20B               317
#define PB20B_ENB           316
#define PB20A               315
#define PB20A_ENB           314
#define PB19B               313
#define PB19B_ENB           312
#define PB19A               311
#define PB19A_ENB           310
#define PB18B               309
#define PB18B_ENB           308
#define PB18A               307
#define PB18A_ENB           306
#define PB17B               305
#define PB17B_ENB           304
#define PB17A               303
#define PB17A_ENB           302
#define PB16B               301
#define PB16B_ENB           300
#define PB16A               299
#define PB16A_ENB           298
#define PB15B               297
#define PB15B_ENB           296
#define PB15A               295
#define PB15A_ENB           294
#define PB14B               293
#define PB14B_ENB           292
#define PB14A               291
#define PB14A_ENB           290
#define PB13B               289
#define PB13B_ENB           288
#define PB13A               287
#define PB13A_ENB           286

//Some internal registers
#define PB9B                273
#define PB9B_ENB            272
#define PB9A                271
#define PB9A_ENB            270
#define PB8B                269
#define PB8B_ENB            268
#define PB8A                267
#define PB8A_ENB            266
#define PB7B                265
#define PB7B_ENB            264
#define PB7A                263
#define PB7A_ENB            262

//Some internal registers
#define PL25B               241
#define PL25B_ENB           240
#define PL25A               239
#define PL25A_ENB           238

//Some internal registers
#define PL21B               229
#define PL21B_ENB           228
#define PL21A               227
#define PL21A_ENB           226
#define PL20B               225
#define PL20B_ENB           224
#define PL20A               223
#define PL20A_ENB           222
#define PL19B               221
#define PL19B_ENB           220
#define PL19A               219
#define PL19A_ENB           218
#define PL18B               217
#define PL18B_ENB           216
#define PL18A               215
#define PL18A_ENB           214
#define PL17B               213
#define PL17B_ENB           212
#define PL17A               211
#define PL17A_ENB           210
#define PL16B               209
#define PL16B_ENB           208
#define PL16A               207
#define PL16A_ENB           206
#define PL15B               205
#define PL15B_ENB           204
#define PL15A               203
#define PL15A_ENB           202
#define PL14B               201
#define PL14B_ENB           200
#define PL14A               199
#define PL14A_ENB           198

#define CFG0_IN             197
#define TOE_IN              196        

#define PL12B               195
#define PL12B_ENB           194
#define PL12A               193
#define PL12A_ENB           192
#define PL11B               191
#define PL11B_ENB           190
#define PL11A               189
#define PL11A_ENB           188
#define PL10B               187
#define PL10B_ENB           186
#define PL10A               185
#define PL10A_ENB           184
#define PL9B                183
#define PL9B_ENB            182
#define PL9A                181
#define PL9A_ENB            180
#define PL8B                179
#define PL8B_ENB            178
#define PL8A                177
#define PL8A_ENB            176
#define PL7B                175
#define PL7B_ENB            174
#define PL7A                173
#define PL7A_ENB            172
#define PL6B                171
#define PL6B_ENB            170
#define PL6A                169
#define PL6A_ENB            168
#define PL5B                167
#define PL5B_ENB            166
#define PL5A                165
#define PL5A_ENB            164     

//Some internal registers
#define PL2B                155
#define PL2B_ENB            154
#define PL2A                153
#define PL2A_ENB            152 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -