{"id":3563,"date":"2022-10-18T00:58:15","date_gmt":"2022-10-17T15:58:15","guid":{"rendered":"https:\/\/k.foolslab.net\/dailyreport\/?p=3563"},"modified":"2022-10-18T00:58:15","modified_gmt":"2022-10-17T15:58:15","slug":"2022-10-17","status":"publish","type":"post","link":"https:\/\/k.foolslab.net\/dailyreport\/2022-10-17\/","title":{"rendered":"2022\/10\/17(\u6708)"},"content":{"rendered":"\n<p>\u4eca\u65e5\u89e3\u3044\u305f\u7af6\u30d7\u30ed\u306e\u554f\u984c\u3002<\/p>\n\n\n\n<p>ARC150-B: \u6628\u65e5\u306e\u591c\u304b\u3089\u8003\u3048\u7d9a\u3051\u3066\u3084\u3063\u3068AC\u3057\u305f\u3002ARC\u306e\u554f\u984c\u50be\u5411\u6163\u308c\u306a\u3059\u304e\u3002<\/p>\n\n\n\n<p>\u554f\u984c\u6587\u306e\u72b6\u6cc1\u3092\u6570\u5f0f\u306b\u3059\u308b\u3068$B+Y=n(A+X)$\u307f\u305f\u3044\u306a\u611f\u3058\u306b\u306a\u308b\u3002X\u3068Y\u306e\u3069\u3061\u3089\u304b\u3092\u56fa\u5b9a\u3057\u3066\u8003\u3048\u305f\u3044\u304c\u3001X\u3092\u56fa\u5b9a\u3057\u3066Y\u3092\u8003\u3048\u308b\u65b9\u304c\u697d\u3063\u307d\u3044\u3002<\/p>\n\n\n\n<p>Y\u3092X\u3067\u8868\u3059\u3068$Y=-B+n(A+X)$\u306b\u306a\u308b\u3002X\u304c\u56fa\u5b9a\u306a\u3089Y\u306f\u6700\u5c0f\u5316\u3057\u305f\u3044\u3002$Y\\geq 0$\u3068\u3044\u3046\u6761\u4ef6\u304b\u3089\u8003\u3048\u308b\u3068$Y=(-B)%(A+X)$\u304c\u6700\u9069\u306b\u306a\u308b\u3002\u3053\u308c\u3067$X+Y=X+(-B)%(A+X)$\u3068\u3044\u3046\u98a8\u306b\u76ee\u7684\u306e\u6570\u3092$X$\u306e\u95a2\u6570\u3068\u3057\u3066\u8868\u305b\u305f\u306e\u3067\u3001$X$\u3092\u5909\u5316\u3055\u305b\u3066$X+Y$\u306e\u6700\u5c0f\u5024\u3092\u6c42\u3081\u308b\u3002<\/p>\n\n\n\n<p>\u30b0\u30e9\u30d5\u3092\u66f8\u3044\u3066\u307f\u308b\u3068\u5206\u304b\u308b\u304c\u3001$(-B)%(A+X)$\u306f\u90e8\u5206\u7684\u306b\u898b\u308b\u3068\u5358\u8abf\u5897\u52a0\u3067\u6642\u3005\u304c\u304f\u3063\u3068\u4e0b\u304c\u308b\u3088\u3046\u306a\u30b0\u30e9\u30d5\u3068\u306a\u308b\u3002\u3053\u306e\u4e0b\u304c\u3063\u305f\u77ac\u9593\u3060\u3051\u3092\u62fe\u3063\u3066\u3044\u304f\u3068\u826f\u3055\u305d\u3046\u306a\u6c17\u304c\u3059\u308b\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u4e0b\u304c\u3063\u305f\u77ac\u9593\u306f\u6570\u5f0f\u7684\u306b\u306f\u306a\u3093\u306a\u306e\u304b\u3068\u3044\u3046\u3068\u3001$Y=(-B)+n(A+X)$\u3068\u8868\u3057\u305f\u3068\u304d\u306b\u3053\u306en\u304c\u4e0b\u304c\u308b\u77ac\u9593\u3067\u3042\u308b\u3002$A+X=B$\u306e\u3068\u304d\u5fc5\u305a$Y=0$\u304b\u3064$n=1$\u3067\u3042\u3063\u3066\u3001\u3053\u308c\u3088\u308a$A+X$\u3092\u5927\u304d\u304f\u3057\u3066\u3082n\u304c\u4e0b\u304c\u308b\u3053\u3068\u306f\u306a\u3044\u306e\u3067\u3001$A+X\\leq B$\u3068\u8a08\u7b97\u3059\u3079\u304d\u7bc4\u56f2\u3092\u5236\u9650\u3067\u304d\u308b\u3002<\/p>\n\n\n\n<p>\u3055\u3089\u306b\u4e0b\u304c\u308b\u77ac\u9593\u3092\u6570\u5f0f\u7684\u306b\u8003\u3048\u308b\u3002\u6b63\u76f4\u3053\u308c\u306e\u53b3\u5bc6\u306a\u8b70\u8ad6\u306f\u81ea\u4fe1\u304c\u306a\u3044\u306e\u3060\u304c\u3001$Y=0$\u3068\u7f6e\u304f\u3068\u826f\u3044\u611f\u3058\u306b\u8003\u5bdf\u3067\u304d\u308b\u3002\u96e2\u6563\u306e\u4e16\u754c\u3060\u3068\u4e0b\u304c\u308b\u77ac\u9593\u3067\u3082\u5fc5\u305a\u3057\u3082$Y=0$\u306b\u306f\u306a\u3089\u306a\u3044\u304c\u3001\u9023\u7d9a\u306e\u4e16\u754c\u306emod\u3092\u8003\u3048\u308b\u3068\u4e0b\u304c\u308b\u77ac\u9593\u3067\u5fc5\u305a$Y=0$\u306b\u306a\u308b\u3002\u3053\u308c\u3092\u6349\u3048\u308b\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308b\u3002\u9023\u7d9a\u306e\u4e16\u754c\u3068\u3044\u3063\u3066\u3082mod\u3067\u3042\u308b\u4ee5\u4e0a$n$\u306f\u96e2\u6563\u5024\u3092\u3068\u308b\u3002$Y$\u3084$A+X$\u3092\u9023\u7d9a\u5024\u3068\u3057\u3066\u7f6e\u3044\u305f\u5834\u5408\u3068\u3044\u3046\u8a71\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<p>$Y=0=(-B)+n(A+X)$<\/p>\n\n\n\n<p>$B=n(A+X)$<\/p>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306b\u5909\u5f62\u3059\u308b\u3068\u3001$n\\leq\\sqrt{B}$\u3082\u3057\u304f\u306f$A+X\\leq\\sqrt{B}$\u306e\u3069\u3061\u3089\u304b\u304c\u5fc5\u305a\u6210\u308a\u7acb\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u5206\u304b\u308b\u3002$n$\u3082$A+X$\u3082\u5b9f\u969b\u306b\u306f\u96e2\u6563\u5024\u306a\u306e\u3067\u3001\u3053\u306e$\\lfloor\\sqrt{B}\\rfloor$\u901a\u308a\u306e$n$\u3068$A+X$\u3092$X\\geq 0$\u306b\u6c17\u3092\u4ed8\u3051\u3064\u3064\u5168\u63a2\u7d22\u3059\u308c\u3070\u826f\u3044\u3002\u30b3\u30fc\u30ca\u30fc\u30b1\u30fc\u30b9\u3068\u3057\u3066\u3001\u4e0b\u304c\u3063\u305f\u77ac\u9593\u3067\u306f\u306a\u3044\u304c$X=0$\u304c\u7b54\u3048\u306b\u306a\u308b\u5834\u5408\u3082\u3042\u308b\u306e\u3067\u305d\u3053\u3060\u3051\u6ce8\u610f\u3002\u3053\u308c\u30671\u30b1\u30fc\u30b9\u8fba\u308a$O(\\sqrt{B})$\u3067\u89e3\u3051\u305f\u3002<\/p>\n\n\n\n<p>\u8ca0\u306e\u5024\u306emod\u3001\u5272\u308b\u6570\u5074\u3092\u5909\u3048\u308bmod\u3001\u9023\u7d9a\u306e\u4e16\u754c\u306emod\u3068\u5fdc\u7528\u7684\u306amod\u306e\u53d6\u308a\u6271\u3044\u3092\u3044\u3084\u3068\u3044\u3046\u307b\u3069\u8981\u6c42\u3055\u308c\u305f\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>Maixduino\u306e\u5b9f\u9a13\u3092\u9032\u3081\u308b\u3002K210\u3068ESP32\u306eSPI\u304c\u3069\u3046\u3082\u5b89\u5b9a\u3057\u306a\u304b\u3063\u305f\u304c\u3001\u306a\u3093\u304b\u8272\u3005\u3044\u3058\u3063\u3066\u307f\u305f\u3089\u5b89\u5b9a\u3057\u305f\u3002\u4f55\u304c\u6c7a\u5b9a\u6253\u3060\u3063\u305f\u306e\u304b\u3001\u6628\u65e5\u306e\u4e0d\u5177\u5408\u306f\u4e00\u4f53\u4f55\u304c\u539f\u56e0\u3060\u3063\u305f\u306e\u304b\u7d50\u5c40\u5206\u304b\u3089\u306a\u304b\u3063\u305f\u3002<\/p>\n\n\n\n<p>K210\u306eIO8\u3068ESP32\u306eEN\u30d4\u30f3\u304c\u7e4b\u304c\u3063\u3066\u304a\u308a\u3001\u30ea\u30bb\u30c3\u30c8\u3092\u304b\u3051\u3089\u308c\u308b\u3088\u3046\u3060\u3063\u305f\u306e\u3067K210\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u5b9f\u884c\u6642\u306bESP32\u3092\u30ea\u30bb\u30c3\u30c8\u3059\u308b\u3088\u3046\u306b\u3057\u305f\u3002\u5177\u4f53\u7684\u306b\u306f<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>LOW\u306b\u3059\u308b<\/li><li>500ms\u5f85\u3064<\/li><li>HIGH\u306b\u3059\u308b<\/li><li>800ms\u5f85\u3064<\/li><li>IO8\u3092\u5165\u529b\u30d4\u30f3\u306b\u3057\u3066HI-Z\u306b\u3059\u308b<\/li><\/ol>\n\n\n\n<p>\u5358\u306b\u4e0b\u3052\u3066\u307e\u305f\u4e0a\u3052\u308b\u3068\u3044\u3046\u666e\u901a\u306e\u30ea\u30bb\u30c3\u30c8\u51e6\u7406\u3060\u3002500ms\u3001800ms\u3068\u3044\u3046\u6570\u5b57\u306f\u3053\u3053\u304b\u3089\u53d6\u3063\u3066\u304d\u3066\u3044\u308b\u3002\u3068\u3044\u3046\u304b\u3053\u3053\u306e\u51e6\u7406\u3092\u307e\u3093\u307e\u53c2\u8003\u306b\u3057\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/sipeed\/MaixPy\/blob\/master\/components\/micropython\/port\/src\/standard_lib\/network\/esp32\/esp32_spi.c#L67\">https:\/\/github.com\/sipeed\/MaixPy\/blob\/master\/components\/micropython\/port\/src\/standard_lib\/network\/esp32\/esp32_spi.c#L67<\/a><\/p>\n\n\n\n<p>\u6700\u5f8c\u306bHI-Z\u306b\u3057\u3066\u3044\u308b\u306e\u306f\u3001USB\u30b7\u30ea\u30a2\u30eb\u304b\u3089ESP32\u306b\u30ea\u30bb\u30c3\u30c8\u3092\u304b\u3051\u3089\u308c\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u3060\u3002Maixduino\u57fa\u677f\u306b\u304a\u3044\u3066\u3001ESP32\u306eEN\u30d4\u30f3\u306f\u4ee5\u4e0b\u306e3\u3064\u306b\u624b\u7db1\u3092\u63e1\u3089\u308c\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>K210\u306eIO8\u30d4\u30f3<\/li><li>CH552(USB\u30b7\u30ea\u30a2\u30eb\u5909\u63db\u5668\u3068\u3057\u3066\u52d5\u4f5c)\u306e\u51fa\u529b\u3059\u308b\u30b7\u30ea\u30a2\u30ebRST\u30d4\u30f3<\/li><li>10k\u03a9\u62b5\u6297\u306b\u3088\u308b\u30d7\u30eb\u30a2\u30c3\u30d7<\/li><\/ul>\n\n\n\n<p>K210\u304c\u81ea\u5206\u306e\u624b\u7db1\u3092\u96e2\u3055\u306a\u3051\u308c\u3070\u30b7\u30ea\u30a2\u30eb\u304b\u3089\u306e\u30ea\u30bb\u30c3\u30c8\u306f\u3067\u304d\u306a\u3044\u3002ESP32\u306b\u66f8\u304d\u8fbc\u3082\u3046\u3068\u3057\u3066\u51fa\u6765\u306a\u3044\u3053\u3068\u306b\u6c17\u4ed8\u3044\u3066\u554f\u984c\u304c\u767a\u899a\u3057\u305f\u3002\u3061\u3083\u3093\u3068\u6700\u5f8c\u306bHI-Z\u306b\u3059\u308b\u3053\u3068\u3067ESP32\u306b\u66f8\u304d\u8fbc\u3081\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u79cb\u8449\u539f\u306b\u884c\u3063\u305f\u3002\u79cb\u6708\u304c18:00\u3067\u9589\u307e\u3063\u3066\u3044\u305f\u3002\u524d\u306f18:30\u307e\u3067\u3084\u3063\u3066\u305f\u306e\u306b\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u7b4b\u30c8\u30ec\u3092\u3084\u3063\u305f\u3002\u4eca\u65e5\u306f\u8155\u7acb\u3066\u3002\u524d\u56de\u306e\u7b4b\u8089\u75db\u304c\u307e\u3060\u6cbb\u307e\u308a\u304d\u3063\u3066\u306a\u3044\u304c\u3001\u5b8c\u5168\u306b\u6cbb\u308b\u307e\u3067\u5f85\u3064\u5fc5\u8981\u306f\u306a\u3044\u3068\u3044\u3046\u8a71\u3092\u524d\u306b\u805e\u3044\u305f\u306e\u3067\u6c7a\u884c\u3002\u4e00\u5fdc\u524d\u56de\u3088\u308a\u3082\u540c\u3058\u3053\u3068\u3092\u697d\u306b\u3084\u308c\u3066\u308b\u611f\u89e6\u304c\u3042\u3063\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u65e5\u89e3\u3044\u305f\u7af6\u30d7\u30ed\u306e\u554f\u984c\u3002 ARC150-B: \u6628\u65e5\u306e\u591c\u304b\u3089\u8003\u3048\u7d9a\u3051\u3066\u3084\u3063\u3068AC\u3057\u305f\u3002ARC\u306e\u554f\u984c\u50be\u5411\u6163\u308c\u306a\u3059\u304e\u3002 \u554f\u984c\u6587\u306e\u72b6\u6cc1\u3092\u6570\u5f0f\u306b\u3059\u308b\u3068$B+Y=n(A+X)$\u307f\u305f\u3044\u306a\u611f\u3058\u306b\u306a\u308b\u3002X\u3068Y\u306e\u3069\u3061\u3089\u304b\u3092\u56fa\u5b9a\u3057\u3066\u8003\u3048\u305f\u3044\u304c &hellip; <\/p>\n<div><a href=\"https:\/\/k.foolslab.net\/dailyreport\/2022-10-17\/\" class=\"more\">Read more &raquo;<span class=\"screen-reader-text\"> &#8220;2022\/10\/17(\u6708)&#8221;<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3563","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/3563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/comments?post=3563"}],"version-history":[{"count":4,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/3563\/revisions"}],"predecessor-version":[{"id":3567,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/3563\/revisions\/3567"}],"wp:attachment":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/media?parent=3563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/categories?post=3563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/tags?post=3563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}