나머지281 EQU SET EP2GPIFTCH EQU GPIFTCB1 ; these are here for backwards compatibilityEP2GPIFTCL EQU GPIFTCB0 ; EP4GPIFTCH EQU GPIFTCB1 ; these are here for backwards compatibilityEP4GPIFTCL EQU GPIFTCB0 ; EP6GPIFTCH EQU GPIFTCB1 ; these are here for backwards compatibilityEP6GPIFTCL EQU GPIFTCB0 ; EP8GPIFTCH EQU GPIFTCB1 ; these are here for backwards compatibilityEP8GPIFTCL EQU GPIFTCB0 ; KEIL Macro Assembler a.. 2012. 9. 25. 8051 XDATA IDATA DATA FX2 FX2 데이타시트 http://www.esacademy.co.kr/read/8051pro/8051pro_03.htm Segment Naming ConventionsSegment Prefix Memory Type Description?PR? program Executable program code?CO? code Constant data in program memory?BI? bit Bit data in internal data memory?BA? bdata Bit-addressable data in internal data memory?DT? data Internal data memory?FD? far Far memory (RAM space)?FC? const far Far memory (constant.. 2012. 9. 25. SYNCDELAY @syncdly.h #define _SCYCL ( 3*(_CFREQ) + 5*(_IFREQ) - 1 ) / ( 2*(_IFREQ) ) #if( _SCYCL == 1 )#define SYNCDELAY _nop_( )#endif #if( _SCYCL == 2 )#define SYNCDELAY _nop_( ); \ _nop_( )#endif #if( _SCYCL == 3 )#define SYNCDELAY _nop_( ); \ _nop_( ); \ _nop_( ) #endif #if( _SCYCL == 4 )#define SYNCDELAY _nop_( ); \ _nop_( ); \ _nop_( ); \ _nop_( )#endif #if( _SCYCL == 5 )#define SYNCDELAY _nop_( ); .. 2012. 9. 24. bulkloop while문 while(TRUE) // Main Loop { TD_Poll(); if(GotSUD) { SetupCommand(); GotSUD = FALSE; } if (Sleep) { if(TD_Suspend()) { Sleep = FALSE; do { EZUSB_Susp(); } while(!Rwuen && EZUSB_EXTWAKEUP()); // above. Must continue to go back into suspend if the host has disabled remote wakeup // *and* the wakeup was caused by the external wakeup pin. EZUSB_Resume(); TD_Resume(); } } }// END OF while(TRUE) 2012. 9. 24. 이전 1 ··· 50 51 52 53 54 55 56 ··· 71 다음 반응형