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

📄 gpif_init.lst

📁 一个有关EZ-USB FX2 系列CY7C68013的应用实例
💻 LST
📖 第 1 页 / 共 4 页
字号:
 193          /* Regs  */ 0xA0,0x00,0x00,0x3F,0x8E,0xE4,0x00     
 194          };                                                               
 195          // END DO NOT EDIT                                               
 196          
 197          //--------------------------------------------------------------------//
 198          // GPIF Program Code for Double
 199            
 200          // Double AD   05.10.3
 201          // This program configures the General Programmable Interface (GPIF) for FX2.     
 202          // Please do not modify sections of text which are marked as "DO NOT EDIT ...". 
 203          //                                                                                
 204          // DO NOT EDIT ...                  
 205          // GPIF Initialization              
 206          // Interface Timing      Async        
 207          // Internal Ready Init   IntRdy=1     
 208          // CTL Out Tristate-able Binary       
 209          // SingleWrite WF Select     3     
 210          // SingleRead WF Select      2     
 211          // FifoWrite WF Select       1     
 212          // FifoRead WF Select        0     
 213          // Data Bus Idle Drive   Tristate     
 214          // END DO NOT EDIT                  
 215                                              
 216          // DO NOT EDIT ...       
 217          // GPIF Wave Names       
 218          // Wave 0   = FIFORd       
 219          // Wave 1   = FIFOWr       
 220          // Wave 2   = SnglRd       
 221          // Wave 3   = SnglWr       
 222                                   
 223          // GPIF Ctrl Outputs   Level   
 224          // CTL 0    = CONVT#   CMOS        
 225          // CTL 1    = RD#      CMOS        
 226          // CTL 2    = WR#      CMOS        
 227          // CTL 3    = CS#      CMOS        
 228          // CTL 4    = unsed    CMOS        
 229          // CTL 5    = unsed    CMOS        
 230                                         
 231          // GPIF Rdy Inputs         
 232          // RDY0     = INT#           
 233          // RDY1     = RDY1           
 234          // RDY2     = RDY2           
 235          // RDY3     = RDY3           
 236          // RDY4     = RDY4           
 237          // RDY5     = TCXpire        
 238          // FIFOFlag = FIFOFlag       
 239          // IntReady = IntReady       
 240          // END DO NOT EDIT         
 241          // DO NOT EDIT ...                                                                         
