dsPIC30F Peripheral Library
Summary
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
- I2C™
- 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 Key features of the dsPIC30F Peripheral
Library include:
- FREE DOWNLOADS
- The Peripheral Library contains a library file for each
individual device from the dsPIC30F family. The library file for
each device includes functions corresponding to peripherals
present in that particular device.
- The Peripheral Library also contains C include files that
enable a user to take advantage of pre-defined 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 pre-compiled libraries,
they may be called from a user application program written in
either MPLAB®C30 or dsPIC30F assembly language.
- The C source code is also included, so users can customize the
functions to suit their specific application requirements if
needed.
- The pre-defined constants in the C include files eliminates
the need to refer to the details and structure of every Special
Function Register 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.
Part Number SW300021 |