Getting Started - Programming Memory on Graphics PICtail Daughter and Demo Boards.htm 31.9 KB
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 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687
<html>

<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=Generator content="Microsoft Word 12 (filtered)">
<title>Getting Started: Programming Memory on Graphics PICtail Daughter and
Demo Boards</title>
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Cambria;
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
h1
	{mso-style-link:"Heading 1 Char";
	margin-top:12.0pt;
	margin-right:0in;
	margin-bottom:3.0pt;
	margin-left:0in;
	page-break-after:avoid;
	font-size:16.0pt;
	font-family:"Arial","sans-serif";}
h2
	{mso-style-link:"Heading 2 Char";
	margin-top:12.0pt;
	margin-right:0in;
	margin-bottom:3.0pt;
	margin-left:0in;
	page-break-after:avoid;
	font-size:14.0pt;
	font-family:"Arial","sans-serif";
	font-style:italic;}
h3
	{mso-style-link:"Heading 3 Char";
	margin-top:12.0pt;
	margin-right:0in;
	margin-bottom:3.0pt;
	margin-left:0in;
	page-break-after:avoid;
	font-size:13.0pt;
	font-family:"Arial","sans-serif";}
p.MsoToc1, li.MsoToc1, div.MsoToc1
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
p.MsoToc2, li.MsoToc2, div.MsoToc2
	{margin-top:0in;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:12.0pt;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
p.MsoToc3, li.MsoToc3, div.MsoToc3
	{margin-top:0in;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:24.0pt;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
p.MsoCaption, li.MsoCaption, div.MsoCaption
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Times New Roman","serif";
	font-weight:bold;}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
p.MsoDocumentMap, li.MsoDocumentMap, div.MsoDocumentMap
	{mso-style-link:"Document Map Char";
	margin:0in;
	margin-bottom:.0001pt;
	background:navy;
	font-size:10.0pt;
	font-family:"Tahoma","sans-serif";}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
	{mso-style-link:"Plain Text Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
	{mso-style-link:"Balloon Text Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:8.0pt;
	font-family:"Tahoma","sans-serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
	{margin-top:0in;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:.5in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
p.MsoTocHeading, li.MsoTocHeading, div.MsoTocHeading
	{margin-top:24.0pt;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:0in;
	margin-bottom:.0001pt;
	line-height:115%;
	page-break-after:avoid;
	font-size:14.0pt;
	font-family:"Cambria","serif";
	color:#365F91;
	font-weight:bold;}
span.Heading1Char
	{mso-style-name:"Heading 1 Char";
	mso-style-link:"Heading 1";
	font-family:"Cambria","serif";
	color:#365F91;
	font-weight:bold;}
span.Heading2Char
	{mso-style-name:"Heading 2 Char";
	mso-style-link:"Heading 2";
	font-family:"Arial","sans-serif";
	font-weight:bold;
	font-style:italic;}
span.Heading3Char
	{mso-style-name:"Heading 3 Char";
	mso-style-link:"Heading 3";
	font-family:"Arial","sans-serif";
	font-weight:bold;}
span.DocumentMapChar
	{mso-style-name:"Document Map Char";
	mso-style-link:"Document Map";
	font-family:"Tahoma","sans-serif";}
span.PlainTextChar
	{mso-style-name:"Plain Text Char";
	mso-style-link:"Plain Text";
	font-family:"Courier New";}
span.BalloonTextChar
	{mso-style-name:"Balloon Text Char";
	mso-style-link:"Balloon Text";
	font-family:"Tahoma","sans-serif";}
p.msolistparagraphcxspfirst, li.msolistparagraphcxspfirst, div.msolistparagraphcxspfirst
	{mso-style-name:msolistparagraphcxspfirst;
	margin-top:0in;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:.5in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
p.msolistparagraphcxspmiddle, li.msolistparagraphcxspmiddle, div.msolistparagraphcxspmiddle
	{mso-style-name:msolistparagraphcxspmiddle;
	margin-top:0in;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:.5in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
p.msolistparagraphcxsplast, li.msolistparagraphcxsplast, div.msolistparagraphcxsplast
	{mso-style-name:msolistparagraphcxsplast;
	margin-top:0in;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:.5in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
p.element10, li.element10, div.element10
	{mso-style-name:element10;
	margin-right:0in;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
p.msochpdefault, li.msochpdefault, div.msochpdefault
	{mso-style-name:msochpdefault;
	margin-right:0in;
	margin-left:0in;
	font-size:10.0pt;
	font-family:"Times New Roman","serif";}
span.spelle
	{mso-style-name:spelle;}
span.grame
	{mso-style-name:grame;}
.MsoChpDefault
	{font-size:10.0pt;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 65.95pt 1.0in 65.95pt;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoPlainText><span style='font-family:"Arial","sans-serif"'>Graphics
PICtail Plus boards and PIC24FJ256DA210 Development Boards features flash
memories. These are useful resources to store images, fonts and application
data running on the mentioned demos. The following manual describes how these
memories can be programmed.</span></p>

<p class=MsoPlainText><span style='font-family:"Arial","sans-serif"'>&nbsp;</span></p>

<p class=MsoPlainText><span style='font-family:"Arial","sans-serif"'>All
programming are initiated through a PC utility (<b>memory_programmer.jar</b>)
provided with the Graphics Library Demos. You can find this utility in this
path of your Microchip Application Libraries installation path:</span></p>

<p class=MsoPlainText><b><span style='font-family:"Arial","sans-serif"'>..\&lt;Installed
Directory &gt;\Microchip\Graphics\bin\memory_programmer</span></b></p>

<p class=MsoPlainText><span style='font-family:"Arial","sans-serif"'>&nbsp;</span></p>

<p class=MsoPlainText><span style='font-family:"Arial","sans-serif"'>The hex
files are generated by the Graphics Resource Converter located in:</span></p>

<p class=MsoPlainText><b><span style='font-family:"Arial","sans-serif"'>..\
&lt;Installed Directory&gt; \Microchip\Graphics\bin\grc</span></b></p>

<p class=MsoPlainText><span style='font-family:"Arial","sans-serif"'>&nbsp;</span></p>

<p class=MsoPlainText><span style='font-family:"Arial","sans-serif"'>Where: <b>Installed
Directory </b> is the directory where Microchip Application Libraries is
installed (this includes the installation of the Graphics Library).</span></p>

<p class=element10><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>The
demo projects that include flash programming are created to run on supported
Microchip Demo Boards and development hardware. Pre-generated hex files are
available on the &quot;Precompiled Demos&quot; sub-directory found in the demo
directory. These hex files are generated using the alternative hardware
profiles found in the sub-directory named &quot;Alternative
Configurations&quot;. Use the &quot;<a
href="Getting%20Started%20-%20Demo%20Compatibility%20Matrix.htm">Demo
Compatibility Matrix</a>&quot; when running pre-generated hex files appropriate
for your hardware.&nbsp;</span></p>

<p class=element10><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>This
programmer allows downloading Intel Hex file into memory installed on selected
hardware.&nbsp; Refer to the memory_programmer help file for details on the
programmer utility operation. Instructions on how to install drivers for USB
Device programming mode can also be found on this help file.</span></p>

<p class=element10><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>The
figure below shows the possible combination of your hardware that requires
programming. Depending on the hardware selected, the programming sequence will
be the same but the required user interface (such as button press) may be
different. Please refer to the different configurations below for details.</span></p>

<p class=MsoTocHeading>&nbsp;</p>

<p class=MsoToc3><span class=MsoHyperlink><a href="#_Toc307412869">Configuration
1: PIC24FJ256DA210 Development Board<span style='color:windowtext;display:none;
text-decoration:none'>. </span><span
style='color:windowtext;display:none;text-decoration:none'>1</span></a></span></p>

<p class=MsoToc3><span class=MsoHyperlink><a href="#_Toc307412870">Configuration
1: Troubleshooting<span style='color:windowtext;display:none;text-decoration:
none'>. </span><span
style='color:windowtext;display:none;text-decoration:none'>1</span></a></span></p>

<p class=MsoToc3><span class=MsoHyperlink><a href="#_Toc307412871">Configuration
2: Explorer 16<span style='color:windowtext;display:none;text-decoration:none'>. </span><span
style='color:windowtext;display:none;text-decoration:none'>1</span></a></span></p>

<p class=MsoToc3><span class=MsoHyperlink><a href="#_Toc307412872">Configuration
2: Troubleshooting<span style='color:windowtext;display:none;text-decoration:
none'>. </span><span
style='color:windowtext;display:none;text-decoration:none'>2</span></a></span></p>

<p class=MsoToc3><span class=MsoHyperlink><a href="#_Toc307412873">Configurations
3, 4, 5, and 6<span style='color:windowtext;display:none;text-decoration:none'>. </span><span
style='color:windowtext;display:none;text-decoration:none'>2</span></a></span></p>

<p class=MsoNormal>&nbsp;</p>

<p class=MsoPlainText>&nbsp;</p>

<p class=MsoPlainText><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>&nbsp;</span></p>

<h3><a name="_Toc307412869"></a><a name="_Toc276132317"></a><a name="config_2"></a><a
name="_Toc274902560"></a><a name="_Toc274828940"></a>Configuration 1:
PIC24FJ256DA210 Development Board</h3>

<p class=MsoPlainText style='margin-left:.5in'><span style='font-family:"Arial","sans-serif"'>There
are two flash memories on this board. The following steps sets up the Parallel
or the SPI flash memory for programming and usage.</span></p>

<p class=MsoPlainText style='margin-left:.75in;text-indent:-.25in'><span
style='font-family:"Arial","sans-serif"'>1)</span><span style='font-size:7.0pt;
font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;&nbsp; </span><span
style='font-family:"Arial","sans-serif"'>To use SPI Flash</span></p>

<p class=MsoPlainText style='margin-left:1.25in;text-indent:-.25in'>a.<span
style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp; </span><span
style='font-family:"Arial","sans-serif"'>Set jumper (JP23) to PMCS2-SPI</span></p>

<p class=MsoPlainText style='margin-left:.75in;text-indent:-.25in'><span
style='font-family:"Arial","sans-serif"'>2)</span><span style='font-size:7.0pt;
font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;&nbsp; </span><span
style='font-family:"Arial","sans-serif"'>To use Parallel Flash</span></p>

<p class=MsoPlainText style='margin-left:1.25in;text-indent:-.25in'>a.<span
style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp; </span><span
style='font-family:"Arial","sans-serif"'>Set jumper (JP23) to PMCS2-PARALLEL</span></p>

<p class=MsoPlainText style='margin-left:1.25in;text-indent:-.25in'>b.<span
style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp; </span><span
style='font-family:"Arial","sans-serif"'>Depending on the memory range to be
used</span></p>

<p class=MsoPlainText style='margin-left:1.25in;text-indent:-.25in'><span
style='font-family:Symbol'></span><span style='font-size:7.0pt;font-family:
"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
style='font-family:"Arial","sans-serif"'>set jumper (JP11) to 1-2 when using 17
PMP address lines (PMP[16:0])</span></p>

<p class=MsoPlainText style='margin-left:1.25in;text-indent:-.25in'><span
style='font-family:Symbol'></span><span style='font-size:7.0pt;font-family:
"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
style='font-family:"Arial","sans-serif"'>set jumper (JP11) to 2-3 when using 18
PMP address lines (PMP[17:0])</span></p>

<p class=MsoPlainText style='margin-left:.75in'>&nbsp;</p>

<p class=MsoPlainText style='margin-left:.25in;text-indent:.5in'><span
style='font-family:"Arial","sans-serif"'>Note: Firmware must also initialize
the EPMP SFRs to use the address lines. Please refer to EPMP FRM Chapter
(DS39730a) for details.</span></p>

<p class=MsoPlainText style='margin-left:.25in;text-indent:.5in'>&nbsp;</p>

<p class=MsoPlainText style='margin-left:.75in;text-indent:-.25in'><span
style='font-family:"Arial","sans-serif"'>3)</span><span style='font-size:7.0pt;
font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;&nbsp; </span><span
style='font-family:"Arial","sans-serif"'>To program (using Serial
Communications)</span></p>

<p class=MsoPlainText style='margin-left:1.25in;text-indent:-.25in'>a.<span
style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp; </span><span
style='font-family:"Arial","sans-serif"'>Program the PIC24FJ256DA210 with the application
hex code that contains the programming routine.</span></p>

<p class=MsoPlainText style='margin-left:1.25in;text-indent:-.25in'>b.<span
style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp; &nbsp;</span><span
style='font-family:"Arial","sans-serif"'>Connect the PIC24FJ256DA210
Development Board to the PC with a RS232 cable.</span></p>

<p class=MsoPlainText style='margin-left:1.25in;text-indent:-.25in'>c.<span
style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp; &nbsp;</span><span
style='font-family:"Arial","sans-serif"'>With the PIC24FJ256DA210 Development
Board powered up, hold down button S2.</span></p>

<p class=MsoPlainText style='margin-left:1.25in;text-indent:-.25in'>d.<span
style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp; &nbsp;</span><span
style='font-family:"Arial","sans-serif"'>While holding button S2, push down and
release button S4 (MCLR) to erase the data in flash memory then release the S2
button. This will put the application in programming mode.</span></p>

<p class=MsoPlainText style='margin-left:1.0in'>&nbsp;</p>

<p class=MsoNormal style='text-indent:.5in;page-break-after:avoid'><img
width=618 height=422 src="images/DA210DevBoard%20Flash%20Programming.jpg"></p>

<p class=MsoNormal style='text-indent:.5in'><span style='font-family:"Arial","sans-serif"'>&nbsp;</span></p>

<p class=MsoPlainText style='margin-left:1.25in;text-indent:-.25in'>e.<span
style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp; </span><span
style='font-family:"Arial","sans-serif"'>Run memory_programmer.jar on the PC
side.</span></p>

<p class=MsoPlainText style='margin-left:1.25in;text-indent:-.25in'>f.<span
style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp; </span><span
style='font-family:"Arial","sans-serif"'>Follow the steps described in the
memory_programmer help files to program external memory (External Memory
Programmer Help.pdf or External Memory Programmer Help.chm).</span></p>

<p class=MsoPlainText style='margin-left:1.0in'>&nbsp;</p>

<p class=MsoPlainText style='margin-left:.5in'>&nbsp;</p>

<p class=MsoPlainText style='margin-left:.75in;text-indent:-.25in'><span
style='font-family:"Arial","sans-serif"'>4)</span><span style='font-size:7.0pt;
font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;&nbsp; </span><span
style='font-family:"Arial","sans-serif"'>To program (using USB Communications)</span></p>

<p class=MsoPlainText style='margin-left:1.25in;text-indent:-.25in'>a.<span
style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp; </span><span
style='font-family:"Arial","sans-serif"'>Program the PIC24FJ256DA210 with the
application hex code that contains the programming routine.</span></p>

<p class=MsoPlainText style='margin-left:1.25in;text-indent:-.25in'>b.<span
style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp; </span><span
style='font-family:"Arial","sans-serif"'>Enable the USB Device port by setting
jumper (JP7) to short.</span></p>

<p class=MsoPlainText style='margin-left:1.25in;text-indent:-.25in'>c.<span
style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp; &nbsp;</span><span
style='font-family:"Arial","sans-serif"'>Connect the PIC24FJ256DA210
Development Board to the PC with a USB cable on J2.</span></p>

<p class=MsoPlainText style='margin-left:1.25in;text-indent:-.25in'>d.<span
style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp; &nbsp;</span><span
style='font-family:"Arial","sans-serif"'>With the PIC24FJ256DA210 Development
Board powered up, hold down button S2.</span></p>

<p class=MsoPlainText style='margin-left:1.25in;text-indent:-.25in'>e.<span
style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp; &nbsp;</span><span
style='font-family:"Arial","sans-serif"'>While holding button S2, push down and
release button S4 (MCLR) to erase the data in flash memory then release the S2
button. This will put the application in programming mode.</span></p>

<p class=MsoPlainText style='margin-left:.5in'>&nbsp;</p>

<h3 style='text-indent:.5in'><a name="_Toc307412870"></a><a name="_Toc276132318">Configuration
1: Troubleshooting</a></h3>

<p class=MsoPlainText style='margin-left:.5in'><span style='font-family:"Arial","sans-serif"'>In
some cases, programming will fail due varied reasons.</span></p>

<p class=MsoPlainText style='margin-left:.75in;text-indent:-.25in'><span
style='font-family:"Arial","sans-serif"'>1)</span><span style='font-size:7.0pt;
font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;&nbsp; </span><span
style='font-family:"Arial","sans-serif"'>Only 1 line is transferred and the
number of retries reaches the maximum. Check if the jumper (JP23) is setting
the chip select to the correct flash memory.</span></p>

<p class=MsoPlainText style='margin-left:.75in;text-indent:-.25in'><span
style='font-family:"Arial","sans-serif"'>2)</span><span style='font-size:7.0pt;
font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;&nbsp; </span><span
style='font-family:"Arial","sans-serif"'>When programming the parallel flash it
always fails on a specific line number. Check jumper (JP11) if set to use 17 or
18 EPMP address lines.</span></p>

<p class=MsoPlainText style='margin-left:.75in;text-indent:-.25in'><span
style='font-family:"Arial","sans-serif"'>3)</span><span style='font-size:7.0pt;
font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;&nbsp; </span><span
style='font-family:"Arial","sans-serif"'>Programming Failed message always
appears. Check if the correct COM port is selected. This can be verified by
looking at the Windows Device Manager. Verify the COM port under the Ports
(COM &amp; LPT). </span></p>

<p class=MsoPlainText style='margin-left:.75in;text-indent:-.25in'><span
style='font-family:"Arial","sans-serif"'>4)</span><span style='font-size:7.0pt;
font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;&nbsp; </span>&nbsp;</p>

<h3><a name="_Toc307412871"></a><a name="_Toc276132319"></a><a
name="_Toc274902561"></a><a name="config_3"></a><a name="_Toc274828941"></a>Configuration
2: Explorer 16</h3>

<p class=MsoPlainText style='margin-left:.5in'><span style='font-family:"Arial","sans-serif"'>The
explorer 16 can be connected to the following boards:</span></p>

<p class=MsoPlainText style='margin-left:1.0in;text-indent:-.25in'><span
style='font-family:Symbol'></span><span style='font-size:7.0pt;font-family:
"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
style='font-family:"Arial","sans-serif"'><a
href="http://www.microchipdirect.com/productsearch.aspx?Keywords=AC164127-5">Graphics
LCD Controller PICtail Plus SSD1926 Board</a> (AC164127-5)</span></p>

<p class=MsoListParagraph style='margin-left:1.0in;text-indent:-.25in'><span
style='font-size:10.0pt;font-family:Symbol'></span><span style='font-size:
7.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
style='font-size:10.0pt;font-family:"Arial","sans-serif"'><a
href="http://www.microchipdirect.com/productsearch.aspx?Keywords=AC164127-7">Graphics
LCD Controller PICtail Plus S1D13517 Board</a> (AC164127-7)</span></p>

<p class=MsoListParagraph style='margin-left:1.0in;text-indent:-.25in'><span
style='font-size:10.0pt;font-family:Symbol'></span><span style='font-size:
7.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
style='font-size:10.0pt;font-family:"Arial","sans-serif"'><a
href="http://www.microchipdirect.com/productsearch.aspx?Keywords=AC164144">Low
Cost Controllerless (LCC) Graphics PICtail Plus&nbsp; Board</a> (AC164144)</span></p>

<p class=MsoListParagraph style='margin-left:1.0in;text-indent:-.25in'>&nbsp;</p>

<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>Programming the SPI Memory of the Graphics
PICtail boards connected to Explorer 16 is possible through the UART connector
P1.</span></p>

<p class=MsoNormal style='margin-left:.5in'>&nbsp;</p>

<p class=MsoPlainText style='margin-left:.75in;text-indent:-.25in'><span
style='font-family:"Arial","sans-serif"'>1)</span><span style='font-size:7.0pt;
font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;&nbsp; </span><span
style='font-family:"Arial","sans-serif"'>For each Graphics PICtail:</span></p>

