{"id":2109,"date":"2016-09-11T17:13:00","date_gmt":"2016-09-11T08:13:00","guid":{"rendered":"http:\/\/norisuke.servehttp.com\/wordpress\/?p=2109"},"modified":"2022-07-12T10:44:12","modified_gmt":"2022-07-12T01:44:12","slug":"%e7%a5%9d%ef%bc%81%e3%80%8e%e6%b5%81%e3%82%8c%e3%82%8b%e3%82%a6%e3%82%a4%e3%83%b3%e3%82%ab%e3%83%bc%e3%80%8f%e8%a7%a3%e7%a6%81%ef%bc%81%e3%81%a8%e3%81%84%e3%81%86%e3%81%93%e3%81%a8%e3%81%aa%e3%81%ae","status":"publish","type":"post","link":"https:\/\/www.norisuke.click\/wordpress\/?p=2109","title":{"rendered":"\u795d\uff01\u300e\u6d41\u308c\u308b\u30a6\u30a4\u30f3\u30ab\u30fc\u300f\u89e3\u7981\uff01\u3068\u3044\u3046\u3053\u3068\u306a\u306e\u3067\u3061\u3087\u3063\u3068\u4f5c\u3063\u3066\u307f\u308b\uff01\uff08\u3068\u308a\u3042\u3048\u305a\u30d6\u30ec\u30fc\u30ad\u30e9\u30f3\u30d7\u3092\u6d41\u3057\u3066\u307f\u308b\u5b9f\u9a13\u7de8\uff09"},"content":{"rendered":"<p>\u4e45\u3005\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u30cd\u30bf\u3067\u3059\u30fb\u30fb\u30fb<\/p>\n<p>\u30af\u30eb\u30de\u306e\u30a6\u30a4\u30f3\u30ab\u30fc\u3063\u3066\u3001\u3061\u3087\u3063\u3068\u524d\u307e\u3067\u306f\u3001\u6d41\u308c\u308b\u3088\u3046\u306a\u70b9\u706f\u65b9\u5f0f\u306e\u3082\u306e\u306f\u30c0\u30e1\u3060\u3063\u305f\u3051\u3069\u3001Audi\u3084Mercedes\u306a\u3093\u304b\u306e\u6b27\u5dde\u8eca\u3067\u6a19\u6e96\u88c5\u5099\u5316\u3055\u308c\u305f\u3082\u306e\u304c\u51fa\u3066\u304d\u305f\u3002<\/p>\n<p>\u3053\u308c\u3089\u306e\u6b27\u5dde\u8eca\u30e1\u30fc\u30ab\u30fc\u306f\u3001\u5927\u306e\u304a\u5f97\u610f\u69d8\u3067\u3042\u308b\u65e5\u672c\u5411\u3051\u306b\u3082\u3001\u540c\u3058\u4ed5\u69d8\u3067\u8ca9\u58f2\u3057\u305f\u3044\u3068\u3044\u3046\u601d\u3044\u304c\u3042\u3063\u305f\u306e\u304b\u306a\u304b\u3063\u305f\u306e\u304b\u306f\u77e5\u3089\u3093\u304c\u3001\u7d50\u5c40\u306e\u3068\u3053\u308d\u3001\u56fd\u571f\u4ea4\u901a\u7701\u3055\u3093\u3082\u5916\u5727\u306b\u8ca0\u3051\u3066\u4e00\u90e8\u8a31\u53ef\u3059\u308b\u3053\u3068\u306b\u306a\u3063\u305f\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u56fd\u7523\u30e1\u30fc\u30ab\u30fc\u3082\u65e9\u901f\u306e\u3068\u3053\u308d\u3001\u30ec\u30af\u30b5\u30b9\u30d6\u30e9\u30f3\u30c9\u306e\u30af\u30eb\u30de\u306e\u4e00\u90e8\u306b\u306f\u3082\u3046\u9069\u7528\u3055\u308c\u3066\u308b\u3082\u3093\u306d\u3002\u3002\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5c0f\u751f\u306e\u5c0f\u5b66\u6821\u4e2d\u5b66\u6821\u6642\u4ee3\u304f\u3089\u3044\u306e40\u5e74\u524d\u304f\u3089\u3044\u306b\u306f\u3001\u81ea\u8ee2\u8eca\u306e\u30d5\u30e9\u30c3\u30b7\u30e3\u30fc\u3067\u7d50\u69cb\u306f\u3084\u3063\u305f\u3088\u3046\u306a\u30e2\u30f3\u3084\u306a\u3002\u3002\u3002<\/p>\n<p>\u3053\u3093\u306a\u306e\u3053\u3093\u306a\u306e\uff01\u3042\u3063\u305f\u3042\u3063\u305f\uff01\uff01\uff01<\/p>\n<p>&nbsp;<\/p>\n<p>\u3010<a href=\"https:\/\/www.google.co.jp\/search?q=%E8%87%AA%E8%BB%A2%E8%BB%8A+%E3%83%95%E3%83%A9%E3%83%83%E3%82%B7%E3%83%A3%E3%83%BC&amp;espv=2&amp;biw=1920&amp;bih=955&amp;source=lnms&amp;tbm=isch&amp;sa=X&amp;ved=0ahUKEwi73JOrzobPAhXDF5QKHcmkBGQQ_AUIBigB\" target=\"_blank\" rel=\"noopener\">\uff11\uff19\uff17\uff10\u5e74\u4ee3\u306e\u30d5\u30e9\u30c3\u30b7\u30e3\u30fc\u4ed8\u306e\u81ea\u8ee2\u8eca\uff01<\/a>\u3011<\/p>\n<p>&nbsp;<\/p>\n<p>\u4eca\u3001\u898b\u308c\u3070\u7d50\u69cb\u30b1\u30d0\u30b1\u30d0\u30b7\u30a4\u3002\u3002\u3002<\/p>\n<p>\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u306a\u3093\u304b\u304c\u307e\u3060\u8d85\u9ad8\u4fa1\u306a\u3082\u306e\u3067\u3042\u3063\u305f\u6642\u4ee3\u306e\u3082\u306e\u3084\u3063\u305f\u3084\u308d\u3046\u304b\u3089\u3001\u96fb\u5b50\u56de\u8def\u7684\u306b\u306f\u307b\u3068\u3093\u3069\u30c8\u30e9\u30f3\u30b8\u30b9\u30bf\u30fc\u3068\u30ea\u30ec\u30fc\u3067\u69cb\u6210\u3057\u3066\u305f\u3093\u3084\u308d\u304b\u3002\u3002\u3002<\/p>\n<p>\u56de\u8def\u3092\u898b\u3066\u307f\u305f\u3044\u30e2\u30f3\u3002\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3068\u3066\u3082\u30ab\u30c3\u30b3\u3044\u3044\uff01\u3068\u306f\u304a\u4e16\u8f9e\u306b\u3082\u3044\u3048\u3093\u308f\u306a\u3002\u3002\u3002<\/p>\n<p>\u3067\u3082\u3001\u5f53\u6642\u306f\u65ac\u65b0\u3067\u304b\u3063\u3053\u3048\u3048\u3068\u601d\u3063\u3066\u305f\u308f\u3051\u3084\u3057\u3001\u305d\u306e\u3053\u308d\u306e\u61a7\u308c\u3092\u4eca\u306b\u306a\u3063\u3066\u3001\u30af\u30eb\u30de\u3067\u518d\u73fe\u3055\u305b\u3066\u307f\u3061\u3083\u3044\u307e\u3057\u3087\u3046\uff01<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u4eca\u3084\u6642\u4ee3\u306f\u9032\u5316\u3057\u3066\u3001\u683c\u5b89\u306b\u30de\u30a4\u30b3\u30f3\u304c\u4f7f\u3048\u308b\u6642\u4ee3\u3067\u3082\u3042\u308a\u3001\u4eca\u56de\u306f\u3001\u30a6\u30a4\u30f3\u30ab\u30fc\u3068\u3068\u3082\u306b\u3042\u308b\u30d6\u30ec\u30fc\u30ad\u30e9\u30f3\u30d7\u3082\u6d41\u3057\u3061\u3083\u304a\u3046\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u3068\u308a\u3042\u3048\u305a\u30d6\u30ec\u30fc\u30ad\u30e9\u30f3\u30d7\u3092\u6d41\u3057\u3066\u307f\u308b\u305f\u3081\u306e\u8a66\u4f5c\u3092\u3084\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3002\u3002<\/p>\n<p>\u307e\u3041\u304b\u3063\u3053\u3044\u3044\u304b\u60aa\u3044\u304b\u306f\u3001\u4f5c\u3063\u3066\u304b\u3089\u8003\u3048\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u304b\u3063\u3053\u60aa\u304b\u3063\u305f\u3089\u4e0d\u63a1\u7528\u3068\u3044\u3046\u3053\u3068\u306b\u3057\u307e\u3057\u3087\u3046\u304b\u306d\u3002\u3002\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u305d\u3046\u3044\u3046\u3053\u3068\u3067\u3001\u3068\u308a\u3042\u3048\u305a\u3069\u3046\u3084\u3063\u3066\u4f5c\u308b\u304b\uff01<\/p>\n<p>\u4e00\u5fdc\u306f\u5c0f\u751f\u306f\u3001\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u7aef\u304f\u308c\u3067\u3082\u3042\u308b\u306e\u3067\u3001\u4eca\u56de\u306f\u8a66\u4f5c\u3068\u3044\u3046\u3053\u3068\u3067\u3082\u3042\u308a\u3001PIC\u3092\u4f7f\u3063\u3066LED\u3092\u5236\u5fa1\u3059\u308b\u65b9\u6cd5\u3068\u3057\u307e\u3057\u3087\u3046\u304b\u306d\u3002\u3002\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>PIC\u3063\u3066\u306e\u306f\u3001Microchip\u793e\u304b\u3089\u8ca9\u58f2\u3055\u308c\u3066\u3044\u308b\u30de\u30a4\u30b3\u30f3\u30c1\u30c3\u30d7\u3067\u3001\u3053\u306e\u30c1\u30c3\u30d7\u306e\u4e2d\u306b\u30d1\u30bd\u30b3\u30f3\u3068\u540c\u3058\u3088\u3046\u306aCPU\u3084\u30e1\u30e2\u30ea\u306a\u3093\u304b\u304c\u5165\u3063\u3066\u3066\u3001\u3053\u306e\u4e2d\u306bC\u8a00\u8a9e\u3084\u30a2\u30bb\u30f3\u30d6\u30e9\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u3063\u3066\u66f8\u304d\u8fbc\u3093\u3067\u52d5\u4f5c\u3055\u305b\u308b\u3063\u3066\u3082\u306e\u3002\u3002\u3002<\/p>\n<p>\u8a73\u3057\u304f\u306f\u3001PIC\u30d5\u30ea\u30fc\u30ab\u30fc\u304c\u3044\u308d\u3044\u308d\u3068\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u308b\u306e\u3067\u305d\u3063\u3061\u3092\u898b\u3066\u307f\u3066\u3061\u3087\u3046\u3060\u3044\uff01<\/p>\n<p>&nbsp;<\/p>\n<p>\u3010<a href=\"https:\/\/www.google.co.jp\/webhp?sourceid=chrome-instant&amp;ion=1&amp;espv=2&amp;ie=UTF-8#q=PIC+%E5%85%A5%E9%96%80\" target=\"_blank\" rel=\"noopener\">PIC \u5165\u9580<\/a>\u3011<\/p>\n<p>&nbsp;<\/p>\n<p>PIC\u306f\u79cb\u6708\u96fb\u5b50\u3067\u7c21\u5358\u306b\u624b\u306b\u5165\u308a\u307e\u3059\u3093\u3067\u3001\u3053\u306e\u4e2d\u3067\u4eca\u56de\u306f\u3001PIC16F628A\u3068\u3044\u3046\u304a\u624b\u8efd\u306b\u4f7f\u3048\u308b\u77f3\u3092\u63a1\u7528\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\uff08\u6642\u9593\u306b\u4f59\u88d5\u304c\u3042\u308c\u3070\u3001\u4ee5\u4e0b\u306e\u30b5\u30a4\u30c8\u304b\u3089\u8abf\u9054\u3059\u308b\u3068\u8d85\u6fc0\u5b89\u3067\u8abf\u9054\u3067\u304d\u307e\u3059\u3088\u30fc\u3000\u3082\u3046\u65e5\u672c\u306e\u4fa1\u683c\u3068\u306f\u6bd4\u8f03\u306b\u306a\u3089\u306a\u3044\u307b\u3069\u306e\u4fa1\u683c\u3067\u3059\u3088\u30fc\uff09<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=2TA0EM+2JORXU+3KTI+61RI9\" target=\"_blank\" rel=\"noopener\"><br \/>\n<img decoding=\"async\" src=\"https:\/\/www21.a8.net\/svt\/bgt?aid=170108302154&amp;wid=001&amp;eno=01&amp;mid=s00000016695001016000&amp;mc=1\" alt=\"\" width=\"468\" height=\"60\" border=\"0\" \/><\/a><br \/>\n<img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www19.a8.net\/0.gif?resize=1%2C1&#038;ssl=1\" alt=\"\" width=\"1\" height=\"1\" border=\"0\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u4eca\u56de\u306e\u4ed5\u69d8\u306f\u3002\u3002\u3002<\/p>\n<table style=\"height: 109px;\" border=\"0\" width=\"714\">\n<tbody>\n<tr>\n<td>PIC\uff08\u30de\u30a4\u30b3\u30f3\u30c1\u30c3\u30d7\uff09<\/td>\n<td>PIC16F628A<\/td>\n<td>1\u500b<\/td>\n<\/tr>\n<tr>\n<td>\u70b9\u706f\u3055\u305b\u308bLED\u6570<\/td>\n<td>32\u5217\u00d72\u884c<\/td>\n<td>32\u500b<\/td>\n<\/tr>\n<tr>\n<td>32\u5217\u306eLED\u3092\u5236\u5fa1\u306e\u305f\u3081\u306e\u30b7\u30d5\u30c8\u30ec\u30b8\u30b9\u30bf<\/td>\n<td>74HC595<\/td>\n<td>4\u500b<\/td>\n<\/tr>\n<tr>\n<td>\u96fb\u6d41\u78ba\u4fdd\u306e\u305f\u3081\u306e\u30c8\u30e9\u30f3\u30b8\u30b9\u30bf\uff08\u30a2\u30ec\u30a4\uff09<\/td>\n<td>TD62083AP<\/td>\n<td>4\u500b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u306e\u90e8\u54c1\u3067\u4f5c\u3063\u3061\u3083\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u306f\u3001PIC\u3067\u52d5\u304b\u3059\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u308a\u307e\u3059\u3002\u3002\u3002<\/p>\n<p>32\u5217\u3082\u3042\u308b\u306e\u3067\u7d50\u69cb\u3044\u308d\u3044\u308d\u306a\u30d1\u30bf\u30fc\u30f3\u3092\u4f5c\u308c\u305d\u3046\u3067\u3059\u3002\u3002\u3002<\/p>\n<p><a href=\"http:\/\/www.microchip.com\/ja\/\" target=\"_blank\" rel=\"noopener\">Microchip<\/a>\u793e\u306ePIC\u958b\u767a\u74b0\u5883\uff08<a href=\"http:\/\/www.microchip.com\/ja\/mplab\/mplab-x-ide\" target=\"_blank\" rel=\"noopener\">MPLABX<\/a>)\u3084C\u8a00\u8a9e\u30b3\u30f3\u30d1\u30a4\u30e9\u306f\u3001\u307b\u3068\u3093\u3069\u304c\u30bf\u30c0\u3067\u63d0\u4f9b\u3057\u3066\u304f\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u7d20\u4eba\u304c\u4f5c\u308b\u3088\u3046\u306a\u3082\u306e\u3067\u3042\u308c\u3070\u3053\u308c\u3067\u5341\u5206\u3067\u3059\uff01<\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3001\u6614\u53d6\u3063\u305f\u6775\u67c4\u306e\u99b4\u67d3\u307f\u306eC\u8a00\u8a9e\u3092\u4f7f\u3063\u3066\u66f8\u304f\u3053\u3068\u306b\u3002\u3002\u3002<\/p>\n<p>[html]<br \/>\n#include &lt;xc.h&gt;<\/p>\n<p>#pragma config BOREN = OFF<br \/>\n#pragma config CPD = OFF<br \/>\n#pragma config FOSC = INTOSCIO<br \/>\n#pragma config MCLRE = OFF<br \/>\n#pragma config WDTE = OFF<br \/>\n#pragma config CP = OFF<br \/>\n#pragma config LVP = OFF<br \/>\n#pragma config PWRTE = ON<\/p>\n<p>#define _XTAL_FREQ 16000000<br \/>\n#define SI RA0 \/\/ \u30c7\u30fc\u30bf\u4fe1\u53f7\u51fa\u529b\u30d4\u30f3<br \/>\n#define SCK RA1 \/\/ \u30af\u30ed\u30c3\u30af\u52d5\u4f5c\u51fa\u529b\u30d4\u30f3<br \/>\n#define RCK RA2 \/\/ \u30e9\u30c3\u30c1\u4fe1\u53f7\u51fa\u529b\u30d4\u30f3<\/p>\n<p>#define LightCount 32<\/p>\n<p>#define Blank_Out_Interval 30<br \/>\n#define Full_Flash_Interval 30<br \/>\n#define Center_Diffusion_Interval_1 10<br \/>\n#define Center_Diffusion_Interval_2 10<br \/>\n#define Center_Block_Diffusion_Interval 30<br \/>\n#define Stack_Block_Interval 10<\/p>\n<p>void shiftOut(int bitOrder, unsigned long value){<br \/>\n\/\/ bitOrder: 0=LSBFIRST 1=MSBFIRST<br \/>\nint x,i;<br \/>\nunsigned long up_data;<br \/>\nunsigned long lo_data;<br \/>\nup_data = value&gt;&gt;(LightCount\/2);<br \/>\nlo_data = value &lt;&lt;(LightCount\/2); lo_data = lo_data &gt;&gt;(LightCount\/2);<\/p>\n<p>for (i=0;i&lt;LightCount;i++){<br \/>\nSCK=0;<br \/>\nif (bitOrder==0) {x=i;}<br \/>\nelse{x=LightCount-1-i;}<br \/>\nif(x&lt;16) {<br \/>\nif(lo_data&amp;(1&lt;&lt;x)){x=1;}<br \/>\nelse{x=0;}<br \/>\n}else{<br \/>\nif(up_data&amp;(1&lt;&lt;(x-(LightCount\/2)))){x=1;}<br \/>\nelse{x=0;}<br \/>\n}<br \/>\nSI=x;<br \/>\nSCK=1;<br \/>\n}<br \/>\n}<\/p>\n<p>void Blank_Out(){<br \/>\nRCK=0;<br \/>\nshiftOut(1,0);<br \/>\nRCK=1;<br \/>\n__delay_ms(Blank_Out_Interval);<br \/>\n}<\/p>\n<p>void Full_Flash(int disp_mode){<br \/>\n\/\/disp_mode = 1 \u5168\u706f\u70b9\u6ec5<br \/>\n\/\/disp_mode = 2 \u4e21\u7aef\u5185\u5074\u4ea4\u4e92\u70b9\u6ec5<\/p>\n<p>unsigned long Full_On=4294967295;<br \/>\nunsigned long Harf_Outside=4278190335;<br \/>\nunsigned long Harf_Inside=16776960;<\/p>\n<p>RCK=0;<br \/>\nif(disp_mode==1){shiftOut(1,Full_On);}<br \/>\nelse if(disp_mode==2){shiftOut(1,Harf_Outside);}<br \/>\nRCK=1;<br \/>\n__delay_ms(Full_Flash_Interval);<\/p>\n<p>RCK=0;<br \/>\nif(disp_mode==1){shiftOut(1,0);}<br \/>\nelse if(disp_mode==2){shiftOut(1,Harf_Inside);<br \/>\n}<\/p>\n<p>RCK=1;<br \/>\n__delay_ms(Full_Flash_Interval);<br \/>\n}<\/p>\n<p>void Center_Diffusion(int disp_mode){<br \/>\n\/\/ disp_mode = 1 \u4e2d\u592e\u304b\u3089\u62e1\u5927<br \/>\n\/\/ disp_mode = 2 \u4e2d\u592e\u3078\u7e2e\u5c0f<\/p>\n<p>int i;<br \/>\nunsigned long up_data = 0;<br \/>\nunsigned long lo_data;<br \/>\nunsigned long disp_data;<\/p>\n<p>for(i=0;i&lt;LightCount\/2;i++){<br \/>\nRCK=0;<br \/>\nif(disp_mode==1){<br \/>\nlo_data = 65535;<br \/>\nup_data=(up_data&lt;&lt;1)+1;<br \/>\nlo_data=lo_data&lt;&lt;((LightCount\/2)-i-1);<br \/>\nlo_data=lo_data&lt;&lt;(LightCount\/2); lo_data=lo_data&gt;&gt;(LightCount\/2);<br \/>\ndisp_data=(up_data&lt;&lt;(LightCount\/2))+lo_data; }else if(disp_mode==2){ up_data=65535; lo_data=65535; up_data=up_data&gt;&gt;i;<br \/>\nlo_data=lo_data&lt;&lt;i;<br \/>\nlo_data=lo_data&lt;&lt;(LightCount\/2); lo_data=lo_data&gt;&gt;(LightCount\/2);<br \/>\ndisp_data=(up_data&lt;&lt;(LightCount\/2))+lo_data;<br \/>\n}<br \/>\nshiftOut(1,disp_data);<br \/>\nRCK=1;<br \/>\nif(disp_mode==1){<br \/>\n__delay_ms(Center_Diffusion_Interval_1);<br \/>\n}else if(disp_mode==2){<br \/>\n__delay_ms(Center_Diffusion_Interval_2);<br \/>\n}<br \/>\n}<br \/>\n}<\/p>\n<p>void Center_Block_Diffusion(){<\/p>\n<p>int i;<br \/>\nunsigned long disp_data;<\/p>\n<p>for(i=0;i&lt;LightCount\/4;i++){<br \/>\nRCK=0;<br \/>\nunsigned long up_data=771;<br \/>\nunsigned long lo_data=49344;<\/p>\n<p>up_data=up_data&lt;&lt;i;<br \/>\nup_data=up_data&lt;&lt;(LightCount\/2); lo_data=lo_data&gt;&gt;i;<br \/>\ndisp_data=up_data+lo_data;<br \/>\nshiftOut(1,disp_data);<\/p>\n<p>RCK=1;<br \/>\n__delay_ms(Center_Block_Diffusion_Interval);<br \/>\n}<br \/>\n}<\/p>\n<p>void Center_Stack_Block(){<\/p>\n<p>for(int i=0;i&lt;(LightCount\/2);i++){<br \/>\nfor(int x=0;x&lt;(LightCount\/2)-i;x++){<br \/>\nRCK=0;<br \/>\nunsigned long out_data;<br \/>\nunsigned int up_data=1&lt;&lt;x; unsigned int lo_data=32768&gt;&gt;x;<\/p>\n<p>out_data=up_data;<br \/>\nout_data=out_data&lt;&lt;(LightCount\/2);<br \/>\nout_data=out_data+lo_data;<\/p>\n<p>if(i!=0){<br \/>\nfor(int z=0;z&lt;i;z++){<br \/>\nunsigned long tmp;<br \/>\ntmp=1&lt;&lt;((LightCount\/2)-z-1);<br \/>\ntmp=tmp&lt;&lt;16;<br \/>\nout_data=out_data+tmp;<br \/>\n}<br \/>\nout_data=out_data+((1&lt;&lt;i)-1);<br \/>\n}<br \/>\nshiftOut(1,out_data);<br \/>\nRCK=1;<br \/>\n__delay_ms(Stack_Block_Interval);<br \/>\n}<br \/>\n}<br \/>\n}<\/p>\n<p>void main(){<br \/>\nint i,x;<\/p>\n<p>TRISA=0b00000000;<br \/>\nPORTA=0b00000000;<\/p>\n<p>for(i=0;i&lt;8;i++){<br \/>\nif(i&lt;4){<br \/>\nFull_Flash(1);<br \/>\n}else{<br \/>\nFull_Flash(2);<br \/>\n}<br \/>\n}<\/p>\n<p>while(1) {<br \/>\nfor(i=0;i&lt;4;i++){<br \/>\nCenter_Diffusion(1);<br \/>\nCenter_Diffusion(2);<br \/>\n}<br \/>\nBlank_Out();<br \/>\nfor(i=0;i&lt;4;i++){<br \/>\nCenter_Block_Diffusion();<br \/>\n}<br \/>\nfor(i=0;i&lt;4;i++){<br \/>\nCenter_Stack_Block();<br \/>\nCenter_Diffusion(2);<br \/>\nBlank_Out();<br \/>\n}<br \/>\n}<br \/>\n}<br \/>\n[\/html]<\/p>\n<p>&nbsp;<\/p>\n<p>\u307e\u3063\u3053\u3093\u306a\u611f\u3058\u3002\u3002\u3002<\/p>\n<p>\u3042\u3093\u307e\u308a\u7dba\u9e97\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3058\u3083\u306a\u3044\u3093\u3067\u3001C\u8a00\u8a9e\u306e\u52c9\u5f37\u306b\u306f\u4f7f\u308f\u306a\u3044\u307b\u3046\u304c\u3044\u3044\u304b\u3082\u306d\u3002\u3002\u3002\uff08\u3068\u307b\u307b\u3002\u3002\u3002\uff09<\/p>\n<p>&nbsp;<\/p>\n<p>\u3053\u308c\u3092Microchip\u793e\u306e<a href=\"http:\/\/www.microchip.com\/ja\/mplab\/compilers\" target=\"_blank\" rel=\"noopener\">XC8<\/a>\u306eC\u8a00\u8a9e\u30b3\u30f3\u30d1\u30a4\u30e9\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u3001<a href=\"http:\/\/feng3.nobody.jp\/rcd\/index2.html\" target=\"_blank\" rel=\"noopener\">RCD\u30e9\u30a4\u30bf<\/a>\u3067PIC\u306b\u66f8\u304d\u8fbc\u307f\u3092\u3059\u308b\u308f\u3051\u3067\u3059\u3051\u3069\u30fb\u30fb\u30fb<\/p>\n<p>\u3053\u3053\u306e\u30b5\u30a4\u30c8\u306e\u56de\u8def\u56f3\u3092\u53c2\u8003\u306b\u3002\u3002\u3002<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/norisuke.servehttp.com\/wordpress\/wp-content\/uploads\/2016\/09\/CIMG2669.jpg\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" decoding=\"async\" class=\"aligncenter size-medium wp-image-2669\" src=\"https:\/\/i0.wp.com\/norisuke.servehttp.com\/wordpress\/wp-content\/uploads\/2016\/09\/CIMG2669-300x225.jpg?resize=300%2C225\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/i0.wp.com\/www.norisuke.click\/wordpress\/wp-content\/uploads\/2016\/09\/CIMG2669.jpg?resize=300%2C225&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.norisuke.click\/wordpress\/wp-content\/uploads\/2016\/09\/CIMG2669.jpg?w=640&amp;ssl=1 640w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067RCD\u30e9\u30a4\u30bf\u30fc\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u3002\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3053\u308c\u3067PIC\u306b\u66f8\u304d\u3053\u3093\u3060\u3082\u306e\u3067\u3002\u3002\u3002<\/p>\n<p>\u5b9f\u969b\u306b\u7a3c\u50cd\u3055\u305b\u308b\u305f\u3081\u306e\u96fb\u6c17\u7684\u306a\u56de\u8def\u306f\u3001\u5358\u7d14\u30b7\u30f3\u30d7\u30eb\u3067PIC\u304b\u3089\u767a\u4fe1\u3055\u308c\u308b\u30c7\u30fc\u30bf\u30d4\u30f3\u3068\u30af\u30ed\u30c3\u30af\u30d4\u30f3\u3068\u30e9\u30c3\u30c1\u30d4\u30f3\u3092\u30b7\u30d5\u30c8\u30ec\u30b8\u30b9\u30bf\u306b\u6d41\u3057\u3066\u3001\u5358\u7d14\u306b\u30b7\u30d5\u30c8\u30ec\u30b8\u30b9\u30bf\u3092\u30a4\u30e2\u30c5\u30eb\u3067\uff14\u500b\u3076\u3089\u4e0b\u3052\u308b\u3063\u3066\u3082\u306e\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001PIC\u3068\u30b7\u30d5\u30c8\u30ec\u30b8\u30b9\u30bf\u3060\u3051\u306732\u500b\u306eLED\u3092\u5149\u3089\u305b\u3066\u307f\u305f\u3089\u3002\u3002\u3002<br \/>\n<iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/62lhQ_7W0I0\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>&nbsp;<\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u3002\u3002\u3002<\/p>\n<p>INTERVAL\u306e\u6642\u9593\u3092\u3082\u3046\u3061\u3087\u3063\u3068\u8abf\u6574\u3057\u306a\u304d\u3083\u306d\u3002\u3002\u3002<\/p>\n<p>\u3053\u3093\u306a\u30d1\u30bf\u30fc\u30f3\u3067PIC16F628A\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u9818\u57df\u306f\u5927\u4f53\uff19\uff10\uff05\u304f\u3089\u3044\uff01<\/p>\n<p>\u3061\u3083\u3093\u3068\u52b9\u7387\u7684\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u7d44\u3081\u3070\u3082\u3063\u3068\u4e0b\u3052\u3089\u308c\u308b\u304b\u3082\u306d\u3002\u3002\u3002<\/p>\n<p>\u3082\u3046\u3061\u3087\u3063\u3068\u3044\u3044\u70b9\u706f\u30d1\u30bf\u30fc\u30f3\u306f\u306a\u3044\u304b\u306d\u30fc\u3002\u3002\u3002\u82b8\u8853\u7684\u306a\u30c7\u30b6\u30a4\u30f3\u80fd\u529b\u306f\u7121\u3044\u306e\u3067\u3053\u3093\u306a\u3082\u3093\u3057\u304b\u3067\u304d\u307e\u305b\u3093\u3002\u3002\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u307e\u3041\u3068\u308a\u3042\u3048\u305a\u3001\u3053\u3093\u306a\u611f\u3058\uff01<\/p>\n<p>\u6b21\u306f\u30a6\u30a4\u30f3\u30ab\u30fc\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u3084\u3063\u3066\u307f\u308b\u304b\u306d\u3002\u3002\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u301c\u5f8c\u65e5\u8ffd\u8a18\u301c<\/p>\n<p>\u6fc0\u5b89\u3067\u30ea\u30a2\u30ac\u30fc\u30cb\u30c3\u30b7\u30e5\u3092Get\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"http:\/\/norisuke.servehttp.com\/wordpress\/?p=2848\" target=\"_blank\" rel=\"noopener\">\u30af\u30eb\u30de\u3084\u30d0\u30a4\u30af\u306a\u3069\u306e\u30e1\u30ab\u597d\u304d\u306b\u306f\u305f\u307e\u3089\u306a\u3044\u30d1\u30e9\u30c0\u30a4\u30b9\u3092\u767a\u898b\uff01\u30a2\u30c3\u30d7\u30ac\u30ec\u30fc\u30b8\u30673KJ\u30a8\u30f3\u30b8\u30f3\u3068E51\u30a8\u30eb\u30b0\u30e9\u30f3\u30c9\u306e\u30ea\u30a2\u30ac\u30fc\u30cb\u30c3\u30b7\u30e5\u3092GET\uff01<\/a><\/p>\n<p>\u3053\u308c\u3092\u4f7f\u3063\u3066\u672c\u683c\u7684\u306b\u3084\u3063\u3066\u307f\u308b\u8a08\u753b\u4e2d\uff01<\/p>\n<p>\u4e5e\u3046\u3054\u671f\u5f85\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e45\u3005\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u30cd\u30bf\u3067\u3059\u30fb\u30fb\u30fb \u30af\u30eb\u30de\u306e\u30a6\u30a4\u30f3\u30ab\u30fc\u3063\u3066\u3001\u3061\u3087\u3063\u3068\u524d\u307e\u3067\u306f\u3001\u6d41\u308c\u308b\u3088\u3046\u306a\u70b9\u706f\u65b9\u5f0f\u306e\u3082\u306e\u306f\u30c0\u30e1\u3060\u3063\u305f\u3051\u3069\u3001Audi\u3084Mercedes\u306a\u3093\u304b\u306e\u6b27\u5dde\u8eca\u3067\u6a19\u6e96\u88c5\u5099\u5316\u3055\u308c\u305f\u3082\u306e\u304c\u51fa\u3066\u304d\u305f\u3002 \u3053\u308c\u3089\u306e\u6b27\u5dde\u8eca\u30e1\u30fc\u30ab\u30fc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[2,8,10],"tags":[291,294,290,295,293,296,292],"class_list":["post-2109","post","type-post","status-publish","format-standard","hentry","category-comp","category-car","category-ele","tag-16f628a","tag-74hc595","tag-pic","tag-rcd","tag-293","tag-296","tag-292"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.norisuke.click\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.norisuke.click\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.norisuke.click\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.norisuke.click\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.norisuke.click\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2109"}],"version-history":[{"count":34,"href":"https:\/\/www.norisuke.click\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2109\/revisions"}],"predecessor-version":[{"id":3637,"href":"https:\/\/www.norisuke.click\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2109\/revisions\/3637"}],"wp:attachment":[{"href":"https:\/\/www.norisuke.click\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.norisuke.click\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.norisuke.click\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}