Pre-Processor
instructions that follow. This directive takes effect until another #USE XXX_IO
directive is encountered. The standard method of doing I/O will cause the compiler
to generate code to make an I/O pin either input or output every time it is used. On
the 5X processors this requires one byte of RAM for every port set to standard I/O.
Standard_io is the default I/O method for all ports.
When linking multiple compilation units be aware this directive only applies to the
current compilation unit.
Examples: #use standard_io(A)
Example
Files:
Also See:
#USE FAST_IO, #USE FIXED_IO, General Purpose I/O
#USE TIMER
Syntax:
#USE TIMER (options)
Elements: TIMER=x
Sets the timer to use as the tick timer. x is a valid timer that the PIC has. Default
value is 1 for Timer 1.
TICK=xx
Sets the desired time for 1 tick. xx can be used with ns(nanoseconds), us
(microseconds), ms (milliseconds), or s (seconds). If the desired tick time can't be
achieved it will set the time to closest achievable time and will generate a warning
specifying the exact tick time. The default value is 1us.
BITS=x
Sets the variable size used by the get_ticks() and set_ticks() functions for returning
and setting the tick time. x can be 8 for 8 bits, 16 for 16 bits or 32 for 32bits. The
default is 32 for 32 bits.
ISR
Uses the timer's interrupt to increment the upper bits of the tick timer. This mode
requires the the global interrupt be enabled in the main program.
NOISR
The get_ticks() function increments the upper bits of the tick timer. This requires
that the get_ticks() function be called more often then the timer's overflow rate.
NOISR is the default mode of operation.
STREAM=id
Associates a stream identifier with the tick timer. The identifier may be used in
functions like get_ticks().
135
相关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