Download User Manual - v8.8 C166/ST10 C Compiler
Transcript
Language Implementation 3.1 INTRODUCTION The TASKING C C166/ST10 cross−compiler offers a new approach to high−level language programming for the C166/ST10 family. It conforms to the ANSI standard, but allows the user to control the I/O registers, bit memory, interrupts and data page architecture of the C166/ST10 in C. This chapter describes the language implementation in relation to the C166/ST10 architecture. The extensions to the C language in c166 are: _bit You can use data type _bit for the type definition of scalars and for the return type of functions. _bitword You can declare word variables in the bit−addressable area as fp. You can access individual bits using the intrinsic functions _getbit() and _putbit(). _sfrbit / _esfrbit Data types for the declaration of specific, absolute bits in special function registers or special absolute bits in the SFR address space. _sfr / _esfr Data types for the declaration of Special Function Registers. _xsfr Data type for the declaration of Special Function Registers not residing in SFR memory but do reside in internal RAM. An example of these SFRs are PEC source and destination pointers. The compiler will use a ’mem’ addressing mode for this data type whereas for an object of type _sfr a ’reg’ or ’mem’ addressing mode may be used. These SFRs are not bitaddressable. _at You can specify a variable to be at an absolute address. • • • • • • • • 3−3
Related documents
C166S v2 Architecture Overview Handbook
ST10F27X firmware development getting started with tasking ST10
Case Department of Occupational and Environmental Safety
"user manual"
Enhanced Interrupt Handling of the XC2000 / XE166 Family
C165 / C167 AP16032
Introduction To The C Language
C166/ST10 CrossView Pro Debugger User`s Manual
seisan - Centro de Geociencias ::.. UNAM
PDF document - Eetasia.com
C166/ST10 CrossView Pro Debugger User`s Manual
User Manual - v8.8 Cross-Assembler, Linker/Locator, Utilities