{"id":4616,"date":"2015-07-03T00:01:33","date_gmt":"2015-07-02T15:01:33","guid":{"rendered":"http:\/\/smile-dental-clinic.info\/wordpress\/?p=4616"},"modified":"2017-03-10T11:44:28","modified_gmt":"2017-03-10T02:44:28","slug":"%e3%83%87%e3%82%a2%e3%82%b4%e3%80%80%e3%83%9f%e3%83%ac%e3%83%8b%e3%82%a2%e3%83%a0%e3%83%95%e3%82%a1%e3%83%ab%e3%82%b3%e3%83%b3%e3%80%80%e3%81%9d%e3%81%ae%ef%bc%95%e3%80%80%e3%83%a9%e3%83%b3%e3%83%80","status":"publish","type":"post","link":"https:\/\/smile-dental-clinic.info\/wordpress\/?p=4616","title":{"rendered":"\u30c7\u30a2\u30b4\u3000\u30df\u30ec\u30cb\u30a2\u30e0\u30d5\u30a1\u30eb\u30b3\u30f3\u3000\u305d\u306e\uff15\u3000\u30e9\u30f3\u30c0\u30e0\u70b9\u706f"},"content":{"rendered":"<p>\u524d\u56devivid\u3055\u3093\u306b\u52a9\u8a00\u3092\u9802\u304d\u3001\uff21\uff36\uff32\u306e\u30e9\u30f3\u30c0\u30e0\u70b9\u706f\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u4f5c\u308a\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"https:\/\/picasaweb.google.com\/117774436743033974391\/Blog5#6166064804761198786\"><img decoding=\"async\" loading=\"lazy\" class=\"pie-img\" style=\"margin: 10px 10px 10px 10px;\" src=\"https:\/\/i0.wp.com\/lh3.googleusercontent.com\/-4IVp5_aNUrM\/VZJDRU3UYMI\/AAAAAAABEZY\/BAPEUOBBQi8\/2015_%2525206_30_16_20.jpg?resize=576%2C432\" alt=\"2015_ 6_30_16_20.jpg\" width=\"576\" height=\"432\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p><!--more--><\/p>\n<p>\u307e\u3063\u3001\u30e9\u30f3\u30c0\u30e0\u3068\u8a00\u3063\u3066\u3082\u7591\u4f3c\u4e71\u6570\u306a\u306e\u3067\u3001\u30b9\u30a4\u30c3\u30c1\u3092\u5165\u308c\u308b\u3068\u6bce\u56de\u540c\u3058\u9806\u756a\u3067\u30e9\u30f3\u30c0\u30e0\u306b\u70b9\u706f\u3057\u307e\u3059\u3002<\/p>\n<p>\u306a\u3093\u304b\u308f\u304b\u308a\u306b\u304f\u3044\u6587\u7ae0\u3067\u3059\u306d\uff57<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001\uff11\uff15\uff0c\uff13\uff0c\uff14\uff12\uff0c\uff13\uff14\uff0c\uff11\uff11\u30fb\u30fb\u30fb\u30fb\u3066\u306a\u9806\u756a\u3067\u4e71\u6570\u304c\u751f\u307e\u308c\u308b\u3068\u3059\u308b\u3068\u3001\u30b9\u30a4\u30c3\u30c1\u3092\u518d\u5ea6\u5165\u308c\u76f4\u3057\u3066\u3082\uff11\uff15\uff0c\uff13\uff0c\uff14\uff12\uff0c\uff13\uff14\uff0c\uff11\uff11\u3001\u30fb\u30fb\u30fb\u30fb\u30fb\u3066\u306a\u611f\u3058\u3067\u540c\u3058\u4e71\u6570\u304c\u751f\u6210\u3055\u308c\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u300c\u7dda\u5f62\u5408\u540c\u6cd5\u300d\u3068\u3044\u3046\u5f0f\u3092\u4f7f\u3044\u307e\u3057\u305f\u3002\u5f0f\u306f\u3000\uff5bXn+1=(Xn*a+b)\/c\uff5d\u3066\u306a\u7269\u3089\u3057\u3044\u3067\u3059\u3002\u79c1\u3082\u3088\u304f\u7406\u89e3\u3067\u304d\u3066\u3044\u307e\u305b\u3093\uff57<\/p>\n<p>\u3067\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3053\u3093\u306a\u611f\u3058\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\/\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>#include &lt;avr\/io.h&gt;<\/p>\n<p>void wait(uint16_t w){while(w&#8211;){volatile uint16_t i=1;while(i&#8211;);}}<\/p>\n<p>int a=10,s=10,h;<\/p>\n<p>\/\/&#8212;&#8212;&#8212; timer &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>void ta(){for(h=0;h&lt;a;h++){wait(10000);}}<\/p>\n<p>void t5(){for(h=0;h&lt;12;h++){wait(10000);}}<\/p>\n<p>void t4(){for(h=0;h&lt;10;h++){wait(10000);}}<\/p>\n<p>void t3(){for(h=0;h&lt;8;h++){wait(10000);}}<\/p>\n<p>void t2(){for(h=0;h&lt;6;h++){wait(10000);}}<\/p>\n<p>void t1(){for(h=0;h&lt;4;h++){wait(10000);}}<\/p>\n<p>\/\/&#8212;&#8212;&#8212;-Randam&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>void myRand(){<\/p>\n<p>a=(a*1812433253+12345)%11+3;<\/p>\n<p>s=(s*1812433253+12345)\/128;<\/p>\n<p>}<\/p>\n<p>\/\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>int main(void)<\/p>\n<p>{<\/p>\n<p>DDRB = 0b00011111;<\/p>\n<p>PORTB = 0b00011111;<\/p>\n<p>t5();<\/p>\n<p>while(1) {<\/p>\n<p>myRand();<\/p>\n<p>PORTB =s;<\/p>\n<p>ta();<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<div>\/\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/div>\n<p>timer\u306e\u90e8\u5206\u306b\u306f\u5fc5\u8981\u306a\u3044\u95a2\u6570\u3082\u5165\u3063\u3066\u307e\u3059\u3002\u3055\u3089\u306b\uff30\uff2f\uff32\uff34\uff22\u306b\u4e71\u6570\uff53\u3092\u76f4\u63a5\u653e\u308a\u8fbc\u3080\u4e71\u66b4\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3059\u304c\uff57\u52d5\u304d\u307e\u3059\uff57<\/p>\n<p>\u70b9\u6ec5\u3059\u308bLED\u3068\u70b9\u6ec5\u9593\u9694\u304c\u30e9\u30f3\u30c0\u30e0\u306b\u306a\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>myRand()\u5185\u306e\u6570\u5b57\u306f\u9069\u5f53\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u3092\u52d5\u304b\u3059\u3068\u3053\u3093\u306a\u611f\u3058\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><iframe loading=\"lazy\" width=\"750\" height=\"422\" src=\"https:\/\/www.youtube.com\/embed\/1Lc1U7wTJPI?feature=oembed&amp;wmode=opaque\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p>\u4e71\u6570\u3067\u52d5\u4f5c\u3057\u3066\u3044\u308b\u306e\u3067\u5b8c\u5168\u306b\u7121\u4f5c\u70ba\u306b\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u5149\u3063\u3066\u3044\u308bLED\u304c\uff11\u3064\u3060\u3051\u3068\u304b\u7d50\u69cb\u3042\u308a\u307e\u3059\u3002\u3067\u3001\u6700\u3082\u554f\u984c\u306a\u306e\u304c\u5168\u3066\u306eLED\u304c\u6d88\u3048\u3066\u3044\u308b\uff08\u52d5\u753b\u306e\uff15\uff13\u79d2\u3042\u305f\u308a\uff09 \u6642\u3082\u3042\u308b\u3093\u3067\u3059\u3088\u306d\u30fb\u30fb\u30fb\u30fb\u3002<\/p>\n<p>\u3055\u3089\u306b\u6642\u9593\u306e\u30e9\u30f3\u30c0\u30e0\u611f\u3082\u8584\u3044\u3088\u3046\u306aw\u2190\u30b3\u30ec\u306f\u79c1\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u80fd\u529b\u306e\u7121\u3055\u304c\u539f\u56e0\u3067\u3059\u304cw<\/p>\n<p>\u4eca\u56de\u306e\u96fb\u98fe\u306b\u306f\u3080\u3057\u308d\u524d\u56de\u81ea\u5206\u3067\u30e9\u30f3\u30c0\u30e0\u307d\u304f\u66f8\u3044\u3066\u3044\u305f\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3055\u308c\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u65b9\u304c\u3044\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u308c\u3068\u3001\u30d1\u30cd\u30eb\u5168\u4f53\u306e\u70b9\u6ec5\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u304c\u4e00\u7dd2\u3068\u3044\u3046\u306e\u3082\u9762\u767d\u304f\u306a\u3044\u306e\u3067\u3001\u30bf\u30a4\u30df\u30f3\u30b0\u3092\u5909\u66f4\u3057\u305fATtiny13A\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\uff21\uff36\uff32\u3092\u307e\u3068\u3081\u3066ATmega168P\u3068\u304b\u306b\u3057\u306a\u3044\u306e\u306f\u30d7\u30ed\u30b0\u30e9\u30e0\u8003\u3048\u308b\u306e\u304c\u9762\u5012\u3060\u304b\u3089\u3067\u3059\uff57\u3000ATtiny13A\u306a\u3089\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u4f7f\u3044\u307e\u308f\u3057\u3067\u304d\u308b\u304b\u3089\u3001\u6570\u3067\u52dd\u8ca0\uff57<\/p>\n<p>\u7d50\u5c40\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u4ee5\u524d\u306e\u30e9\u30f3\u30c0\u30e0\u307d\u304f\u66f8\u3044\u3066\u3042\u3063\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u65b9\u3092\u4f7f\u3044\uff11\u3064\u306eAVR\u306b\u4ed8\u304dLED\uff13\u3064\u3067\u3001\u30bf\u30a4\u30df\u30f3\u30b0\u306e\u9055\u3046AVR\uff12\u3064\u3001LED\u5408\u8a08\uff16\u3064\u3067\u70b9\u706f\u3055\u305b\u3066\u30d1\u30cd\u30eb\u3054\u3068\u306e\u52d5\u4f5c\u306e\u9055\u3044\u3092\u8868\u73fe\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><iframe loading=\"lazy\" width=\"750\" height=\"422\" src=\"https:\/\/www.youtube.com\/embed\/GSddu79YlSM?feature=oembed&amp;wmode=opaque\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p>\u3053\u306e\u624b\u6cd5\u3067\u5168\u4f53\u306e\u30e9\u30f3\u30c0\u30e0\u306a\u70b9\u706f\u3092\u8868\u73fe\u3057\u3088\u3046\u304b\u306a\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56devivid\u3055\u3093\u306b\u52a9\u8a00\u3092\u9802\u304d\u3001\uff21\uff36\uff32\u306e\u30e9\u30f3\u30c0\u30e0\u70b9\u706f\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u4f5c\u308a\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[242,241,207,176],"tags":[117,220,199,225],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/smile-dental-clinic.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/4616"}],"collection":[{"href":"https:\/\/smile-dental-clinic.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smile-dental-clinic.info\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smile-dental-clinic.info\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/smile-dental-clinic.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4616"}],"version-history":[{"count":20,"href":"https:\/\/smile-dental-clinic.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/4616\/revisions"}],"predecessor-version":[{"id":6192,"href":"https:\/\/smile-dental-clinic.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/4616\/revisions\/6192"}],"wp:attachment":[{"href":"https:\/\/smile-dental-clinic.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4616"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smile-dental-clinic.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4616"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smile-dental-clinic.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4616"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}