View
248
Download
3
Embed Size (px)
PIC Microcontroller Pic Microcontroller pic microcontroller analog to digital ( d/a converter) Development Tool
1 Compiler ( pcw c compiler )
1 pcw c compiler
Pcw c compiler compiler Pic Microcontroller PIC12 PIC14 PIC16 PIC18 compiler project Wizard
2 menu project wizard project wizard pic microcontroller register project wizard project wizard
4 project name and save
5 wizard at general tab
5 wizard general pic osilator
6 source code from wizard
6 source code wizard file sam1.h
7 source code sam1.h
FILE sam1.h source
- analog to digital converter setup_adc(ADC_OFF); - Parallel Slave Port (PSP)
setup_psp(PSP_DISABLED); - Serial Port Interface (SPI). setup_spi(FALSE); - timer 0 clock register RTCC/1 Timer1
Timer2 setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); setup_timer_1(T1_DISABLED); setup_timer_2(T2_DISABLED,0,1); project wizard set pic microcontroller project
compile
8 menu compile project
compile file source file .Hex microcontroller( Machine code)
9 information compile windows
10 output Hex File
Debug Mplab IDE
11 start program Mplab IDE
Mplab + Mplab CCS Plugin
13 install ccs c compiler plug in for Mplab
ccs c compiler plug in install wizard Debug Mplab
14 Microship Mplab IDE start
15 Mplab IDE
* Project Wizard
16 Menu Project Wizard
17 step 1 of project wizard
18 step 2 of project wizard
Step 3 of project wizard
20 step 4 of project wizard
21 step 5 of project wizard
22 step 6 of project wizard
23 finish project wizard 23 project
24 select tool debug
25 debug tool bar
26 special function register view
Pic Microcontroller
27 special function register view