<p class=MsoPlainText style='margin-left:1.25in;text-indent:-.25in'><span
style='font-family:"Arial","sans-serif"'>a.</span><span style='font-size:7.0pt;
font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;&nbsp; </span><span
style='font-family:"Arial","sans-serif"'>Graphics LCD Controller PICtail Plus SSD1926
Board -&gt; </span><span style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp;</span><span
style='font-family:"Arial","sans-serif"'>Set jumper (JP3) to FLASH CS-RD1 to
select SPI flash.</span></p>

<p class=MsoPlainText style='margin-left:1.25in;text-indent:-.25in'><span
style='font-family:"Arial","sans-serif"'>b.</span><span style='font-size:7.0pt;
font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp; </span><span
style='font-family:"Arial","sans-serif"'>Graphics LCD Controller PICtail Plus
S1D13517 Board -&gt; Set jumpers (JP3, JP4, JP5 and JP6) to 1-2 for SPI channel
1 or 2-3 for SPI channels 2 for the SPI flash connection.</span></p>

<p class=MsoPlainText style='margin-left:1.25in;text-indent:-.25in'><span
style='font-family:"Arial","sans-serif"'>c.</span><span style='font-size:7.0pt;
font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;&nbsp; </span><span
style='font-family:"Arial","sans-serif"'>Low Cost Controllerless (LCC) Graphics
PICtail Plus&nbsp; Board -&gt; SPI Flash is always connected no jumper
settings required.</span></p>

