{"id":426,"date":"2018-06-24T09:14:33","date_gmt":"2018-06-24T00:14:33","guid":{"rendered":"http:\/\/tamatoyaku.com\/b\/?p=426"},"modified":"2018-06-24T09:14:33","modified_gmt":"2018-06-24T00:14:33","slug":"426","status":"publish","type":"post","link":"https:\/\/p-0.me\/b\/p\/426\/","title":{"rendered":"PIC32MX210F016B\u3067L\u30c1\u30ab"},"content":{"rendered":"<p>L\u30c1\u30ab\u306b\u4e00\u6669\u304b\u3051\u305f\u96fb\u5b50\u5de5\u4f5c\u521d\u5fc3\u8005\u304c\u671d7\u6642\u306b\u8a18\u4e8b\u3092\u66f8\u304d\u59cb\u3081\u308b\u3088\uff0e<br \/>\n<!--more--><br \/>\n<strong>\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u7de8<\/strong><br \/>\n\u6700\u521d\u306b\u56de\u8def\u3092\u30d6\u30ec\u30c3\u30c9\u30dc\u30fc\u30c9\u4e0a\u306b\u7d44\u3080\uff0e\u6700\u5c0f\u69cb\u6210\u306b\u3064\u3044\u3066\u306f<a href=\"http:\/\/ww1.microchip.com\/downloads\/en\/DeviceDoc\/PIC32MX1XX2XX-28-36-44-PIN-DS60001168K.pdf\">\u30c7\u30fc\u30bf\u30b7\u30fc\u30c8<\/a>\u306eFigure2-1:RECOMMENDED MINIMUM CONNECTION\u306b\u8a18\u8f09\u3057\u3066\u3042\u308b\u305f\u3081\uff0c\u3053\u308c\u3092\u914d\u7dda\u3059\u308b\uff0e\u30af\u30ed\u30c3\u30af\u306f16[MHz]\u306e\u30bb\u30e9\u30df\u30c3\u30af\u767a\u632f\u5b50\u3092\u4f7f\u7528\u3057\uff0cLED\u306f2\u756a\u30d4\u30f3\u306eRA0\u3092\u4f7f\u7528\u3059\u308b\uff0eUSB\uff0cDC\u30b8\u30e3\u30c3\u30af\uff0cUSB-\u30b7\u30ea\u30a2\u30eb\u5909\u63db\u5668\u306fL\u30c1\u30ab\u3067\u306f\u4f7f\u308f\u306a\u3044\u304c\u4eca\u5f8c\u306e\u305f\u3081\u306b\u914d\u7f6e\u3057\u3066\u304a\u304f\uff0e\u306a\u304a\uff0c\u4eca\u56de\u306e\u96fb\u6e90\u306fUSB\u306e\u30d0\u30b9\u30d1\u30ef\u30fc\u30923.3[V]\u306b\u964d\u5727\u3057\u305f\u3082\u306e\u3092\u4f7f\u7528\u3059\u308b\uff0e\u914d\u7dda\u306b\u3064\u3044\u3066\u306f\u8d64\u306f5[V]\uff0c\u9ec4\u8272\u306f3.3[V]\uff0c\u767d\u306f0[V]\u306e\u3064\u3082\u308a\uff0e<br \/>\n\u914d\u7dda\u3092\u884c\u3046\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308b\uff0e<br \/>\n<a href=\"https:\/\/tamatoyaku.com\/b\/wp-content\/uploads\/2018\/06\/board-e1529777334655.jpeg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-427 aligncenter size-large\" src=\"https:\/\/tamatoyaku.com\/b\/wp-content\/uploads\/2018\/06\/board-e1529777334655-1024x576.jpeg\" alt=\"\" width=\"1024\" height=\"576\" \/><\/a><br \/>\n<strong>\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u7de8<\/strong><br \/>\n\u6e96\u5099\u3068\u3057\u3066MPLAB\uff0cXC32\uff0cHarmony\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u7d42\u3048\u3066\u304a\u304f\uff0e<br \/>\n\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210\u3092\u884c\u3046\uff0eHarmony\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3068\u3057\u3066\u4f5c\u6210\u3059\u308b\uff0e<br \/>\n<a href=\"https:\/\/tamatoyaku.com\/b\/wp-content\/uploads\/2018\/06\/01.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-428 aligncenter size-full\" src=\"https:\/\/tamatoyaku.com\/b\/wp-content\/uploads\/2018\/06\/01.png\" alt=\"\" width=\"723\" height=\"524\" \/><\/a><br \/>\n\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u540d\u524d\u3084\u4f7f\u7528\u3059\u308b\u30c7\u30d0\u30a4\u30b9\u3092\u6307\u5b9a\u3059\u308b\uff0e<br \/>\n<a href=\"https:\/\/tamatoyaku.com\/b\/wp-content\/uploads\/2018\/06\/02.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-429 aligncenter size-large\" src=\"https:\/\/tamatoyaku.com\/b\/wp-content\/uploads\/2018\/06\/02-1024x455.png\" alt=\"\" width=\"1024\" height=\"455\" \/><\/a><br \/>\nHarmony Configurator\u304c\u7acb\u3061\u4e0a\u304c\u308b\uff0e\u7acb\u3061\u4e0a\u304c\u3089\u306a\u304b\u3063\u305f\u3089[Tools]-&gt;[Embedded]-&gt;[MPLAB Harmony Configurator]\u3067\u8d77\u52d5\uff0e\u8d77\u52d5\u6642\u306f\u3053\u306e\u3088\u3046\u306a\u753b\u9762\u3068\u306a\u3063\u3066\u3044\u308b\uff0e<br \/>\n<a href=\"https:\/\/tamatoyaku.com\/b\/wp-content\/uploads\/2018\/06\/03.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-430 aligncenter size-large\" src=\"https:\/\/tamatoyaku.com\/b\/wp-content\/uploads\/2018\/06\/03-1024x625.png\" alt=\"\" width=\"1024\" height=\"625\" \/><\/a><br \/>\n\u3053\u306e\u753b\u9762\u3067\u306f\u4f7f\u7528\u3059\u308b\u30e9\u30a4\u30d6\u30e9\u30ea(USB\u3084\u3089Crypt\u3084\u3089)\u3092\u6307\u5b9a\u3059\u308b\u304c\uff0c\u4eca\u56de\u306f\u7279\u306b\u8a2d\u5b9a\u3092\u884c\u308f\u306a\u3044\uff0e<br \/>\n\u30bf\u30d6\u304b\u3089[Clock Diagram]\u3092\u9078\u629e\u3057\u30af\u30ed\u30c3\u30af\u306e\u8a2d\u5b9a\u3092\u884c\u3046\uff0e\u521d\u671f\u72b6\u614b\u3067\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\uff0e<br \/>\n<a href=\"https:\/\/tamatoyaku.com\/b\/wp-content\/uploads\/2018\/06\/04.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-431 aligncenter size-large\" src=\"https:\/\/tamatoyaku.com\/b\/wp-content\/uploads\/2018\/06\/04-1024x986.png\" alt=\"\" width=\"1024\" height=\"986\" \/><\/a><br \/>\n\u4eca\u56de\u306f16[MHz]\u306e\u30bb\u30e9\u30df\u30c3\u30af\u767a\u632f\u5b50\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u305f\u3081POSC\u309216[MHz]\uff0cPOSCMOD\u3092HS\u306b\u8a2d\u5b9a\u3059\u308b\uff0e<br \/>\nSystem PLL\u306e\u70b9\u7dda\u67a0\u5185\u306b\u3042\u308bAuto-Calculate\u3092\u62bc\u3057\uff0c\u7121\u610f\u5473\u306b\u6700\u9ad8\u52d5\u4f5c\u5468\u6ce2\u6570\u3067\u3042\u308b40[MHz]\u306b\u8a2d\u5b9a\u3057\u3066\u307f\u308b\uff0e<br \/>\n<a href=\"https:\/\/tamatoyaku.com\/b\/wp-content\/uploads\/2018\/06\/05.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-432 aligncenter size-full\" src=\"https:\/\/tamatoyaku.com\/b\/wp-content\/uploads\/2018\/06\/05.png\" alt=\"\" width=\"427\" height=\"356\" \/><\/a><br \/>\n\u3064\u3044\u3067\u306bUSB\u306b\u4f9b\u7d66\u3059\u308b\u30af\u30ed\u30c3\u30af\u3082\u8a2d\u5b9a\u3057\u3066\u304a\u304f\uff0eUPLLDIV\u3092DIV_4\u306b\u3059\u308b\u3068\u3046\u307e\u3044\u5177\u5408\u306bUSB Clock\u306b48[MHz]\u304c\u4f9b\u7d66\u3055\u308c\u308b\uff0e<br \/>\n\u8a2d\u5b9a\u304c\u7d42\u308f\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308b\uff0e<br \/>\n<a href=\"https:\/\/tamatoyaku.com\/b\/wp-content\/uploads\/2018\/06\/06.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-433 aligncenter size-large\" src=\"https:\/\/tamatoyaku.com\/b\/wp-content\/uploads\/2018\/06\/06-1024x986.png\" alt=\"\" width=\"1024\" height=\"986\" \/><\/a><br \/>\n\u6b21\u306b\u30d4\u30f3\u306e\u8a2d\u5b9a\u3092\u884c\u3046\uff0e[Pin Diagram]\u30bf\u30d6\u3092\u958b\u304f\uff0e<br \/>\n<a href=\"https:\/\/tamatoyaku.com\/b\/wp-content\/uploads\/2018\/06\/07.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-434 aligncenter size-full\" src=\"https:\/\/tamatoyaku.com\/b\/wp-content\/uploads\/2018\/06\/07.png\" alt=\"\" width=\"752\" height=\"616\" \/><\/a><br \/>\n2\u756a\u30d4\u30f3(RA0)\u3092GPIO_OUT\uff0c9,10\u756a\u30d4\u30f3\u3092OSC1,2\u3068\u3057\u3066\u8a2d\u5b9a\u3059\u308b\uff0e<br \/>\n<a href=\"https:\/\/tamatoyaku.com\/b\/wp-content\/uploads\/2018\/06\/08.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-435 aligncenter size-full\" src=\"https:\/\/tamatoyaku.com\/b\/wp-content\/uploads\/2018\/06\/08.png\" alt=\"\" width=\"752\" height=\"616\" \/><\/a><br \/>\n\u3053\u308c\u3067Configurator\u3067\u884c\u3048\u308b\u8a2d\u5b9a\u306f\u7d42\u4e86\uff0e\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3059\u308b\u305f\u3081\uff0c\u30ab\u30fc\u30bd\u30eb\u3092\u5408\u308f\u305b\u308b\u3068\u300cGenerate Code\u300d\u3068\u51fa\u308b\u6b6f\u8eca\u3063\u307d\u3044\u30de\u30fc\u30af\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\uff0e<br \/>\n<a href=\"https:\/\/tamatoyaku.com\/b\/wp-content\/uploads\/2018\/06\/09.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-436 aligncenter size-full\" src=\"https:\/\/tamatoyaku.com\/b\/wp-content\/uploads\/2018\/06\/09.png\" alt=\"\" width=\"668\" height=\"387\" \/><\/a><br \/>\n\u305d\u306e\u307e\u307eGene&#8230;\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u30b3\u30fc\u30c9\u304c\u751f\u6210\u3055\u308c\u308b\uff0e<br \/>\n\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306b\u3064\u3044\u3066\u306fmain.c\u304b\u3089\u8fbf\u3063\u3066\u3044\u3051\u3070app.c\u5185\u306eAPP_Tasks\u306b\u51e6\u7406\u3092\u8a18\u8ff0\u3059\u308c\u3070\u826f\u3044\u3053\u3068\u304c\u308f\u304b\u308b\uff0e(\u4f59\u8ac7\u3060\u304c\uff0cctrl\u30ad\u30fc\u3092\u62bc\u3057\u306a\u304c\u3089\u95a2\u6570\u540d\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u5b9a\u7fa9\u307e\u3067\u98db\u3079\u308b\uff0e\u4fbf\u5229)<br \/>\n\u4eca\u56de\u306eL\u30c1\u30ab\u306f1\u79d2\u7a0b\u5ea6\u5f85\u3063\u305f\u5f8c\u306b\u70b9\u6ec5\u3092\u7e70\u308a\u8fd4\u3059\u3068\u3044\u3046\u30d1\u30bf\u30fc\u30f3\u3067\u884c\u3046\uff0e<br \/>\n\u70b9\u6ec5\u306e\u305f\u3081\u9069\u5f53\u306adelay_ms\u95a2\u6570\u3092\u4f5c\u6210\u3059\u308b\uff0e\u30eb\u30fc\u30d7\u5185\u306bNop\u306e\u307f\u3092\u4ed5\u8fbc\u3093\u3060\u5834\u5408\uff0cNop\u30fb\u5897\u5206\u30fb\u6bd4\u8f03\u30673\u30af\u30ed\u30c3\u30af\u307b\u3069\u4f7f\u3046\u306f\u305a\uff0e1[ms]\u306f\u52d5\u4f5c\u5468\u6ce2\u6570SYS_CLK_FREQ\u30921000\u3067\u5272\u308a\uff0c\u305d\u308c\u30923\u3067\u5272\u3063\u305f\u56de\u6570\u30eb\u30fc\u30d7\u3059\u308c\u3070\u826f\u3044\u306f\u305a\uff0e\u3068\u3044\u3046\u308f\u3051\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u305f\uff0e<br \/>\n<script src=\"https:\/\/gist.github.com\/pome1618\/1fffd4d022b6068007c9806676da6194.js\"><\/script><br \/>\n\u30d4\u30f3\u306e\u70b9\u6ec5\u306fSYS_PORTS_PinToggle\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\uff0e\u306a\u304a\uff0cSYS_PORTS_Toggle\u95a2\u6570\u3068\u306f\u5225\u7269\u3067\u3042\u308b\uff0e\u79c1\u306f\u3053\u308c\u3067\u30cf\u30de\u3063\u3066\u3068\u3066\u3082\u3064\u3089\u304b\u3063\u305f\uff0e<br \/>\nAPP_Tasks\u95a2\u6570\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u305f\uff0e<br \/>\n<script src=\"https:\/\/gist.github.com\/pome1618\/c5dbba71f3deadde3478c85425ec7f87.js\"><\/script><br \/>\n\u52d5\u4f5c\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u305f\uff0e\u3060\u3044\u3076\u8aa4\u5dee\u306f\u3042\u308b\u304c\uff0c\u3068\u308a\u3042\u3048\u305a\u70b9\u6ec5\u3057\u3066\u3044\u308b\uff0e\u70b9\u6ec5\u306e\u7cbe\u5ea6\u3092\u4e0a\u3052\u305f\u3044\u5834\u5408\u306f\u30bf\u30a4\u30de\u3092\u4f7f\u7528\u3059\u308b\u306e\u304c\u826f\u3044\u304b\u3082\uff0e<br \/>\n<br \/>\n\u73fe\u57289\u6642\u904e\u304e\uff0e\u75b2\u308c\u305f\u306e\u3067\u305d\u308d\u305d\u308d\u5bdd\u305f\u3044\uff0e\u6b21\u306fUSB\u306e\u30ad\u30fc\u30dc\u30fc\u30c9\u3067\u3082\u52d5\u304b\u3057\u305f\u3044\uff0e<br \/>\n\u7d50\u5c4012\u6642\uff0e\u8abf\u3079\u3066\u307f\u308b\u3068USB\u30ad\u30fc\u30dc\u30fc\u30c9\u306e\u30c7\u30e2\u3060\u3051\u306720[kB]\u306f\u30d7\u30ed\u30b0\u30e9\u30e0\u30e1\u30e2\u30ea\u3092\u6d88\u8cbb\u3059\u308b\u3089\u3057\u304f\uff0cPIC32MX210F016B\u3067\u306f\u52d5\u304b\u305b\u306a\u3044\u3053\u3068\u304c\u308f\u304b\u3063\u305f\uff0e\u3068\u308a\u3042\u3048\u305a\u79cb\u6708\u3067PIC32MX270F256B\u3092\u30dd\u30c1\u3063\u305f\uff0e\u6b21\u306f\u30bd\u30d5\u30c8\u3060\u3051\u3067\u3082\u66f8\u3044\u3066\u304a\u3053\u3046\uff0e\u305d\u308c\u304c\u7d42\u308f\u308c\u3070\u5148\u306b\u57fa\u677f\u8a2d\u8a08\u3057\u3066\u3082\u3044\u3044\u3057\uff0e\u3084\u308b\u3053\u3068\u306f\u305f\u304f\u3055\u3093\u3042\u308b\uff0e\u3067\u3082\uff0c\u3044\u307e\u306f\u3064\u304b\u308c\u305f\u306d\u3080\u3044<br \/>\n&nbsp;<br \/>\n\u8ffd\u8a18\uff1a\u3042\u3068\u304b\u3089\u6c17\u3065\u3044\u305f\u3051\u3069\u30bb\u30e9\u30ed\u30c3\u30af\u304c16[MHz]\u3060\u3068\u601d\u3063\u305f\u30894[MHz]\u3060\u3063\u305f\uff0e\u3067\u3082\u70b9\u6ec5\u306f1\u79d2\u3061\u3087\u3044\u3060\u3063\u305f\u3057\uff0c\u3082\u3046\u3088\u304f\u308f\u304b\u3089\u3093\uff0e<\/p>\n","protected":false},"excerpt":{"rendered":"<p>L\u30c1\u30ab\u306b\u4e00\u6669\u304b\u3051\u305f\u96fb\u5b50\u5de5\u4f5c\u521d\u5fc3\u8005\u304c\u671d7\u6642\u306b\u8a18\u4e8b\u3092\u66f8\u304d\u59cb\u3081\u308b\u3088\uff0e<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-426","post","type-post","status-publish","format-standard","hentry","category-4"],"_links":{"self":[{"href":"https:\/\/p-0.me\/b\/wp-json\/wp\/v2\/posts\/426","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/p-0.me\/b\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/p-0.me\/b\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/p-0.me\/b\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/p-0.me\/b\/wp-json\/wp\/v2\/comments?post=426"}],"version-history":[{"count":0,"href":"https:\/\/p-0.me\/b\/wp-json\/wp\/v2\/posts\/426\/revisions"}],"wp:attachment":[{"href":"https:\/\/p-0.me\/b\/wp-json\/wp\/v2\/media?parent=426"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/p-0.me\/b\/wp-json\/wp\/v2\/categories?post=426"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/p-0.me\/b\/wp-json\/wp\/v2\/tags?post=426"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}