12.07.2015 Views

MPLAB® C18 C 编译器函数库

MPLAB® C18 C 编译器函数库

MPLAB® C18 C 编译器函数库

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

索 引putrsXLCD .............................................................. 68putsI2C .................................................................... 26putsSPI ................................................................... 44putsUART ............................................................. 104putsUSART ............................................................. 60putsXLCD ................................................................ 68PWM ....................................................................... 39Close ................................................................ 39Open ................................................................ 39Set Duty Cycle ................................................. 40Set ECCP Output ............................................. 41Q启 动 代 码 .................................................................... 7启 动 目 录 .................................................................... 8Rrand ....................................................................... 114ReadADC ................................................................ 17ReadAddrXLCD ...................................................... 68ReadCapture ........................................................... 21ReadDataXLCD ...................................................... 69ReadI2C .................................................................. 26ReadMwire .............................................................. 36ReadSPI .................................................................. 44ReadTimer .............................................................. 53ReadUART ............................................................ 105ReadUSART ........................................................... 61RestartI2C ............................................................... 26S示 例捕 捉 .................................................................. 22定 时 器 .............................................................. 55A/D 转 换 器 ....................................................... 18I 2 C, 软 件 ......................................................... 98I 2 C, 硬 件 ......................................................... 31LCD .................................................................. 71Microwire ......................................................... 37SPI, 软 件 ...................................................... 102SPI, 硬 件 ........................................................ 45UART, 软 件 .................................................. 105USART, 硬 件 .................................................. 64数 据 初 始 化 ................................................................ 7数 据 转 换 函 数 ........................................................ 112Byte to String ................................................. 113Convert Character to Lower Case ................. 115Convert Character to Upper Case ................. 115Integer to String ............................................. 114Long to String ................................................ 114String to Byte ................................................. 112String to Float ................................................ 112String to Integer ............................................. 113String to Long ................................................ 113Unsigned Long to String ................................ 116SetCGRamAddr ...................................................... 69SetChanADC .......................................................... 18SetDCPWM ............................................................. 40SetDDRamAddr ...................................................... 69SetOutputPWM ....................................................... 41SetSWCSSPI ........................................................ 101SPI, 软 件 .............................................................. 100使 用 示 例 ........................................................ 102Clear Chip Select ........................................... 101Open .............................................................. 101Put Character ................................................. 101Set Chip Select .............................................. 101Write ............................................................... 102SPI, 硬 件 ................................................................ 42使 用 示 例 .......................................................... 45Close ................................................................ 42Data Ready ...................................................... 42Get Character .................................................. 42Get String ......................................................... 43Open ................................................................ 43Put Character ................................................... 43Put String ......................................................... 44Read ................................................................ 44Write ................................................................. 44srand ..................................................................... 115src 目 录 ..................................................................... 7SSP ................................................................... 23–24StartI2C ................................................................... 27StatusReset ........................................................... 133StopI2C ................................................................... 27strcat ..................................................................... 121strcatpgm2ram ...................................................... 121strchr ..................................................................... 121strcmp ................................................................... 122strcmppgm2ram .................................................... 122strcpy ..................................................................... 122strcpypgm2ram ..................................................... 122strcspn ................................................................... 123strlen ..................................................................... 123strlwr ...................................................................... 123strncat ................................................................... 124strncatpgm2ram .................................................... 124strncmp ................................................................. 124strncpy ................................................................... 125strncpypgm2ram ................................................... 125strpbrk ................................................................... 125strrchr .................................................................... 126strspn .................................................................... 126strstr ...................................................................... 127strtok ..................................................................... 127strupr ..................................................................... 128SWAckI2C ......................................................... 95–96SWGetcI2C ............................................................. 95SWGetsI2C ............................................................. 95SWNotAckI2C ......................................................... 95SWPutcI2C .............................................................. 96SWPutsI2C .............................................................. 96SWReadI2C ............................................................ 96SWRestartI2C ......................................................... 96SWStartI2C ............................................................. 97SWStopI2C ............................................................. 97SWWriteI2C ............................................................ 97T特 殊 功 能 寄 存 器 定 义 .................................................. 9同 步 模 式 .................................................................. 59推 荐 读 物 .................................................................... 3© 2004 Microchip Technology Inc. DS51297C_CN 第 150 页

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

Saved successfully!

Ooh no, something went wrong!