CCS_Manual
Páginas: 29 (7130 palabras)
Publicado: 24 de julio de 2014
COMPILADOR PCW DE CCS®
Escrito por Andrés Cánovas López
Reeditado para formato PDF por Víctor Dorado
1
ÍNDICE
1.INTRODUCCIÓN............................................................................................................... 6
2.PROGRAMAS DE UTILIDAD ............................................................................................ 73.OPERADORES Y EXPRESIONES ..................................................................................... 8
4.DIRECTIVAS DEL PREPROCESADOR ........................................................................... 12
4.1 Control de memoria.................................................................................... 12
#ASM............................................................................................ 12
#ENDASM ..................................................................................... 12
#BIT identificador ........................................................................... 13
#BYTE identificador ....................................................................... 14
#RESERVE................................................................................... 14
#ROM ........................................................................................... 14
#ZERO_RAM ................................................................................. 14
4.2 Control del compilador ............................................................................... 15
#CASE.......................................................................................... 15
#OPT n ......................................................................................... 15
#PRIORITY ................................................................................... 15
4.3 Identificadores predefinidos ....................................................................... 16
_ _DATE_ _................................................................................. 16
_ _DEVICE_ _.............................................................................. 16
_ _PCB_ _ ................................................................................... 16
_ _PCM_ _ .................................................................................. 16
4.4 Directivas del C estandar........................................................................... 17
#DEFINE IDENTIFICADOR cadena ................................................ 17
#IF expresión_constante ................................................................ 17
#IFDEF IDENTIFICADOR ............................................................... 17
#ERROR....................................................................................... 17
#INCLUDE ................................................ 18
#INCLUDE "NOMBRE_FICHERO" .................................................. 18
#LIST ............................................................................................ 18
#NOLIST .......................................................................................18
#PRAGMA COMANDO .................................................................. 18
#UNDEF IDENTIFICADOR ............................................................. 18
4.5 Especificación de dispositivos .................................................................... 19
#DEVICE CHIP .............................................................................. 19
#ID................................................................................................ 19
#ID número, número, número ......................................................... 19
#ID "nombre_archivo" ..................................................................... 19
#ID CHECKSUM ............................................................................ 19
#FUSES opciones...
Leer documento completo
Regístrate para leer el documento completo.