{"id":7487,"date":"2024-10-04T23:51:28","date_gmt":"2024-10-04T15:51:28","guid":{"rendered":"http:\/\/www.hellofpga.com\/?p=7487"},"modified":"2024-10-08T12:36:25","modified_gmt":"2024-10-08T04:36:25","slug":"lemon_zynq_emio_key","status":"publish","type":"post","link":"http:\/\/www.hellofpga.com\/index.php\/2024\/10\/04\/lemon_zynq_emio_key\/","title":{"rendered":"\u57fa\u4e8eLemon ZYNQ\u7684PS\u5b9e\u9a8c\u4e09\u00a0 GPIO\u4e4b\u6309\u952e\u529f\u80fd\u6f14\u793a\uff08EMIO\u65b9\u5f0f\uff09"},"content":{"rendered":"\n<p>\u672c\u6b21\u5b9e\u9a8c\u4e3b\u8981\u6f14\u793aEMIO \u7684GPIO\u8bfb\u53d6\uff08\u8f93\u5165\uff09\u529f\u80fd\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6b64\u7ae0\u8282\u5185\u5bb9\u9002\u7528\u4e8eLemon ZYNQ\u4e3b\u677f\uff0c\u5982\u662f\u5176\u4ed6\u677f\u5b50\u8bf7\u770b\u5bf9\u5e94\u677f\u5b50\u76ee\u5f55<\/strong><\/li>\n\n\n\n<li><strong>\u672c\u6587\u5728 vivado2018.3\u7248\u672c\u4e0a\u6f14\u793a<\/strong><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e00\u3001\u786c\u4ef6\u4ecb\u7ecd<\/strong><\/h2>\n\n\n\n<p>\u5148\u770b\u539f\u7406\u56fe\uff0c\u7531\u539f\u7406\u56fe\u53ef\u4ee5\u770b\u51fa\u677f\u5b50\u4e0a\u63a5\u4e86\u56db\u4e2a\u6309\u952e\uff0c\u5e76\u4e14\u9ed8\u8ba4\u662f\u901a\u8fc7\u4e0b\u62c9\u7535\u963b\u4e0b\u62c9\u5230GND\u7684\uff0c\u4e5f\u5c31\u662f\u5f53\u6309\u952e\u6ca1\u6709\u6309\u4e0b\u7684\u65f6\u5019 \u6309\u952eKEY \u7684\u4fe1\u53f7\u811a\u662f0V \uff0c\u5f53\u6309\u952e\u6309\u4e0b\u540e\uff0c\u8be5\u4fe1\u53f7\u811a\u88ab\u62c9\u9ad8\u52303.3V \u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"478\" height=\"451\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-26.png\" alt=\"\" class=\"wp-image-7490\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-26.png 478w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-26-300x283.png 300w\" sizes=\"auto, (max-width: 478px) 100vw, 478px\" \/><\/figure>\n\n\n\n<p>\u4e3a\u4e86\u6f14\u793a\u6309\u952e\u7684\u529f\u80fd\uff0c\u8fd9\u91cc\u518d\u5728\u5de5\u7a0b\u4e2d\u5f15\u5165LED\u6307\u793a\u706f\uff0c\u6307\u793a\u706f\u4e4b\u524d\u7ae0\u8282\u7684\u4f8b\u5b50\u91cc\u6d4b\u8bd5\u8fc7\uff0c\u5c06LED\u7684\u9a71\u52a8\u811a\u62c9\u9ad8\uff0c\u6307\u793a\u706f\u4eae\uff0c\u62c9\u4f4e\u6307\u793a\u706f\u7184\u706d\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"348\" height=\"387\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-12.png\" alt=\"\" class=\"wp-image-7328\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-12.png 348w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-12-270x300.png 270w\" sizes=\"auto, (max-width: 348px) 100vw, 348px\" \/><\/figure>\n\n\n\n<p><strong>\u4e3a\u4e86\u65b9\u4fbf\u4ee3\u7801\u7684\u6f14\u793a\uff0c\u8fd9\u91cc\u4ec5\u7528\u4e24\u4e2a\u6309\u952e\uff0c\u548c\u4e24\u4e2aLED\u8fdb\u884c\u6d4b\u8bd5<\/strong>\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e8c\u3001\u5de5\u7a0b\u521b\u5efa<\/strong><\/h2>\n\n\n\n<p>\u6574\u4e2a\u5de5\u7a0b\u7684\u8be6\u7ec6\u521b\u5efa\u6d41\u7a0b\u53ef\u4ee5\u53c2\u8003\u8bd5\u9a8c\u4e00\u4e2d\u7684\u5185\u5bb9\uff0c\u8fd9\u91cc\u4e0d\u518d\u8be6\u7ec6\u63cf\u8ff0\u4e86\u3002<a href=\"http:\/\/www.hellofpga.com\/index.php\/2024\/10\/04\/lemon_zynq_ps_gpio_emio\/\">\u57fa\u4e8eLemon ZYNQ\u7684PS\u5b9e\u9a8c\u4e00 GPIO\u4e4b\u7528EMIO\u65b9\u5f0f\u70b9\u4eaeLED\uff08\u5b8c\u6574\u56fe\u6587\uff09<\/a>  (\u82af\u7247\u578b\u53f7\u9009XC7Z020CLG400-1)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e09\u3001Vivado \u4e2d\u7684\u8bbe\u7f6e<\/strong><\/h2>\n\n\n\n<p>1\uff09\u5728BLOCK DESIGN \u4e2d\u641c\u7d22\u5e76\u6dfb\u52a0\u4e00\u4e2aZYNQ\u6a21\u5757<\/p>\n\n\n\n<p>2\uff09\u5728ZYNQ \u8bbe\u7f6e\u754c\u9762\uff0c\u8bbe\u7f6e DDR MT41K256M16RE-125\u7684\u578b\u53f7 \u548c\u4f4d\u5bbd16bit<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"442\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-92.png\" alt=\"\" class=\"wp-image-2668\" style=\"width:608px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-92.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-92-300x173.png 300w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>&nbsp;3\uff09\u56e0\u4e3aLemon ZYNQ\u4e3b\u677f\u7684PS\u65f6\u949f\u662f50M\u7684\u6676\u632f\u8f93\u5165\u7684\uff0c\u6240\u4ee5\u8fd9\u91cc\u9700\u8981\u628a\u9ed8\u8ba4\u7684PS\u8f93\u5165\u65f6\u949f33.33M\u6539\u621050M<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"531\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-22-1024x531.png\" alt=\"\" class=\"wp-image-7455\" style=\"width:613px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-22-1024x531.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-22-300x156.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-22-768x398.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-22.png 1060w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>4\uff09\u6dfb\u52a04\u4e2aEMIO \uff0c\u5176\u4e2d\u4e24\u4e2a\u7528\u6765\u9a71\u52a8LED\u706f\uff0c\u53e6\u4e24\u4e2a\u7528\u6765\u8bfb\u53d6\u6309\u952eKEY\u7684\u4fe1\u606f<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"699\" height=\"292\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-19.png\" alt=\"\" class=\"wp-image-1509\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-19.png 699w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-19-300x125.png 300w\" sizes=\"auto, (max-width: 699px) 100vw, 699px\" \/><\/figure>\n\n\n\n<p>5\uff09\u5bf9GPIO make external\uff0c\u5e76\u4e14\u8fde\u63a5AXI\u7684\u65f6\u949f\uff08AXI\u9ed8\u8ba4\u5f00\u542f\u7684\uff0c\u8fd9\u91cc\u7528\u4e0d\u5230AXI\uff0c\u4e5f\u53ef\u4ee5\u53bb\u8bbe\u7f6e\u91cc\u5173\u95edAXI\u529f\u80fd\uff0c\u5c31\u4e0d\u9700\u8981\u8fde\u63a5\u4e86\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"606\" height=\"267\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-21.png\" alt=\"\" class=\"wp-image-1512\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-21.png 606w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-21-300x132.png 300w\" sizes=\"auto, (max-width: 606px) 100vw, 606px\" \/><\/figure>\n\n\n\n<p>6\uff09\u70b9\u9009Create HDL Wrapper<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"397\" height=\"165\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-22.png\" alt=\"\" class=\"wp-image-1513\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-22.png 397w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-22-300x125.png 300w\" sizes=\"auto, (max-width: 397px) 100vw, 397px\" \/><\/figure>\n\n\n\n<p>7\uff09\u4e4b\u540e\u521b\u5efa\u548c\u6dfb\u52a0\u7ea6\u675f\u6587\u4ef6\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">set_property PACKAGE_PIN P14 [get_ports {GPIO_0_0_tri_io[3]}]<br>set_property PACKAGE_PIN R14 [get_ports {GPIO_0_0_tri_io[2]}]<br>set_property PACKAGE_PIN D20 [get_ports {GPIO_0_0_tri_io[1]}]<br>set_property PACKAGE_PIN D19 [get_ports {GPIO_0_0_tri_io[0]}]<br>set_property IOSTANDARD LVCMOS33 [get_ports {GPIO_0_0_tri_io[3]}]<br>set_property IOSTANDARD LVCMOS33 [get_ports {GPIO_0_0_tri_io[2]}]<br>set_property IOSTANDARD LVCMOS33 [get_ports {GPIO_0_0_tri_io[1]}]<br>set_property IOSTANDARD LVCMOS33 [get_ports {GPIO_0_0_tri_io[0]}]<\/pre>\n\n\n\n<p>8) \u4e4b\u540e\u5bf9\u7a0b\u5e8f\u8fdb\u884c\u6b63\u5e38\u7684\u7f16\u8bd1\u7efc\u5408\uff0c\u5e76\u4e14\u5bfc\u51fa Export Hardware (\u52fe\u9009 include bitstream)\u4f9bSDK\u52a0\u8f7d<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"460\" height=\"92\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-24.png\" alt=\"\" class=\"wp-image-1515\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-24.png 460w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-24-300x60.png 300w\" sizes=\"auto, (max-width: 460px) 100vw, 460px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"318\" height=\"239\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-25.png\" alt=\"\" class=\"wp-image-1516\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-25.png 318w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-25-300x225.png 300w\" sizes=\"auto, (max-width: 318px) 100vw, 318px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u56db\u3001PS\u90e8\u5206\u7a0b\u5e8f\u8bbe\u8ba1\uff1a<\/strong><\/h2>\n\n\n\n<p>1) \u5728SDK\u73af\u5883\u4e0b\u5efa\u7acb\u4e00\u4e2a\u540d\u4e3aKEY_TEST\u7a7a\u7684\u5de5\u7a0b\uff0c\u5e76\u4e14\u6dfb\u52a0main.c \u6dfb\u52a0\u5982\u4e0b\u4ee3\u7801\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#include \"xparameters.h\"<br>#include \"xgpiops.h\"<br>#include \"xstatus.h\"<br>#include \"xplatform_info.h\"<br>#include \"xscutimer.h\"<br>#include \"Xscugic.h\"<br><br>#define LED2    \t57<br>#define LED1    \t56<br>#define KEY2    \t55<br>#define KEY1    \t54<br><br>#define GPIO_DEVICE_ID  \tXPAR_XGPIOPS_0_DEVICE_ID<br>XGpioPs Gpio;<br><br><br>void Gpio_Init(void){<br>\tXGpioPs_Config *ConfigPtr;<br><br>\tConfigPtr = XGpioPs_LookupConfig(GPIO_DEVICE_ID);<br>\tXGpioPs_CfgInitialize(&amp;Gpio, ConfigPtr,ConfigPtr-&gt;BaseAddr);<br><br>\tXGpioPs_SetDirectionPin(&amp;Gpio, LED1, 1);<br>\tXGpioPs_SetOutputEnablePin(&amp;Gpio, LED1, 1);<br>\tXGpioPs_WritePin(&amp;Gpio, LED1, 1);<br><br>\tXGpioPs_SetDirectionPin(&amp;Gpio, LED2, 1);<br>\tXGpioPs_SetOutputEnablePin(&amp;Gpio, LED2, 1);<br>\tXGpioPs_WritePin(&amp;Gpio, LED2, 1);<br><br>\tXGpioPs_SetDirectionPin(&amp;Gpio, KEY1, 0);<br>\tXGpioPs_SetDirectionPin(&amp;Gpio, KEY2, 0);<br>}<br><br><br><br><br>int main(void)<br>{<br>\tGpio_Init();<br><br>\twhile(1){<br>\t\tif(XGpioPs_ReadPin(&amp;Gpio, KEY1)==1){<br>\t\t\tXGpioPs_WritePin(&amp;Gpio, LED1, 1);<br>\t\t\tXGpioPs_WritePin(&amp;Gpio, LED2, 0);<br>\t\t}<br>\t\telse if(XGpioPs_ReadPin(&amp;Gpio, KEY2)==1){<br>\t\t\tXGpioPs_WritePin(&amp;Gpio, LED1, 0);<br>\t\t\tXGpioPs_WritePin(&amp;Gpio, LED2, 1);<br>\t\t}<br>\t}<br><br>\treturn 0;<br>}<br><\/pre>\n\n\n\n<p>\u7a0b\u5e8f\u5f88\u7b80\u5355\uff0c Gpio_Init\u662f\u5bf94\u4e2aGPIO\u8fdb\u884c\u521d\u59cb\u5316\uff0c \u56e0\u4e3aEMIO \u662f\u4ece54\u7684\u7ba1\u811a\u53f7\u5f00\u59cb\u7684\uff0c\u6240\u4ee5\u6839\u636e\u539f\u5148VIVADO \u7684\u7ba1\u811a\u7ea6\u675f\u6765\u770b\uff0c\u4e24\u4e2a\u6309\u952e\u5e94\u8be5\u5bf9\u5e9454\u548c55\uff0c\u4e24\u4e2aLED\u706f\u5bf9\u5e9456\u548c57<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#define LED2    \t57\n#define LED1    \t56\n#define KEY2    \t55\n#define KEY1    \t54<\/pre>\n\n\n\n<p>XGpioPs_SetDirectionPin(&amp;Gpio, KEY1, 0); \u6700\u540e\u76840\u4ee3\u8868\u8bbe\u7f6eGPIO\u7684\u65b9\u5411\u4e3a\u8f93\u5165\u3002<\/p>\n\n\n\n<p>\u4f7f\u7528 <code>XGpioPs_ReadPin(&amp;Gpio, KEY1)<\/code> \u68c0\u67e5\u6309\u952e1\u7684\u72b6\u6001\u3002\u5982\u679c\u6309\u952e1\u88ab\u6309\u4e0b\uff08\u8fd4\u56de\u503c\u4e3a1\uff09\uff0c\u5219\u70b9\u4eaeLED1\u5e76\u7184\u706dLED2\u3002\u5982\u679c\u6309\u952e1\u6ca1\u6709\u88ab\u6309\u4e0b\uff0c\u518d\u68c0\u67e5\u6309\u952e2\uff08KEY2\uff09\u3002\u5982\u679c\u6309\u952e2\u88ab\u6309\u4e0b\uff0c\u5219\u7184\u706dLED1\u5e76\u70b9\u4eaeLED2\u3002\uff08\u4e0a\u7535\u540e\u4e24\u4e2a\u706f\u9ed8\u8ba4\u90fd\u4eae\uff09\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e94\u3001\u4e0b\u8f7d\u5230\u677f\u5b50\u4e0a\u8fdb\u884c\u9a8c\u8bc1<\/strong><\/h2>\n\n\n\n<p>1\uff09\u65b0\u521b\u5efa\u7684\u5de5\u7a0b\u6700\u597d\u5148\u5bf9Run as \u8fdb\u884c\u914d\u7f6e\uff1a\u53f3\u952e\u5de5\u7a0b\uff0c\u5e76\u70b9\u9009Run As -&gt; Run Configurations <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"798\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-27.png\" alt=\"\" class=\"wp-image-7494\" style=\"width:589px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-27.png 750w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-27-282x300.png 282w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/figure>\n\n\n\n<p>2\uff09 \u5728\u5f39\u51fa\u7684\u7a97\u53e3\u4e2d\u5bf9Reset entire system  \u548c Program FPGA\u4e24\u4e2a\u9009\u9879\u8fdb\u884c\u52fe\u9009\u64cd\u4f5c\uff0c\u8fd9\u6837\u5c31\u4e0d\u4f1a\u51fa\u73b0\u4e0b\u8f7d\u7a0b\u5e8fdebug\u7684\u65f6\u5019\u6982\u7387\u6027\u4e0d\u5de5\u4f5c\u7684\u95ee\u9898\u4e86\u3002<strong>\uff08\u8fd9\u6837\u64cd\u4f5c\u540e\u7cfb\u7edf\u4f1a\u81ea\u52a8\u5bf9FPGA\u8fdb\u884c\u914d\u7f6e\uff0c\u4e0d\u9700\u8981\u6309\u4e4b\u524d\u5de5\u7a0b\u624b\u52a8\u5bf9FPGA\u8fdb\u884c\u7f16\u7a0b\u4e86\uff09<\/strong><\/p>\n\n\n\n<p>PS\u5982\u679c\u6ca1\u6709\u51fa\u73b0\u4e0b\u56fe\u5bf9\u8bdd\u6846\uff0c\u53ef\u4ee5\u76f4\u63a5\u53cc\u51fb\u5de6\u4fa7\u7684applicationo \uff08System Debugger\uff09\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"705\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-29-1024x705.png\" alt=\"\" class=\"wp-image-7496\" style=\"width:667px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-29-1024x705.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-29-300x206.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-29-768x528.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-29.png 1401w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>3\uff09\u8bbe\u7f6e\u597d\u4e4b\u540e\uff0c\u9009\u62e9<code>Run As<\/code>&nbsp;-&gt;&nbsp;<code>Launch on Hardware (System Debugger)<\/code>&nbsp;\u6216\u8005 Launch on Hardware (GDB)\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"780\" height=\"178\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/07\/image-14.png\" alt=\"\" class=\"wp-image-835\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/07\/image-14.png 780w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/07\/image-14-300x68.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/07\/image-14-768x175.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\u5982\u679c\u4e4b\u524d\u7684\u64cd\u4f5c\u90fd\u6b63\u786e\u7684\u8bdd\uff0c\u4e0b\u8f7d\u6210\u529f\u540e\uff0c\u4e3b\u677f\u4e0a\u7684LD0(\u5bf9\u5e94\u7a0b\u5e8f\u7684LED1)\uff0c\u548cLD1(\u5bf9\u5e94\u7a0b\u5e8f\u7684LED2)\u5c06\u4f1a\u88ab\u70b9\u4eae\uff0c \u5f53\u6309\u4e0bBTN0(KEY1)\u6216\u8005BTN1(KEY2)\u4e4b\u540e\uff0c\u5bf9\u5e94\u7684LED\u4f1a\u88ab\u70b9\u4eae\u800c\u53e6\u4e00\u4e2aLED\u4f1a\u7184\u706d\u3002 \u8bc1\u660e\u6211\u4eec\u6240\u7f16\u5199\u7684\u57fa\u4e8eEMIO\u7684\u6309\u952e\u8f93\u5165\u7a0b\u5e8f\u5df2\u7ecf\u6210\u529f\u8fd0\u884c\u4e86\u3002 <\/p>\n\n\n\n<p><strong>\u7a0b\u5e8f\u4ec5\u4f5c\u6f14\u793a\uff0c\u5b9e\u9645\u9879\u76ee\u4e2d\u9700\u8981\u5bf9\u6309\u952e\u589e\u52a0\u6309\u952e\u6d88\u6296\u7a0b\u5e8f\uff0c\u5426\u5219\u6309\u4e0b\u77ac\u95f4\u4f1a\u53cd\u590d\u89e6\u53d1\u7a0b\u5e8f\u4ee3\u7801<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u672c\u6587\u7684\u5b8c\u6574\u5de5\u7a0b\u4e0b\u8f7d\uff1a<a href=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/03_PS_KEY_EMIO_TEST.zip\">03_PS_KEY_EMIO_TEST<\/a><\/strong><\/li>\n\n\n\n<li><strong>VIVADO\u7684\u7248\u672c\uff1a2018.3<\/strong><\/li>\n\n\n\n<li><strong>\u5de5\u7a0b\u521b\u5efa\u76ee\u5f55\uff1a E:\\Lemon_ZYNQ\\SDK\\03_PS_KEY_EMIO_TEST<\/strong><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6b21\u5b9e\u9a8c\u4e3b\u8981\u6f14\u793aEMIO \u7684GPIO\u8bfb\u53d6\u529f\u80fd<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"class_list":["post-7487","post","type-post","status-publish","format-standard","hentry","category-lemon-zynq"],"views":870,"_links":{"self":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/7487","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/comments?post=7487"}],"version-history":[{"count":17,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/7487\/revisions"}],"predecessor-version":[{"id":7846,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/7487\/revisions\/7846"}],"wp:attachment":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/media?parent=7487"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/categories?post=7487"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/tags?post=7487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}