C51 COMPILER V7.10   GPIF_INIT                                                             10/05/2005 08:34:24 PAGE 5   

 242          //                                                                                         
 243          // GPIF Waveform 0: FIFORd                                                                  
 244          //                                                                                         
 245          // Interval     0         1         2         3         4         5         6     Idle (7) 
 246          //          _________ _________ _________ _________ _________ _________ _________ _________
 247          //                                                                                         
 248          // AddrMode Same Val  Same Val  Same Val  Same Val  Same Val  Same Val  Same Val           
 249          // DataMode NO Data   NO Data   Activate  NO Data   Activate  NO Data   NO Data            
 250          // NextData SameData  SameData  SameData  NextData  NextData  SameData  SameData           
 251          // Int Trig No Int    No Int    No Int    No Int    No Int    No Int    No Int             
 252          // IF/Wait  Wait 2    IF        Wait 2    Wait 1    Wait 2    Wait 3    Wait 1             
 253          //   Term A           INT#                                                                 
 254          //   LFunc            AND                                                                  
 255          //   Term B           INT#                                                                 
 256          // Branch1            Then 0                                                               
 257          // Branch0            Else 2                                                               
 258          // Re-Exec            No                                                                   
 259          // Sngl/CRC Default   Default   Default   Default   Default   Default   Default            
 260          // CONVT#       1         1         1         1         1         0         0         1    
 261          // RD#          1         1         0         1         0         1         1         1    
 262          // WR#          1         1         1         1         1         1         1         1    
 263          // CS#          1         1         0         1         0         1         1         1    
 264          // unsed        1         1         1         1         1         1         1         1    
 265          // unsed        1         1         1         1         1         1         1         1    
 266          //                     
 267          // END DO NOT EDIT     
 268          // DO NOT EDIT ...                                                                         
 269          //                                                                                         
 270          // GPIF Waveform 1: FIFOWr                                                                  
 271          //                                                                                         
 272          // Interval     0         1         2         3         4         5         6     Idle (7) 
 273          //          _________ _________ _________ _________ _________ _________ _________ _________
 274          //                                                                                         
 275          // AddrMode Same Val  Same Val  Same Val  Same Val  Same Val  Same Val  Same Val           
 276          // DataMode NO Data   NO Data   NO Data   NO Data   NO Data   NO Data   NO Data            
 277          // NextData SameData  SameData  SameData  SameData  SameData  SameData  SameData           
 278          // Int Trig No Int    No Int    No Int    No Int    No Int    No Int    No Int             
 279          // IF/Wait  Wait 2    Wait 9    IF        Wait 1    Wait 1    Wait 1    Wait 1             
 280          //   Term A                     INT#                                                       
 281          //   LFunc                      AND                                                        
 282          //   Term B                     INT#                                                       
 283          // Branch1                      ThenIdle                                                   
 284          // Branch0                      ElseIdle                                                   
 285          // Re-Exec                      No                                                         
 286          // Sngl/CRC Default   Default   Default   Default   Default   Default   Default            
 287          // CONVT#       1         0         1         1         1         1         1         1    
 288          // RD#          1         1         1         1         1         1         1         1    
 289          // WR#          1         1         1         1         1         1         1         1    
 290          // CS#          1         1         1         1         1         1         1         1    
 291          // unsed        1         1         1         1         1         1         1         1    
 292          // unsed        1         1         1         1         1         1         1         1    
 293          //                     
 294          // END DO NOT EDIT     
 295          // DO NOT EDIT ...                                                                         
 296          //                                                                                         
 297          // GPIF Waveform 2: SnglRd                                                                  
 298          //                                                                                         
 299          // Interval     0         1         2         3         4         5         6     Idle (7) 
 300          //          _________ _________ _________ _________ _________ _________ _________ _________
 301          //                                                                                         
 302          // AddrMode Same Val  Same Val  Same Val  Same Val  Same Val  Same Val  Same Val           
 303          // DataMode NO Data   NO Data   Activate  Activate  Activate  Activate  Activate           
