lunes, 11 de septiembre de 2017

CURSO PIC: DIRECTIVAS EN CCS








Estandar C
#DEFINE ID STRING
#IF expr
#NOLIST
#ELSE
#IFDEF id
#PRAGMA cmd
#ENDIF
#LIST
#UNDEF id
#ERROR
#INCLUDE  "FILENAME"
#SEPARATE
Cualificadores
#INLINE
#INT_GLOBAL

#INT_DEFAULT
#INT_xxx

Identificadores
__DATE__
__LINE__
__PCH__
__DEVICE__
__PCB__
__TIME__
__FILE__
__PCM__
__FILENAME__
RTOS
#TASK
#USE RTOS

Especificacion
de dispositivos
#DEVICE CHIP
#ID "filename"
#FUSES options
#ID CHECKSUM
#ID NUMBER
#SERIALIZE
Librerias
predefinidas
#USE DELAY CLOCK
#USE FIXED_IO
#USE RS232
#USE FAST_IO
#USE I2C
#USE SPI
#USE STANDAD_IO


Control de la
 memoria
#ASM
#BYTE id=id
#ROM
#BIT id=id.const
#ENDASM
#TYPE
#bit id=const.const
#FILL_ROM
#ZERO_RAM
#BUILD
#LOCATE id=const

#BYTE id=const
#REVERSE

Control de
 compilador
#CASE
#OPT n
#PRIORITY
#ORG
#IGNORE_WARNINGS

No hay comentarios:

CURSO PIC: GESTION DE PUERTOS USANDO PUNTEROS

Se puede acceder a la memoria de datos usando punteros, los cuales se definen como int. #define TRISA(int*) 0x85 #define PORTA(int*...