PCD
Relevant Preprocessor:
None
Relevant Interrupts:
INT_OSC_FAIL or INT_OSCF Interrupt fires when the system oscillator fails and the processor
switches to the internal oscillator.
Relevant Include Files:
None, all functions built-in
Relevant getenv()
parameters:
None
Example Code:
For PIC18F8722
setup_oscillator(OSC_32MHZ); //sets the internal oscillator to 32MHz (PLL enabled)
If the internal oscillator fuse option are specified in the #fuses and a valid clock is specified in
the #use delay(clock=xxx) directive the compiler automatically sets up the oscillator. The #use
delay statements should be used to tell the compiler about the oscillator speed.
Interrupts
The following functions allow for the control of the interrupt subsystem of the microcontroller.
With these functions, interrupts can be enabled, disabled, and cleared. With the preprocessor
directives, a default function can be called for any interrupt that does not have an associated
ISR, and a global function can replace the compiler generated interrupt dispatcher.
Relevant Functions:
disable_interrupts()
enable_interrupts()
ext_int_edge()
clear_interrupt()
interrupt_active()
interrupt_enabled()
Disables the specified interrupt.
Enables the specified interrupt.
Enables the edge on which the edge interrupt should trigger. This
can be either rising or falling edge.
This function will clear the specified interrupt flag. This can be
used if a global isr is used, or to prevent an interrupt from being
serviced.
This function checks the interrupt flag of specified interrupt and
returns true if flag is set.
This function checks the interrupt enable flag of the specified
interrupt and returns TRUE if set.
Relevant Preprocessor:
#DEVICE HIGH_INTS=
44
This directive tells the compiler to generate code for high priority
相关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