본문 바로가기

분류 전체보기655

Assembler Directives 와 LEDCycle 예제 Macro Assemblerand Utilities 99pChapter 4. Assembler DirectivesThis chapter describes the assembler directives. It shows how to define symbolsand how to control the placement of code and data in program memory.IntroductionThe Ax51 assembler has several directives that permit you to define symbolvalues, reserve and initialize storage, and control the placement of your code.The directives should n.. 2012. 9. 25.
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.
반응형