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.

MPLAB ® <strong>C18</strong> C 编 译 器 函 数 库3.6.1 函 数 描 述getcUART参 见 ReadUART。getsUART功 能 : 从 软 件 UART 中 读 取 一 个 字 符 串 。包 含 头 文 件 :原 型 :参 数 :说 明 :文 件 名 :代 码 示 例 :sw_uart.hvoid getsUART( char * buffer,unsigned char len);buffer指 向 从 软 件 UART 中 读 取 字 符 串 的 指 针 。len要 从 软 件 UART 中 读 取 的 字 符 数 。该 函 数 从 软 件 UART 中 读 取 len 个 字 符 , 并 放 入 buffer。getsuart.cchar x[10];getsUART( x, 5 );OpenUART功 能 : 配 置 用 于 软 件 UART 的 I/O 引 脚 。包 含 头 文 件 : sw_uart.h原 型 : void OpenUART( void );说 明 :该 函 数 将 用 于 软 件 UART 的 I/O 引 脚 配 置 为 正 确 的 输 入 或 输 出 状 态 和 逻辑 电 平 。文 件 名 :openuart.asm代 码 示 例 :OpenUART();putcUART参 见 WriteUART。putsUART功 能 :写 一 个 字 符 串 到 软 件 UART。包 含 头 文 件 : sw_uart.h原 型 : void putsUART( char * buffer );参 数 :buffer要 写 到 软 件 UART 的 字 符 串 。说 明 :该 函 数 将 一 个 字 符 串 写 到 软 件 UART。 包 括 空 字 符 在 内 的 全 部 字 符 串 将被 写 到 UART。文 件 名 :putsuart.c代 码 示 例 : char mybuff [20];putsUART( mybuff );DS51297C_CN 第 104 页© 2004 Microchip Technology Inc.

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

Saved successfully!

Ooh no, something went wrong!