SW500008 Microchip Technology, SW500008 Datasheet - Page 177

PICC-18 STD

SW500008

Manufacturer Part Number
SW500008
Description
PICC-18 STD
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC18r
Datasheets

Specifications of SW500008

Supported Families
PIC18
Core Architecture
PIC
Software Edition
Standard
Kit Contents
Software And Docs
Mcu Supported Families
PIC18
Tool Function
Compiler
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
PIC18 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
015
778-1001
778-1001
Library Functions
__delay_ms
Synopsis
Description
This routine is defined as a preprocessor macro. The macro interfaces with library routine __de-
lay_400_cycles(). The parameter in this macro, x, defines the number of milliseconds that the pro-
gram will be delayed by calling this macro. This macro requires the definition of the preprocessor
symbol _XTAL_FREQ. This value that this symbol should be defined with is the oscillator frequency
(in Hertz) used in your system. The maximum delay period that can be requested varies linearly
according to the _XTAL_FREQ setting. Some limits of x that __delay_ms(x) can use for various fre-
quencies are given in table A.1.
quested.
See also
__delay_400_cycles()
Should these limits be exceeded the actual period of delay will be significantly less than re-
__delay_ms(x)
Table A.1: Maximum delay versus system frequency
System frequency
40 MHz
20 MHz
10 MHz
Maximum delay
2621 ms
5242 ms
10484 ms
163

Related parts for SW500008