Functional Overview
perror(message)
putc_send() or fputc_send()
rcv_buffer_bytes()
tx_buffer_bytes()
tx_buffer_full()
receive_buffer_full()
Prints the message and the last system error to STDERR.
When using transmit buffer, used to transmit data from buffer.
See function description for more detail on when needed.
When using receive buffer, returns the number of bytes in
buffer that still need to be retrieved.
When using transmit buffer, returns the number of bytes in
buffer that still need to be sent.
When using transmit buffer, returns TRUE if transmit buffer is
full.
When using receive buffer, returns TRUE if receive buffer is
full.
Relevant Interrupts:
INT_RDA
INT_TBE
Interrupt fires when the receive data available
Interrupt fires when the transmit data empty
Some chips have more than one hardware uart, and hence more interrupts.
Relevant Include Files:
None, all functions built-in
Relevant getenv() parameters:
UART
AUART
UART_RX
UART_TX
UART2_RX
UART2_TX
Returns the number of UARTs on this PIC
Returns true if this UART is an advanced UART
Returns the receive pin for the first UART on this PIC (see
PIN_XX)
Returns the transmit pin for the first UART on this PIC
Returns the receive pin for the second UART on this PIC
TX – Returns the transmit pin for the second UART on this
PIC
Example Code:
/* configure and enable uart, use first hardware UART on PIC */
#use rs232(uart1, baud=9600)
/* print a string */
53
相关PDF资料
PCI-EXP-T42G5-N1 IP CORE PCI EXPRESS ORCA 4
PCM18XH2 PROCESSOR MODULE MPLAB-ICE 2000
PCM18XN0 PROCESSOR MODULE FOR ICE2000
PDA-B-24-615-E-2B1-1-C CIRCUIT BREAKER MAG 1P 15A
PFMF.260.2 PFMF PTC FUSE SMT 2.6A 1812
PFNF.200.2 PFNF PTC FUSE SMT 2A 1206
PFRY.375 PTC-FUSE RADIAL 72 VDC
PFSM.150.33.2 FUSE PTC 8A 15V FST-TRIP SMD
相关代理商/技术参数
PCD_09 制造商:MACOM 制造商全称:Tyco Electronics 功能描述:Low Profile PCB Relay PCD
PCD-00173-0C 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00173-0E 制造商:Molex 功能描述:Ethernet Cable Assembly
PCD-00173-0H 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00173-0K 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00174-0C 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY; Cable Length - Imperial:3ft; Cable Length - Metric:914.4mm; Connector Type A:RJ45 Plug; Connector Type B:RJ45 Plug; Jacket Color:Red; Approval Bodies:CSA / UL; Body Material:PVC; Cable Assembly Type:Ethernet ;RoHS Compliant: NA
PCD-00174-0E 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY; Cable Length - Imperial:3ft; Cable Length - Metric:914.4mm; Connector Type A:RJ45 Plug; Connector Type B:RJ45 Plug; Jacket Color:Grey; Approval Bodies:CSA / UL; Body Material:PVC; Cable Assembly Type:Ethernet;RoHS Compliant: NA
PCD-00174-0H 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY