PCD
fputc_send( stream );
Parameters: stream – parameter specifying the stream defined in #USE RS232.
Returns:
Function:
Nothing
Function used to transmit bytes loaded in transmit buffer over RS232. Depending
on the options used in #USE RS232 controls if function is available and how it
works.
If using hardware UARTx with NOTXISR option it will check if currently
transmitting. If not transmitting it will then check for data in transmit buffer. If there
is data in transmit buffer it will load next byte from transmit buffer into the hardware
TX buffer, unless using CTS flow control option. In that case it will first check to
see if CTS line is at its active state before loading next byte from transmit buffer
into the hardware TX buffer.
If using hardware UARTx with TXISR option, function only available if using CTS
flow control option, it will test to see if the TBEx interrupt is enabled. If not enabled
it will then test for data in transmit buffer to send. If there is data to send it will then
test the CTS flow control line and if at its active state it will enable the TBEx
interrupt. When using the TXISR mode the TBEx interrupt takes care off moving
data from the transmit buffer into the hardware TX buffer.
If using software RS232, only useful if using CTS flow control, it will check if there
is data in transmit buffer to send. If there is data it will then check the CTS flow
control line, and if at its active state it will clock out the next data byte.
Availability: All devices
Requires:
#USE RS232
Examples: #USE_RS232(UART1,BAUD=9600,TRANSMIT_BUFFER=50,NOTXISR)
printf(“Testing Transmit Buffer”);
while(TRUE){
putc_send();
}
Example
Files:
Also See:
None
_USE_RS232( ), RCV_BUFFER_FULL( ), TX_BUFFER_FULL( ),
TX_BUFFER_BYTES( ), GET( ), PUTC( ) RINTF( ), SETUP_UART( ),
PUTC( )_SEND
pwm_off()
Syntax:
pwm_off([stream]);
Parameters: stream – optional parameter specifying the stream defined in #USE
PWM.
Returns:
222
Nothing.
相关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