17.02.2015 Views

CCS C Compiler Manual PCB / PCM / PCH

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

AUART<br />

CCPx<br />

TIMERx<br />

FLASH_WRITE_SIZE<br />

FLASH_ERASE_SIZE<br />

BYTES_PER_ADDRESS<br />

BITS_PER_INSTRUCTION<br />

RAM<br />

SFR:name<br />

Returns 1 if the device has an ADV UART<br />

Returns a 1 if the device has CCP number x<br />

Returns a 1 if the device has TIMER<br />

number x<br />

Smallest number of bytes that can be<br />

written to FLASH<br />

Smallest number of bytes that can be<br />

erased in FLASH<br />

Returns the number of bytes at an address<br />

location<br />

Returns the size of an instruction in bits<br />

Returns the number of RAM bytes available<br />

for your device.<br />

Returns the address of the specified special<br />

file register. The output format can be used<br />

with the preprocessor command #bit. name<br />

must match SFR denomination of your<br />

target PIC (example: STATUS, INTCON,<br />

TXREG, RCREG, etc)<br />

BIT:name<br />

SFR_VALID:name<br />

BIT_VALID:name<br />

Returns the bit address of the specified<br />

special file register bit. The output format<br />

will be in “address:bit”, which can be used<br />

with the preprocessor command #byte.<br />

name must match SFR.bit denomination of<br />

your target PIC (example: C, Z, GIE,<br />

TMR0IF, etc)<br />

Returns TRUE if the specified special file<br />

register name is valid and exists for your<br />

target PIC (example:<br />

getenv("SFR_VALID:INTCON"))<br />

Returns TRUE if the specified special file<br />

register bit is valid and exists for your target<br />

PIC (example:<br />

getenv("BIT_VALID:TMR0IF"))<br />

PIN:PB Returns 1 if PB is a valid I/O PIN (like A2)<br />

UARTx_RX<br />

UARTx_TX<br />

SPIx_DI<br />

Returns UARTxPin (like PINxC7)<br />

Returns UARTxPin (like PINxC6)<br />

Returns SPIxDI Pin<br />

196

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!