본문 바로가기

나머지/IT개발.잡다한것.82

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.
Bulk Isochronous Interrupt USB ●Bulk TransfersUsed to transfer large bursty data.Error detection via CRC, with guarantee of delivery.No guarantee of bandwidth or minimum latency.Stream Pipe - UnidirectionalFull & high speed modes only. ●Isochronous Transfers provideGuaranteed access to USB bandwidth.Bounded latency.Stream Pipe - UnidirectionalError detection via CRC, but no retry or guarantee of delivery.Full & high speed mod.. 2012. 9. 20.
반응형