BC-USB-Kit/Tutorials/Tutorial1
[
Front page
] [
New
|
List of pages
|
Search
|
Recent changes
]
Start:
[[labs.beatcraft.com]]~
[[BC-USB-Kit]]~
[[BC-USB-Kit/Tutorials]]~
#contents
*Tutorial1 [#d743abe6]
**Overview [#tfa7e861]
>
This document is an introduction of PIC programming. To u...
**Lightning up an LED [#l404263b]
>
To follow the great tradition of programming on electroni...
**Preparation [#ebc05fd9]
>
To read and follow [[this article:http://labs.beatcraft.c...
please install MPLAB X IDE.~
# In this article, MPLAB XIDE v2.35 is...
~
- Download bc_usbkit_pic24f.zip, and expand the zip file ...
#ref(bc_usbkit_pic24f.zip)~
To write a program for BC-USB-Kit effortlessly, this file...
**Creating a new project [#cab1af44]
>
Select "New Project" form "File" at the menu bar.~
Please select "Microchip Embedded" form "Categories" and ...
Then, click the Next button.~
&ref(TI_00.png,,60%);~
~
Choose 16-bit MCUs (PIC24) from the pull down menu at Fam...
~
&ref(TI_01.png,,60%);~
~
Select "PICKit3."~
&ref(TI_02.png,,60%);~
~
Choose "X16."~
&ref(TI_03.png,,60%);~
~
Type in ?LED_Test? at Project Name, and select ?UTF-8? at...
&ref(TI_04.png,,60%);~
~
If ?LED_Test? appears on the left pane, the new project i...
&ref(TI_05.png,,60%);~
~
To click the right-side button (for Mac OS X, click with ...
&ref(TI_06.png,,60%);~
~
Type in ?main? at File Name. Then, click the Finish butto...
&ref(TI_07.png,,60%);~
~
Then, main.c is added into Source Files.~
&ref(TI_08.png,,70%);~
~
Click the hammer (build) icon, Then, if ?BUILD SUCCESSFUL...
&ref(TI_09.png,,60%);~
~
Open ?Project Properties? from File at the menu bar.~
Select "xc16-gcc" from the list of Categories in the left...
At Option categories, select ?Preprocessing and message? ...
&ref(TI_11.png,,60%);~
~
To click the right-side button (for Mac OS X, click with ...
If "bc_usbkit_pic24f" is located under Source Files, it i...
&ref(TI_10.png,,60%);~
~
To include a header file, please add a line of code shown...
#include <system.h>
>
Then, click the icon of a broom on a hammer (Clean and bu...
If ?BUILD SUCCESSFUL, which are written in green, appears...
**Lightning up the LED [#i71f18c4]
>
As shown in the picture below, please connect BC-USB-Kit ...
# The power of BC-USB-Kit is supplied from the right-side...
&ref(MBA_and_BC-USB-Kit.jpg,,60%);~
>
Please add two lines of code shown below to main.c.~
SYSTEM_Initialize(SYSTEM_STATE_START);
LED_On(LED_D1);
>
The contents of main,c file are organized as such as show...
&ref(TI_12.png,,90%);~
~
Click the icon of a broom on a hammer (Clean and build).~
Then, click the icon of the right faced green triangle (R...
~
If the LED is lightened in orange, the main project runs ...
~
&ref(LED_off.jpg,,40%); SIZE(25){→} &ref(LED_on.jpg...
** Revision History [#j2b77499]
>
- 2015-04-22 This article is initially published.~
End:
[[labs.beatcraft.com]]~
[[BC-USB-Kit]]~
[[BC-USB-Kit/Tutorials]]~
#contents
*Tutorial1 [#d743abe6]
**Overview [#tfa7e861]
>
This document is an introduction of PIC programming. To u...
**Lightning up an LED [#l404263b]
>
To follow the great tradition of programming on electroni...
**Preparation [#ebc05fd9]
>
To read and follow [[this article:http://labs.beatcraft.c...
please install MPLAB X IDE.~
# In this article, MPLAB XIDE v2.35 is...
~
- Download bc_usbkit_pic24f.zip, and expand the zip file ...
#ref(bc_usbkit_pic24f.zip)~
To write a program for BC-USB-Kit effortlessly, this file...
**Creating a new project [#cab1af44]
>
Select "New Project" form "File" at the menu bar.~
Please select "Microchip Embedded" form "Categories" and ...
Then, click the Next button.~
&ref(TI_00.png,,60%);~
~
Choose 16-bit MCUs (PIC24) from the pull down menu at Fam...
~
&ref(TI_01.png,,60%);~
~
Select "PICKit3."~
&ref(TI_02.png,,60%);~
~
Choose "X16."~
&ref(TI_03.png,,60%);~
~
Type in ?LED_Test? at Project Name, and select ?UTF-8? at...
&ref(TI_04.png,,60%);~
~
If ?LED_Test? appears on the left pane, the new project i...
&ref(TI_05.png,,60%);~
~
To click the right-side button (for Mac OS X, click with ...
&ref(TI_06.png,,60%);~
~
Type in ?main? at File Name. Then, click the Finish butto...
&ref(TI_07.png,,60%);~
~
Then, main.c is added into Source Files.~
&ref(TI_08.png,,70%);~
~
Click the hammer (build) icon, Then, if ?BUILD SUCCESSFUL...
&ref(TI_09.png,,60%);~
~
Open ?Project Properties? from File at the menu bar.~
Select "xc16-gcc" from the list of Categories in the left...
At Option categories, select ?Preprocessing and message? ...
&ref(TI_11.png,,60%);~
~
To click the right-side button (for Mac OS X, click with ...
If "bc_usbkit_pic24f" is located under Source Files, it i...
&ref(TI_10.png,,60%);~
~
To include a header file, please add a line of code shown...
#include <system.h>
>
Then, click the icon of a broom on a hammer (Clean and bu...
If ?BUILD SUCCESSFUL, which are written in green, appears...
**Lightning up the LED [#i71f18c4]
>
As shown in the picture below, please connect BC-USB-Kit ...
# The power of BC-USB-Kit is supplied from the right-side...
&ref(MBA_and_BC-USB-Kit.jpg,,60%);~
>
Please add two lines of code shown below to main.c.~
SYSTEM_Initialize(SYSTEM_STATE_START);
LED_On(LED_D1);
>
The contents of main,c file are organized as such as show...
&ref(TI_12.png,,90%);~
~
Click the icon of a broom on a hammer (Clean and build).~
Then, click the icon of the right faced green triangle (R...
~
If the LED is lightened in orange, the main project runs ...
~
&ref(LED_off.jpg,,40%); SIZE(25){→} &ref(LED_on.jpg...
** Revision History [#j2b77499]
>
- 2015-04-22 This article is initially published.~
Page: