PCD
#USE FAST_IO( port )
#USE FIXED_IO
( port_outputs=;in,pin? )
This directive will configure the I/O port to use the fast method of
performing I/O. The user will be responsible for setting the port
direction register using the set_tris_x() function.
This directive set particular pins to be used an input or output,
and the compiler will perform this setup every time this pin is
used.
Relevant Interrupts:
None
Relevant Include Files:
None, all functions built-in
Relevant getenv() parameters:
PIN:pb
Example Code:
#use fast_io(b)
...
Int8 Tris_value= 0x0F;
int1 Pin_value;
...
Returns a 1 if bit b on port p is on this part
set_tris_b(Tris_value);
//Sets B0:B3 as
input and B4:B7 as output
output_high(PIN_B7);
If(input(PIN_B0)){
//Set the pin B7 to High
//Read the value on pin B0, set B7 to low if pin B0 is high
output_high(PIN_B7);}
Internal LCD
Some families of PIC microcontrollers can drive a glass segment LCD directly, without the need
of an LCD controller. For example, the PIC16C92X, PIC16F91X, and PIC16F193X series of
chips have an internal LCD driver module.
Relevant Functions:
setup_lcd
(mode, prescale, [segments])
lcd_symbol
(symbol, segment_b7 ...
segment_b0)
Configures the LCD Driver Module to use the specified mode,
timer prescaler, and segments. For more information on valid
modes and settings, see the setup_lcd( ) manual page and the
*.h header file for the PIC micro-controller being used.
The specified symbol is placed on the desired segments, where
segment_b7 to segment_b0 represent SEGXX pins on the PIC
micro-controller. For example, if bit 0 of symbol is set, then
segment_b0 is set, and if segment_b0 is 15, then SEG15 would
be set.
42
相关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