forked from energia/Energia
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Guide_MSP430F5529LaunchPad.html
116 lines (91 loc) · 3.65 KB
/
Guide_MSP430F5529LaunchPad.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html>
<head>
<title>Energia Reference - MSP430F5529 LaunchPad Guide</title>
<link rel="shortcut icon" type="image/x-icon" href="http://energia.nu/favicon.png">
<link rel='stylesheet' href='energiaWideRender.css'
type='text/css' />
<!--HeaderText--><style type='text/css'></style>
<meta name='robots' content='index,follow' />
<meta name="Author" content="Robert Wessels" />
<meta name="Publisher" content="Energia" />
<meta name="Keywords" content="Energia, Wiring, Processing, Maker, LaunchPad, Arduino, Texas Instruments, Sketch, MSP430, mspgcc, mpsdebug, Electronic Arts, Programming, C, C++, Robert Wessels" />
<meta name="Description" content="Energia is a rapid prototyping platform for the Texas Instruments MCU Launchpad. Energia is based on Wiring and Arduino and uses the Processing IDE." />
<meta name="Copyright" content="All contents copyright Robert Wessels" />
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-38745548-1']);
_gaq.push(['_setDomainName', 'energia.nu']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div id="page">
<!--PageHeaderFmt-->
<div id="pageheader">
<div class="title"><a href='http://energia.nu'>Energia</a></div>
</div>
<!--/PageHeaderFmt-->
<!--PageLeftFmt-->
<div id="pagenav">
<div id="navbar">
<p><a class='left' href='http://energia.nu/'>Home</a>
<a class='wikilink' href='http://energia.nu/download'>Download</a>
<a class='wikilink' href='Guide_index.html'>Getting Started</a>
<a class='wikilink' href='Reference_Index.html'>Reference</a>
<a class="wikilink" href="http://energia.nu/help.html">Getting Help</a>
<a class="nav" href="http://energia.nu/faq.html">FAQ</a>
<a class="wikilink" href="http://energia.nu/projects.html">Projects Using Energia</a>
<a class="nav" href="http://energia.nu/contact.html">Contact Us</a>
</p>
<p class='vspace'></p>
</div>
</div>
<!--/PageLeftFmt-->
<div id="pagetext">
<!--PageText-->
<div id='wikitext'>
<h2>Guide to the MSP430F5529 Based LaunchPad (MSP-EXP430F5529LP)</h2>
<p>
Pin numbering for the LaunchPad variant in Energia follows the pin numbering of the header on the LaunchPad (see pin mapping diagram below for details). Example: LED1 can be turned on with:
</p>
<pre> pinMode(43, OUTPUT);
digitalWrite(43, HIGH);
</pre>
<p>Pins can also be address by there alternative names P1_0 ... P1_7 and P2_0 ... P2_5. See Energia/hardware/msp430/variants/launchpad/pins_energia.h for details. The LaunchPad pins_energia.h is <a href="https://github.com/energia/Energia/blob/master/hardware/msp430/variants/launchpad_f5529/pins_energia.h" target="_blank">here</a> on github.
</p>
<pre> pinMode(P1_0, OUTPUT);
digitalWrite(P1_0, HIGH);
</pre>
<p>LED1, LED2, S1, S2 and internal temp sensor can also be addressed by the alternative names:
</p>
<pre> RED_LED
GREEN_LED;
PUSH1;
PUSH2;
TEMPSENSOR;
</pre>
<p>To turn on the red LED.
</p>
<pre> pinMode(RED_LED, OUTPUT);
digitalWrite(RED_LED, HIGH);
</pre>
<p>The following diagrams show the complete pin map for the F5529 LaunchPad in Energia.
</p>
<h3>MSP430F5529 LaunchPad (MSP-EXP430F5529LP)</h3>
<img src="img/LaunchPadMSP430F5529.jpg" height="461" width="850"><br /></p>
</div>
</div>
<!--PageFooterFmt-->
<div id="pagefooter">
©Energia<!--FOOTER-->
</div>
<!--/PageFooterFmt-->
</div>
</body>
</html>