<p class=MsoPlainText style='margin-left:.5in;page-break-after:avoid'><span
style='font-family:"Arial","sans-serif"'><img border=0 width=795 height=275
src="images/GraphicsPICtailFlashProgramming.jpg"></span></p>

<p class=MsoCaption><span style='font-family:"Arial","sans-serif"'>&nbsp;</span></p>

<p class=MsoPlainText style='margin-left:.75in;text-indent:-.25in'><span
style='font-family:"Arial","sans-serif"'>2)</span><span style='font-size:7.0pt;
font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;&nbsp; </span><span
style='font-family:"Arial","sans-serif"'>To program (using Serial
Communications)</span></p>

<p class=MsoPlainText style='margin-left:1.25in;text-indent:-.25in'><span
style='font-family:"Arial","sans-serif"'>a.</span><span style='font-size:7.0pt;
font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;&nbsp; </span><span
style='font-family:"Arial","sans-serif"'>Program the selected PIC device (PIM
mounted on the Explorer 6 board) with the application hex code that contains
the programming routine.</span></p>

<p class=MsoPlainText style='margin-left:1.25in;text-indent:-.25in'><span
style='font-family:"Arial","sans-serif"'>b.</span><span style='font-size:7.0pt;
font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp; </span><span
style='font-family:"Arial","sans-serif"'>Connect the Explorer 16 Board PC with
a RS232 cable.</span></p>

