Microchip Technology AC164345 Data Sheet

Page of 152
© 2005 Microchip Technology Inc.
DS30177T-page 13
Software
dsPIC30F Peripheral Library
The dsPIC30F Peripheral Library provides a set of 
functions for setting up and controlling the operation of 
all the peripheral modules available in the dsPIC30F 
devices, as well as functions for interfacing with an 
external LCD. The Peripheral Library serves as a 
convenient layer of abstraction over the specific details 
of the peripherals and their associated control and 
status registers.
The dsPIC30F Peripheral Library supports the 
following hardware peripheral modules:
• Timers
• Input Capture
• Output Compare
• Quadrature Encoder Interface (QEI)
• Motor Control PWM
• I/O Ports and External Interrupts
• Reset
• UART
• SPI™
• I
2
C™
• Data Converter Interface (DCI)
• 10-Bit A/D Converter
• 12-Bit A/D Converter
• CAN
Functions for controlling an external LCD through 
configurable I/O port pins are also provided 
Features
• For each individual device from the dsPIC30F family, 
there is a file that includes functions corresponding to 
peripherals present in that particular device.
• ‘C’ include files enable the user to take advantage of 
predefined constants for passing parameters to 
various library functions. There is an include file for 
each peripheral module.
• Since the functions are in the form of precompiled 
libraries, they may be called from a user application 
program written in either MPLAB
®
C30 or dsPIC30F 
Assembly language.
• ‘C’ source code is also included so users can 
customize the functions to suit specific application 
requirements.
• Predefined constants in ‘C’ include files eliminate the 
need to refer to details and structure of Special 
Function Registers, while initializing peripherals or 
checking status bits.
Resource Requirements
Program Memory
The Peripheral Library functions have been optimized 
for reduced program memory usage. Since the 
functions are in the form of libraries, the actual program 
memory requirements depend on the functions being 
called by the application, as well as on the specific 
dsPIC30F device being used.
Data Memory
The vast majority of the functions do not use RAM at 
all. Each of the remaining functions uses less than 
10 bytes of RAM.
Ordering Information:
SW300021
dsPIC30F Peripheral Library (Free download: www.microchip.com)
DS51443
“dsPIC30F Peripheral Library Product Overview” (Available at: www.microchip.com)
FREE