C51 COMPILER V7.10   GPIF_INIT                                                             10/05/2005 08:34:24 PAGE 6   

 304          // NextData SameData  SameData  SameData  SameData  SameData  SameData  SameData           
 305          // Int Trig No Int    No Int    No Int    No Int    No Int    No Int    No Int             
 306          // IF/Wait  Wait 2    Wait 2    Wait 3    Wait 1    Wait 1    Wait 1    Wait 1             
 307          //   Term A                                                                                
 308          //   LFunc                                                                                 
 309          //   Term B                                                                                
 310          // Branch1                                                                                 
 311          // Branch0                                                                                 
 312          // Re-Exec                                                                                 
 313          // Sngl/CRC Default   Default   Default   Default   Default   Default   Default            
 314          // CONVT#       1         1         1         1         1         1         1         1    
 315          // RD#          1         0         1         1         1         1         1         1    
 316          // WR#          1         1         1         1         1         1         1         1    
 317          // CS#          1         0         1         1         1         1         1         1    
 318          // unsed        1         1         1         1         1         1         1         1    
 319          // unsed        1         1         1         1         1         1         1         1    
 320          //                     
 321          // END DO NOT EDIT     
 322          // DO NOT EDIT ...                                                                         
 323          //                                                                                         
 324          // GPIF Waveform 3: SnglWr                                                                  
 325          //                                                                                         
 326          // Interval     0         1         2         3         4         5         6     Idle (7) 
 327          //          _________ _________ _________ _________ _________ _________ _________ _________
 328          //                                                                                         
 329          // AddrMode Same Val  Same Val  Same Val  Same Val  Same Val  Same Val  Same Val           
 330          // DataMode NO Data   NO Data   Activate  Activate  NO Data   NO Data   NO Data            
 331          // NextData SameData  SameData  SameData  SameData  SameData  SameData  SameData           
 332          // Int Trig No Int    No Int    No Int    No Int    No Int    No Int    No Int             
 333          // IF/Wait  Wait 2    Wait 1    Wait 3    Wait 2    Wait 3    Wait 5    Wait 1             
 334          //   Term A                                                                                
 335          //   LFunc                                                                                 
 336          //   Term B                                                                                
 337          // Branch1                                                                                 
 338          // Branch0                                                                                 
 339          // Re-Exec                                                                                 
 340          // Sngl/CRC Default   Default   Default   Default   Default   Default   Default            
 341          // CONVT#       1         1         1         1         1         0         0         1    
 342          // RD#          1         1         1         1         1         1         1         1    
 343          // WR#          1         1         0         1         1         1         1         1    
 344          // CS#          1         0         0         0         1         1         1         1    
 345          // unsed        1         1         1         1         1         1         1         1    
 346          // unsed        1         1         1         1         1         1         1         1    
 347          //                     
 348          // END DO NOT EDIT     
 349                                                         
 350          // DO NOT EDIT ...                     
 351          const char xdata WaveData2[128] =     
 352          {                                      
 353          // Wave 0 
 354          /* LenBr */ 0x39,     0x02,     0x01,     0x03,     0x01,     0x05,     0x05,     0x07,
 355          /* Opcode*/ 0x01,     0x00,     0x02,     0x0C,     0x02,     0x0C,     0x00,     0x00,
 356          /* Output*/ 0x0F,     0x05,     0x07,     0x07,     0x05,     0x07,     0x0E,     0x0F,
 357          /* LFun  */ 0x00,     0x00,     0x00,     0x00,     0x00,     0x00,     0x00,     0x3F,
 358          // Wave 1 
 359          /* LenBr */ 0x02,     0x09,     0x3F,     0x01,     0x01,     0x01,     0x01,     0x07,
 360          /* Opcode*/ 0x00,     0x00,     0x01,     0x00,     0x00,     0x00,     0x00,     0x00,
 361          /* Output*/ 0x0F,     0x0E,     0x0F,     0x0F,     0x0F,     0x0F,     0x0F,     0x0F,
 362          /* LFun  */ 0x00,     0x00,     0x00,     0x00,     0x00,     0x00,     0x00,     0x3F,
 363          // Wave 2 
 364          /* LenBr */ 0x02,     0x02,     0x03,     0x03,     0x01,     0x01,     0x01,     0x07,
 365          /* Opcode*/ 0x00,     0x00,     0x02,     0x00,     0x00,     0x00,     0x00,     0x00,
C51 COMPILER V7.10   GPIF_INIT                                                             10/05/2005 08:34:24 PAGE 7   

 366          /* Output*/ 0x0F,     0x05,     0x0F,     0x0F,     0x0F,     0x0F,     0x0F,     0x0F,
 367          /* LFun  */ 0x00,     0x00,     0x00,     0x00,     0x00,     0x00,     0x00,     0x3F,
 368          // Wave 3 
 369          /* LenBr */ 0x02,     0x01,     0x03,     0x02,     0x03,     0x05,     0x01,     0x07,
 370          /* Opcode*/ 0x00,     0x00,     0x02,     0x02,     0x00,     0x00,     0x00,     0x00,
 371          /* Output*/ 0x0F,     0x07,     0x03,     0x07,     0x0F,     0x0E,     0x0E,     0x0F,
 372          /* LFun  */ 0x00,     0x00,     0x00,     0x00,     0x00,     0x00,     0x00,     0x3F,
 373          };                     
 374          // END DO NOT EDIT 
 375                                                             
 376          // DO NOT EDIT ...                                               
 377          const char xdata InitData2[7] =                                   
 378          {                                                                
 379          /* Regs  */ 0xA0,0x00,0x00,0x0F,0x8E,0xE4,0x00     
 380          };   
 381                                                       
 382          // GPIF Program Code                          
 383                                                        
 384          // DO NOT EDIT ...                            
 385          #include "fx2.h"                            
 386          #include "fx2regs.h"                        
 387          #include "fx2sdly.h"     // SYNCDELAY macro 
 388          #include "gpif.h"
 389          // END DO NOT EDIT                            
 390                                                         
 391          //-------------------------------------------------------------------//                                   
             -                              
 392          // TO DO: You may add additional code below.

⌨️ 快捷键说明

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