<p class=MsoPlainText style='margin-left:1.25in;text-indent:-.25in'><span
style='font-family:"Arial","sans-serif"'>c.</span><span style='font-size:7.0pt;
font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;&nbsp; </span><span
style='font-family:"Arial","sans-serif"'>Connect the Graphics LCD Controller
PICtail Plus SSD1926 Board or Graphics PICtail Plus Daughter Board to the
Explorer 16 Board using the J9 edge connector. </span></p>

<p class=MsoPlainText style='margin-left:1.25in;text-indent:-.25in'><span
style='font-family:"Arial","sans-serif"'>d.</span><span style='font-size:7.0pt;
font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp; </span><span
style='font-family:"Arial","sans-serif"'>With the Explorer 16 Board powered up,
hold down button S6.</span></p>

<p class=MsoPlainText style='margin-left:1.25in;text-indent:-.25in'><span
style='font-family:"Arial","sans-serif"'>e.</span><span style='font-size:7.0pt;
font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;&nbsp; </span><span
style='font-family:"Arial","sans-serif"'>While holding button S6 push down and
release button S1 (MCLR) to erase the data in flash memory then release the S1
button. This will put the application in programming mode.</span></p>

<p class=MsoPlainText style='margin-left:.5in'><span style='font-family:"Arial","sans-serif"'>&nbsp;</span></p>

<p class=MsoPlainText style='margin-left:.5in;page-break-after:avoid'><span
style='font-family:"Arial","sans-serif"'><img border=0 width=430 height=361
src="images/Explorer%2016%20Flash%20Programming.jpg"></span></p>

<p class=MsoNormal style='text-indent:.5in'><span style='font-family:"Arial","sans-serif"'>&nbsp;</span></p>

<p class=MsoPlainText style='margin-left:1.25in;text-indent:-.25in'>f.<span
style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp; </span><span
style='font-family:"Arial","sans-serif"'>Follow the steps described in the
memory_programmer help files to program external memory (External Memory
Programmer Help.pdf or External Memory Programmer Help.chm).</span></p>

<p class=MsoNormal style='text-indent:.5in;page-break-after:avoid'>&nbsp;</p>

<h3 style='text-indent:.5in'><a name="_Toc307412872"></a><a name="_Toc276132320">Configuration
2: Troubleshooting</a></h3>

<p class=MsoPlainText style='margin-left:.5in'><span style='font-family:"Arial","sans-serif"'>In
some cases, programming will fail due varied reasons.</span></p>

<p class=MsoPlainText style='margin-left:.75in;text-indent:-.25in'><span
style='font-family:"Arial","sans-serif"'>1.</span><span style='font-size:7.0pt;
font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;&nbsp; </span><span
style='font-family:"Arial","sans-serif"'>Only 1 line is transferred and the
number of retries reaches the maximum. If using Graphics LCD Controller
PICtail Plus SSD1926 Board, check if the jumper (JP3) is using the correct SPI
flash memory chip select signal.</span></p>

<p class=MsoPlainText style='margin-left:.75in;text-indent:-.25in'><span
style='font-family:"Arial","sans-serif"'>2.</span><span style='font-size:7.0pt;
font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;&nbsp; </span><span
style='font-family:"Arial","sans-serif"'>When using Graphics PICtail Plus
Daughter Board, programming the parallel flash it always fails on a specific
line number. Check the address lines of the parallel flash. One or more address
lines may not be connected to the parallel flash properly.</span></p>

<p class=MsoPlainText style='margin-left:.75in;text-indent:-.25in'><span
style='font-family:"Arial","sans-serif"'>3.</span><span style='font-size:7.0pt;
font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;&nbsp; </span><span
style='font-family:"Arial","sans-serif"'>Programming Failed message always
appears. Check if the correct COM port is selected. This can be verified by
looking at the Windows Device Manager. Verify the COM port under the Ports
(COM &amp; LPT). </span></p>

<p class=MsoPlainText><span style='font-family:"Arial","sans-serif"'>&nbsp;</span></p>

<h3><a name="_Toc307412873">Configurations 3, 4, 5, and 6</a></h3>

<p class=MsoPlainText><span style='font-family:"Arial","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Configuration 3: <a
href="http://www.microchipdirect.com/productsearch.aspx?Keywords=AC164127-5">Graphics
LCD Controller PICtail Plus SSD1926 Board</a> (AC164127-5)</span></p>

<p class=MsoPlainText><span style='font-family:"Arial","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Configuration 4: <a
href="http://www.microchipdirect.com/productsearch.aspx?Keywords=AC164127-7">Graphics
LCD Controller PICtail Plus S1D13517 Board</a> (AC164127-7)</span></p>

<p class=MsoPlainText><span style='font-family:"Arial","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Configuration 5: <a
href="http://www.microchipdirect.com/productsearch.aspx?Keywords=AC164144">Low
Cost Controllerless (LCC) Graphics PICtail Plus&nbsp; Board</a> (AC164144)</span></p>

<p class=MsoPlainText><span style='font-family:"Arial","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Configuration 6: <a
href="http://www.microchipdirect.com/productsearch.aspx?Keywords=DM320005">Multimedia
Expansion Board</a> (DM320005)</span></p>

<p class=MsoPlainText><span style='font-family:"Arial","sans-serif"'>&nbsp;</span></p>

<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>Programming the SPI Memory of the Graphics PICtail
boards connected to Starter Kits are only possible through the USB ports.</span></p>

<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>Only Starter Kits that USB features can be
used.</span></p>

<p class=MsoPlainText style='margin-left:.5in;text-indent:.5in'><span
style='font-family:"Arial","sans-serif"'><a
href="http://www.microchipdirect.com/productsearch.aspx?Keywords=DM320003-2">PIC32
USB Starter Kit II</a> (DM320003-2)</span></p>

<p class=MsoPlainText style='margin-left:.5in;text-indent:.5in'><span
style='font-family:"Arial","sans-serif"'><a
href="http://www.microchipdirect.com/productsearch.aspx?Keywords=DM320004">PIC32
Ethernet Starter Kit</a> (DM320004)</span></p>

<p class=MsoPlainText><span style='font-family:"Arial","sans-serif"'>&nbsp;</span></p>

<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>Refer to each demo for details on how to
enable the external flash programming mode.</span></p>

<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>Follow the steps described in the
memory_programmer help files to program external memory using the USB mode
(External Memory Programmer Help.pdf or External Memory Programmer
Help.chm).</span></p>

<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>&nbsp;</span></p>

<p class=MsoPlainText><span style='font-family:"Arial","sans-serif"'>&nbsp;</span></p>

</div>

</body>

</html>