{"id":958,"date":"2009-05-23T11:18:26","date_gmt":"2009-05-23T02:18:26","guid":{"rendered":"http:\/\/physicom.digick.jp\/?p=958"},"modified":"2009-09-06T22:07:58","modified_gmt":"2009-09-06T13:07:58","slug":"pic18f2550%e3%81%ae%e3%82%af%e3%83%ad%e3%83%83%e3%82%af","status":"publish","type":"post","link":"http:\/\/physicom.digick.jp\/?p=958","title":{"rendered":"PIC18F2550\u306e\u30af\u30ed\u30c3\u30af"},"content":{"rendered":"<p>\u300c<a href=\"http:\/\/physicom.digick.jp\/?p=946\" target=\"_blank\">PIC18F2550\u3068GT-720F(GPS)\u3092\u63a5\u7d9a\u3059\u308b\uff08\u30bd\u30d5\u30c8\u7de8\uff09<\/a>\u300d\u3067Config Bits\u3092\u5909\u66f4\u3057\u306620MHz\u3067\u52d5\u4f5c\u3055\u305b\u308b\u306e\u304c\u3001\u3069\u3046\u3057\u3066\u3082\u7d0d\u5f97\u3044\u304b\u306a\u304b\u3063\u305f\u306e\u3067\u3001USB\u306e\u672c\u3082\u8abf\u3079\u305f\u3089\u540c\u3058PIC18F\u30b7\u30ea\u30fc\u30ba\u3067\u3082USB\u5185\u8535\u306e\u3082\u306e\u306f\u30af\u30ed\u30c3\u30af\u56de\u8def\u90e8\u5206\u304c\u3061\u3087\u3063\u3068\u9055\u3046\u3053\u3068\u304c\u66f8\u3044\u3066\u3042\u3063\u305f\u3002<\/p>\n<p><div id=\"attachment_959\" style=\"width: 293px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/physicom.digick.jp\/wp-content\/uploads\/2009\/05\/pic18f2550-clock.gif\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-959\" src=\"http:\/\/physicom.digick.jp\/wp-content\/uploads\/2009\/05\/pic18f2550-clock-283x300.gif\" alt=\"PIC18F2550\u306e\u30af\u30ed\u30c3\u30af\" title=\"PIC18F2550\u306e\u30af\u30ed\u30c3\u30af\" width=\"283\" height=\"300\" class=\"size-medium wp-image-959\" srcset=\"http:\/\/physicom.digick.jp\/wp-content\/uploads\/2009\/05\/pic18f2550-clock-283x300.gif 283w, http:\/\/physicom.digick.jp\/wp-content\/uploads\/2009\/05\/pic18f2550-clock.gif 707w\" sizes=\"auto, (max-width: 283px) 100vw, 283px\" \/><\/a><p id=\"caption-attachment-959\" class=\"wp-caption-text\">PIC18F2550\u306e\u30af\u30ed\u30c3\u30af<\/p><\/div><br \/>\n\u3053\u306e\u56f3\u306fPIC18F2550\u306e\u30c7\u30fc\u30bf\u30b7\u30fc\u30c8\u306b\u3042\u3063\u305f\u30af\u30ed\u30c3\u30af\u56de\u8def\u306e\u56f3\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u304c\u3044\u3064\u3082\u6307\u5b9a\u3057\u3066\u3044\u308bConfig Bits\u306e\u4e2d\u306e\u95a2\u9023\u3059\u308bConfig Bits\u3067\u3059\u3002<\/p>\n<pre>#pragma config FOSC = HSPLL_HS\r\n#pragma config PLLDIV = 5\r\n#pragma config CPUDIV = OSC1_PLL2\r\n#pragma config USBDIV = 2\r\n<\/pre>\n<p>20MHz\u306e\u30bb\u30e9\u30ed\u30c3\u30af\u3067 <code>FOSC = HSPLL_HS<\/code> \u3092\u6307\u5b9a\u3059\u308b\u3068 <code>PLLDIV = 5<\/code> \u3067\u6307\u5b9a\u3057\u3066\u3044\u308b5\u3067\u5272\u3089\u308c\u3066 20MHz \/ 5 = 4MHz \u304c96MHz PLL\u306b\u5165\u308b\u3002<br \/>\n\u3067\u300196MHz PLL\u304b\u3089\u51fa\u305f\u30e9\u30a4\u30f3\u306e\u4e0b\u306b\u5206\u5c90\u3059\u308b\u30e9\u30a4\u30f3\u304c\u5165\u308bPLL\u3067 <code>CPUDIV = OSC1_PLL2<\/code> \u304c\u00f72\u3092\u6307\u5b9a\u3057\u3066\u3044\u3066 CPU \u306f96MHz \/ 2 = 48MHz\u306e\u30af\u30ed\u30c3\u30af\u3067\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n<p>\u3060\u304b\u3089\u8868\u306b\u3042\u308b\u6570\u5b57\u3058\u3083\u3060\u3081\u3067\u300140MHz\u306e2\u5272\u308a\u5897\u3057\u306e\u5024\u3092\u6307\u5b9a\u3059\u308c\u3070OK\u306a\u306f\u305a\u3002<\/p>\n<p>\u3067\u3082\u30019600bps\u3092\u6307\u5b9a\u3059\u308b\u306b\u306f 255\u00d71.2 = 306 \u3068\u306a\u3063\u30661\u30d0\u30a4\u30c8\u306b\u53ce\u307e\u3089\u306a\u3044\u3002<br \/>\n\u3053\u3046\u306a\u308b\u3068\u300cGPS\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u306619200bps\u3067\u901a\u4fe1\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3057\u304b\u306a\u3044\u300d\u3068\u3001GT-720F\u306e\u8a2d\u5b9a\u5909\u66f4\u306e\u65b9\u6cd5\u3092\u8abf\u3079\u306619200bps\u306b\u5909\u66f4\u3057\u305f\u3002<br \/>\n\uff08\u30b0\u30b0\u308b\u3068\u51fa\u3066\u304f\u308b\u5730\u7403\u306e\u7d75\u304c\u3042\u308b\u30a2\u30d7\u30ea\u3078\u306e\u30ea\u30f3\u30af\u304c\u7121\u304f\u306a\u3063\u3066\u3044\u308b\u3051\u3069\u3001\u30d5\u30a1\u30a4\u30eb\u306f\u6b8b\u3063\u3066\u3044\u308b\u306e\u3067\u3001 http:\/\/canmore.com.tw\/file\/webdata\/d\/D00000052_00.rar \u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3057\u305f\u3002\uff09<\/p>\n<p>\u3067\u3001\u8a08\u7b97\u3059\u308b\u3068129\u00d71.2 = 154.8\u2252155 \u3068\u306a\u3063\u3066\u3001 <code>USART_BRGH_HIGH, 155<\/code> \u3092\u6307\u5b9a\u3057\u305f\u3089\u3046\u307e\u304f\u52d5\u304d\u307e\u3057\u305f\u3002<br \/>\n\u3053\u308c\u3067\u7d0d\u5f97\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u300cPIC18F2550\u3068GT-720F(GPS)\u3092\u63a5\u7d9a\u3059\u308b\uff08\u30bd\u30d5\u30c8\u7de8\uff09\u300d\u3067Config Bits\u3092\u5909\u66f4\u3057\u306620MHz\u3067\u52d5\u4f5c\u3055\u305b\u308b\u306e\u304c\u3001\u3069\u3046\u3057\u3066\u3082\u7d0d\u5f97\u3044\u304b\u306a\u304b\u3063\u305f\u306e\u3067\u3001USB\u306e\u672c\u3082\u8abf\u3079\u305f\u3089\u540c\u3058PIC18F\u30b7\u30ea\u30fc\u30ba\u3067\u3082USB &hellip; <a href=\"http:\/\/physicom.digick.jp\/?p=958\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[8,119],"tags":[157,64,175,214],"class_list":["post-958","post","type-post","status-publish","format-standard","hentry","category-pic","category-circuit","tag-pic18f2550","tag-usb","tag-175","tag-sourcecode"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/physicom.digick.jp\/index.php?rest_route=\/wp\/v2\/posts\/958","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/physicom.digick.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/physicom.digick.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/physicom.digick.jp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/physicom.digick.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=958"}],"version-history":[{"count":7,"href":"http:\/\/physicom.digick.jp\/index.php?rest_route=\/wp\/v2\/posts\/958\/revisions"}],"predecessor-version":[{"id":1361,"href":"http:\/\/physicom.digick.jp\/index.php?rest_route=\/wp\/v2\/posts\/958\/revisions\/1361"}],"wp:attachment":[{"href":"http:\/\/physicom.digick.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=958"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/physicom.digick.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=958"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/physicom.digick.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=958"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}