PIC33系列参考代码
所属分类:嵌入式/单片机/硬件编程
开发工具:C/C++
文件大小:5736KB
下载次数:19
上传日期:2018-08-29 11:06:59
上 传 者:
tengxinmiao
说明: PIC33常用代码,串口、定时器、实时时钟等
(PIC33 codes, including UART, Timer, RTC and so on)
文件列表:
PIC33系列参考代码\Buck-Boost Converter PICtailplus SourceCodes.zip (68610, 2012-11-27)
PIC33系列参考代码\CE020_Std_PWM_120309.zip (17208, 2012-11-27)
PIC33系列参考代码\CE025_Negative_Deadtime_14aug09.zip (9509, 2012-11-27)
PIC33系列参考代码\CE026_EIE_14aug09.zip (8616, 2012-11-27)
PIC33系列参考代码\CE100_ADC_IIR_Filter_14aug09.zip (435430, 2012-11-27)
PIC33系列参考代码\CE101_ADC_1MSPS_Sep11.zip (26925, 2012-11-27)
PIC33系列参考代码\CE102_ADC_in_SLEEP_14aug09.zip (20781, 2012-11-27)
PIC33系列参考代码\CE103_DOZE_mode_120309.zip (33796, 2012-11-27)
PIC33系列参考代码\CE104_CLOCK_switch_14aug09\CE104_CLOCK_switch\CLOCK_switch.mcp (1403, 2009-08-13)
PIC33系列参考代码\CE104_CLOCK_switch_14aug09\CE104_CLOCK_switch\CLOCK_switch.mcs (75, 2013-09-05)
PIC33系列参考代码\CE104_CLOCK_switch_14aug09\CE104_CLOCK_switch\CLOCK_switch.mcw (30208, 2009-08-13)
PIC33系列参考代码\CE104_CLOCK_switch_14aug09\CE104_CLOCK_switch\h\clockSwitch.h (2853, 2007-09-12)
PIC33系列参考代码\CE104_CLOCK_switch_14aug09\CE104_CLOCK_switch\h\ctglPin.h (2681, 2007-09-11)
PIC33系列参考代码\CE104_CLOCK_switch_14aug09\CE104_CLOCK_switch\src\clockSwitch.s (3547, 2007-09-11)
PIC33系列参考代码\CE104_CLOCK_switch_14aug09\CE104_CLOCK_switch\src\ctglPin.s (2939, 2007-09-11)
PIC33系列参考代码\CE104_CLOCK_switch_14aug09\CE104_CLOCK_switch\src\main.c (4110, 2007-09-12)
PIC33系列参考代码\CE104_CLOCK_switch_14aug09\CE104_CLOCK_switch\src\traps.c (5708, 2007-09-11)
PIC33系列参考代码\CE104_CLOCK_switch_14aug09.zip (16852, 2012-11-27)
PIC33系列参考代码\CE105_Address_Error_Trap_14aug09.zip (13550, 2012-11-27)
PIC33系列参考代码\CE106_Math_Error_Trap_120309.zip (32615, 2012-11-27)
PIC33系列参考代码\CE107_Stack_Error_Trap_14aug09.zip (15910, 2012-11-27)
PIC33系列参考代码\CE108_Oscillator_Error_Trap_14aug09.zip (16798, 2012-11-27)
PIC33系列参考代码\CE109_FLASH_Rtsp_14aug09.zip (21381, 2012-11-27)
PIC33系列参考代码\CE110_FRC_tuning_14aug09.zip (17542, 2012-11-27)
PIC33系列参考代码\CE111_Ext_Intr_14aug09.zip (18753, 2012-11-27)
PIC33系列参考代码\CE112_SLEEP_Wakeup_14aug09.zip (12183, 2012-11-27)
PIC33系列参考代码\CE113_Timer1_RTC_14aug09.zip (34117, 2012-11-27)
PIC33系列参考代码\CE114_UART_loopback_14aug09.zip (15350, 2012-11-27)
PIC33系列参考代码\CE115_DMA_trap_120309.zip (38027, 2012-11-27)
PIC33系列参考代码\CE116_SPI_loopback_14aug09.zip (19994, 2012-11-27)
PIC33系列参考代码\CE117_DCII2S_Interface_Sep11.zip (24041, 2012-11-27)
PIC33系列参考代码\CE118_FIR_Filter_14aug09.zip (19055, 2012-11-27)
PIC33系列参考代码\CE119_I2C_EEPROM_14aug09.zip (18267, 2012-11-27)
PIC33系列参考代码\CE120_ADC_Chscan_14aug09.zip (26101, 2012-11-27)
PIC33系列参考代码\CE121_ADC_Chscan_noDMA_14aug09.zip (21742, 2012-11-27)
PIC33系列参考代码\CE122_ADC_AltSamp_14aug09.zip (21467, 2012-11-27)
PIC33系列参考代码\CE123_Code_Segments_15sep2009.zip (30261, 2012-11-27)
PIC33系列参考代码\CE124_Program_Flow_Change_15sep2009.zip (37856, 2012-11-27)
PIC33系列参考代码\CE125_Segment_Erase_091207.zip (27034, 2012-11-27)
... ...
Readme File for Code Example:
CE104 - Clock Switch
----------------------------------------
This file contains the following sections:
1. Code Example Description
2. Folder Contents
3. Suggested Development Resources
4. Reconfiguring the project for a different dsPIC33F device
5. Revision History
1. Code Example Description:
----------------------------
In this example, CPU is initially configured to run from external secondary osc and then clock switching
is initiated to run from Internal FRC.
extern void clockSwitch(unsigned int r);
This function selects the next clock input and initiates clock switch sequence.
2. Folder Contents:
-------------------
This folder contains the following sub-folders:
a. C:\Program Files\Microchip\MPLAB C30\support\gld
This folder will have the device GLD file, it is used for building the project.
This file was provided with the MPLAB C30 toolsuite.
b. C:\Program Files\Microchip\MPLAB C30\support\h
This folder contains C header files useful in building this
project. Device register and bit definitions are provided in
the *.h file that follows the device name. These files were provided
with the MPLAB C30 toolsuite.
c. C:\Program Files\Microchip\MPLAB C30\lib
This folder contains library archive files, which are a
collection of precompiled object files. The file
named "libpic30-coff.a" contains the C run-time start-up
library. These file were provided with the
MPLAB C30 toolsuite.
d. hex
This folder contains three file types - coff, hex and map.
These are files generated by the MPLAB C30 toolsuite on build
operation performed within MPLAB IDE. The *.map file contains
details on memory allocation for various variables, constants
and dsPIC instructions specified in the source and library
code. The *.hex file contains a binary file that may be
programmed into the dsPIC device. The *.coff file contains
a binary file that is used by MPLAB IDE for simulation.
e. h
This folder contains include files for the code example.
f. src
This folder contains all the C and Assembler source files (*.c,
*.s) used in demonstrating the described example. This folder
also contains a sub-folder named "obj" that stores compiled
object files generated when the project is built.
3. Suggested Development Resources:
-----------------------------------
a. Explorer 16 Demo board with dsPIC33FJ256GP710 controller
4. Reconfiguring the project for a different dsPIC33F device:
-------------------------------------------------------------
The Project/Workspace can be easily reconfigured for any dsPIC33F device.
Please use the following general guidelines:
a. Change device selection within MPLAB IDE to a dsPIC33F device of
your choice by using the following menu option:
MPLAB IDE>>Configure>>Select Device
b. Provide the correct device linker script and header file for your
device. Device linker scripts and header files are available in your
MPLAB C30 installation folder under:
Device Linker Script-
YourDrive:>Program Files\Microchip\MPLAB C30\support\gld
Device C Header file-
YourDrive:>Program Files\Microchip\MPLAB C30\support\h
Device ASM Include file-
YourDrive:>Program Files\Microchip\MPLAB C30\support\inc
c. Provide the appropriate path to your MPLAB C30 support file locations
using the menu option:
MPLAB IDE>>Project>>Build Options>>Project
d. Chose the development board applicable to your device. Some options
are provided below:
e. Re-build the MPLAB project using the menu option:
MPLAB IDE>>Project>>Build All
f. Download the hex file into the device and run.
5. Revision History :
---------------------
04/01/2006 - Initial Release of the Code Example
近期下载者:
相关文件:
收藏者: