{"id":7136,"date":"2020-09-25T03:16:51","date_gmt":"2020-09-24T18:16:51","guid":{"rendered":"http:\/\/happytech.jp\/wordpress\/?p=7136"},"modified":"2020-10-19T23:27:35","modified_gmt":"2020-10-19T14:27:35","slug":"how-to-use-frdm-kl25z-gpio","status":"publish","type":"post","link":"https:\/\/happytech.jp\/wordpress\/2020\/09\/25\/how-to-use-frdm-kl25z-gpio\/","title":{"rendered":"FRDM-KL25Z GPIO\u306e\u4f7f\u3044\u65b9"},"content":{"rendered":"<p>5V\u8010\u5727GPIO\u30d4\u30f3\u304c\u7121\u30443.3V\u52d5\u4f5cFRDM-KL25Z\u3078\u30015V LCD\u3092CMOS\u30c7\u30d0\u30a4\u30b9\u76f4\u7d50\u3067\u63a5\u7d9a\u3057\u3001\u305d\u306e\u52d5\u4f5c\u78ba\u8a8d\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u958b\u767a\u4e2d\u3067\u3059\uff08CMOS\u30c7\u30d0\u30a4\u30b9\u76f4\u7d50\u306f\u3001\u95a2\u9023\u6295\u7a3f\uff1a<a href=\"https:\/\/happytech.jp\/wordpress\/2020\/09\/11\/3-3v-mcu-and-5v-device-interface\/\" target=\"_blank\" rel=\"noopener noreferrer\">3.3V MCU\u30685V\u30c7\u30d0\u30a4\u30b9\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\uff09\u3002<\/p>\n<p>\u958b\u767a\u9014\u4e2d\u3001FRDM-KL25Z\u642d\u8f09MCU\u306eKinetis KL25\u30d5\u30a1\u30df\u30ea\u306b\u3001GPIO\u306e\u62e1\u5f35\u3068\u3082\u8a00\u3048\u308b\u8208\u5473\u6df1\u3044FGPIO\u6a5f\u80fd\u3001BME\u6a5f\u80fd\u3092\u898b\u3064\u3051\u305f\u306e\u3067FRDM-KL25Z GPIO\u306e\u4f7f\u3044\u65b9\u306b\u52a0\u3048\u89e3\u8aac\u3057\u307e\u3059\u3002\u4e21\u6a5f\u80fd\u306f\u3001Kinetis KL25\u306e\u9ad8\u901f\u5316\u306b\u52b9\u679c\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u203bFGPIO\uff1aFast GPIO\u3001\u9ad8\u901f\u51e6\u7406\u3067GPIO\u8a18\u8ff0\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304b\u3089\u306e\u5909\u66f4\u5bb9\u6613\u3002<br \/>\n\u203bBME\uff1aBit Manipulation Engine\u306f\u30ec\u30b8\u30b9\u30bf\u8aad\u66f8\u304d\u3068\u30d3\u30c3\u30c8\u64cd\u4f5c\u304c\u540c\u6642\u53ef\u80fd\u306aMCU\u5185\u8535\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u3002\u30b3\u30fc\u30c9\u30b5\u30a4\u30ba\u524a\u6e1b\u3068\u9ad8\u901f\u51e6\u7406\u304c\u540c\u6642\u306b\u53ef\u80fd\u3002<\/p>\n<h2>FRDM-KL25Z GPIO\u306e\u4f7f\u3044\u65b9<\/h2>\n<p>FRDM-KL25Z\u306eGPIO API\u4e00\u89a7\u304c\u4e0b\u8a18\u3067\u3059\u3002MCUXpresso IDE\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u4e0a\u3067gpio_\u3068\u5165\u529b\u3057\u300cCtrl\uff0b\u30b9\u30da\u30fc\u30b9\u30ad\u30fc\u300d\u3092\u62bc\u3059\u3068\u3001GPIO_\u3067\u59cb\u307e\u308bAPI\u304c\u4e00\u89a7\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u304c\u3001Content Assist\u6a5f\u80fd\u3067\u3059\u3002<\/p>\n<figure id=\"attachment_7147\" aria-describedby=\"caption-attachment-7147\" style=\"width: 589px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-7147\" src=\"http:\/\/happytech.jp\/wordpress\/wp-content\/uploads\/2020\/09\/c1135760cd66d7102b2bd5f4c12208f9.jpg\" alt=\"MCUXpresso IDE\u306eContent Assist\u3092\u5229\u7528\u3057\u305fGPIO\u306e\u4f7f\u3044\u65b9\" width=\"589\" height=\"314\" srcset=\"https:\/\/happytech.jp\/wordpress\/wp-content\/uploads\/2020\/09\/c1135760cd66d7102b2bd5f4c12208f9.jpg 589w, https:\/\/happytech.jp\/wordpress\/wp-content\/uploads\/2020\/09\/c1135760cd66d7102b2bd5f4c12208f9-300x160.jpg 300w\" sizes=\"auto, (max-width: 589px) 100vw, 589px\" \/><figcaption id=\"caption-attachment-7147\" class=\"wp-caption-text\">MCUXpresso IDE\u306eContent Assist\u3092\u5229\u7528\u3057\u305fGPIO\u306e\u4f7f\u3044\u65b9<\/figcaption><\/figure>\n<p>\u5148\u982d\u3007\u304cGPIO_API\u95a2\u6570\u3001#\u304cdefine\u3067\u5b9a\u7fa9\u3057\u305f\u30de\u30af\u30ed\u3067\u3059\u3002GPIO_API\u672c\u4f53\u306f\u3001fsl_gpio.h\u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001GPIO_ClearPinsOutput\u3092\u9078\u3076\u3068\u3001\u6b8b\u308a\u306e\u5909\u6570\uff1aGPIO_Type *base\u3068unit32_t mask\u3092\u5165\u529b\u3059\u308c\u3070\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u4e0a\u3067GPIO_ClearPinsOutput API\u306e\u5165\u529b\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<p>*base\u306f\u3001GPIOA\u3084GPIOB\u306a\u3069\u306e\u30dd\u30fc\u30c8\u540d\u3001mask\u306f\u3001\u5236\u5fa1\u5bfe\u8c61\u30d4\u30f3\u4ee5\u5916\u306e\u30de\u30b9\u30af\u3067\u3059\u3002GPIOB\u306e18\u756a\u30d4\u30f3\u304c\u5bfe\u8c61\u306a\u3089\u3001GPIO_ClearPinsOutput(GPIOB, 1&lt;&lt;18)\u3068\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<p>Content Assist\u306e\u4e00\u89a7\u8868\u793a\u30ea\u30b9\u30c8\u3092\u898b\u308b\u3068\u3001FRDM-KL25Z\u306eGPIO API\u306b\u7279\u306b\u5909\u308f\u3063\u305fAPI\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3054\u304f\u4e00\u822c\u7684\u306aGPIO\u306e\u4f7f\u3044\u65b9\u3067\u3042\u308b\u3053\u3068\u304c\u5224\u308a\u307e\u3059\u3002<\/p>\n<p>GPIO\u306b\u9650\u3089\u305aContent Assist\u306f\u3001API\u30ec\u30d5\u30a1\u30ec\u30f3\u30b9\u30de\u30cb\u30e5\u30a2\u30eb\u3092\u53c2\u7167\u3059\u308b\u3088\u308aAPI\u9078\u629e\u3068\u5909\u6570\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u5165\u529b\u304c\u65e9\u304f\u4fbf\u5229\u306b\u3067\u304d\u307e\u3059\u3002\u3082\u3061\u308d\u3093\u3001\u30e6\u30fc\u30b6\u304c\u8ffd\u52a0\u5b9a\u7fa9\u3057\u305f\u30de\u30af\u30ed\u3067\u3082\u81ea\u52d5\u7684\u306b\u30ea\u30b9\u30c8\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>FRDM-KL25Z FGPIO\u306e\u4f7f\u3044\u65b9<\/h3>\n<p><a href=\"https:\/\/www.nxp.com\/docs\/en\/reference-manual\/KL25P80M48SF0RM.pdf\" target=\"_blank\" rel=\"noopener noreferrer\">KL25 Sub-Family Reference Manual<\/a>\u306e\u56f33-9\u306f\u3001MCU\u304b\u3089GPIO Controller\u3078\u306e\u7d4c\u8def\u304c\u3001\u4e0b\u8a182\u7a2e\u985e\u3042\u308b\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_7148\" aria-describedby=\"caption-attachment-7148\" style=\"width: 646px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-7148\" src=\"http:\/\/happytech.jp\/wordpress\/wp-content\/uploads\/2020\/09\/3eda6dbb3f50172280477dd689dc8ef9.jpg\" alt=\"FGPIO\u3068GPIO\u30a2\u30af\u30bb\u30b9\u306e\u9055\u3044\uff08\u51fa\u5c55\uff1aKL25 Sub-Family Reference Manual\uff09\" width=\"646\" height=\"460\" srcset=\"https:\/\/happytech.jp\/wordpress\/wp-content\/uploads\/2020\/09\/3eda6dbb3f50172280477dd689dc8ef9.jpg 646w, https:\/\/happytech.jp\/wordpress\/wp-content\/uploads\/2020\/09\/3eda6dbb3f50172280477dd689dc8ef9-300x214.jpg 300w\" sizes=\"auto, (max-width: 646px) 100vw, 646px\" \/><figcaption id=\"caption-attachment-7148\" class=\"wp-caption-text\">FGPIO\u3068GPIO\u30a2\u30af\u30bb\u30b9\u306e\u9055\u3044\uff08\u51fa\u5c55\uff1aKL25 Sub-Family Reference Manual\uff09<\/figcaption><\/figure>\n<p><span style=\"color: #339966;\">GPIO<\/span>\uff1aMCU\u304b\u3089Peripheral Bridge\u7d4c\u7531\u306eGPIO Controller\u5236\u5fa1<br \/>\n<span style=\"color: #ff6600;\">FGPIO<\/span>\uff1aMCU\u304b\u3089GPIO Controller\u76f4\u63a5\u5236\u5fa1\uff08Single-cycle I\/O\u3068\u3082\u547c\u3070\u308c\u308b\uff09<\/p>\n<p>\u7279\u7b46\u3059\u3079\u304d\u306f\u3001\u30ec\u30b8\u30b9\u30bf\u69cb\u6210\u304cGPIO\u3068FGPIO\u3067\u5168\u304f\u540c\u3058\u306a\u306e\u3067\u3001GPIO\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u8a18\u8ff0\u304c\u3001<br \/>\n<span style=\"color: #008000;\">GPIOB_PTOR = (1&lt;&lt;18); \u00a0\u00a0 <\/span>\/\/ \u00a0GPIO\u3067FRDM-KL25Z\u306e\u8d64LED\uff1aPTB18\u3092\u30c8\u30b0\u30eb<br \/>\n\u306e\u5834\u5408\u3001\u3053\u308c\u3092FGPIO\u3078\u5909\u3048\u308b\u5834\u5408\u306f\u3001<br \/>\n<span style=\"color: #ff6600;\">FGPIOB_PTOR = (1&lt;&lt;18);\u00a0 <\/span>\/\/ FGPIO\u3067FRDM-KL25Z\u306e\u8d64LED\uff1aPTB18\u3092\u30c8\u30b0\u30eb<br \/>\n\u3068GPIO\u3092FGPIO\u3078\u5909\u66f4\u3059\u308c\u3070\u6e08\u3080\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u203bGPIOB_PTOR = (1&lt;&lt;18)\u306f\u3001\u30ec\u30b8\u30b9\u30bf\u660e\u793a\u8a18\u8ff0\u3001\u540c\u3058\u3053\u3068\u3092GPIO_API\u3067\u8a18\u8ff0\u3059\u308c\u3070\u3001GPIO_TogglePinsOutput(GPIOB, 1&lt;&lt;18)\u3068\u306a\u308a\u307e\u3059\u3002\u3069\u3061\u3089\u3082Content Assist\u304c\u4f7f\u3048\u307e\u3059\u3002<\/p>\n<p>\u4f46\u3057\u30012\u30b5\u30a4\u30af\u30eb\u30a2\u30af\u30bb\u30b9GPIO\u306e\u534a\u5206\u3001FGPIO\u306e1\u30b5\u30a4\u30af\u30eb\u30a2\u30af\u30bb\u30b9\u5b9f\u52b9\u901f\u5ea6\u3092\u5f97\u308b\u306b\u306f\u3001\u30b3\u30f3\u30d1\u30a4\u30e9\u6700\u9069\u5316\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u6700\u9069\u5316\u306a\u3057\uff1aNone(-O0)\u304b\u3089\u3001Optimize (-O1)\u3001\u307e\u305f\u306f\u3001\u305d\u308c\u4ee5\u4e0a\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>FRDM-KL25Z BME\u306e\u4f7f\u3044\u65b9<\/h3>\n<p>\u524d\u7ae0GPIO\u7d4c\u8def\u306e\u9014\u4e2d\u306bBME\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u304c\u3042\u308a\u307e\u3059\u3002BME\u3092\u4f7f\u3046\u3068\u3001Peripherals\u30ec\u30b8\u30b9\u30bf\u306e\u8aad\u66f8\u304d\u3068\u30d3\u30c3\u30c8\u64cd\u4f5c\u3092\u540c\u6642\u3001\u3064\u307e\u308a\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u8a18\u8ff01\u500b\u3067\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>BME\u3092\u4f7f\u3046\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306f\u3001\u4e0b\u8a185\u7a2e\u985e\u3067\u3059\u3002<\/p>\n<p>\u66f8\u8fbc\u307f\u6642<br \/>\n\u30fbStore Logical AND\/OR\/XOR (AND\/OR\/XOR)<br \/>\n\u30fbStore Bit Field Insert (BFI)<\/p>\n<p>\u8aad\u8fbc\u307f\u6642<br \/>\n\u30fbLoad-and-Clear 1 bit (LAC1)<br \/>\n\u30fbLoad-and-Set 1 bit (LAS1)<br \/>\n\u30fbLoad Unsigned Bit Filed Extract (UBFX)<\/p>\n<p>\u30a2\u30bb\u30f3\u30d6\u30e9\u8a18\u8ff0\u306b\u4f3c\u3066\u3044\u307e\u3059\u3002\u8a73\u7d30\u306f\u3001<a href=\"https:\/\/www.nxp.com\/docs\/en\/reference-manual\/KL25P80M48SF0RM.pdf\" target=\"_blank\" rel=\"noopener noreferrer\">KL25 Sub-Family Reference Manual<\/a>\u306e17\u7ae0BME\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>BME\u3092\u4f7f\u3046\u3068\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u8a18\u8ff0\u304c\u6e1b\u308b\u306e\u3067\u3001\u51e6\u7406\u6642\u9593\u3068\u30b3\u30fc\u30c9\u30b5\u30a4\u30ba\u306e\u4e21\u65b9\u3092\u8efd\u6e1b\u3067\u304d\u9ad8\u901f\u5316\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u4e00\u822c\u7684\u306aGPIO\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3067\u8a18\u8ff0\u3057\u305f\u5468\u8fba\u56de\u8def\u306e\u521d\u671f\u8a2d\u5b9a\u3084\u7121\u9650\u30eb\u30fc\u30d7\u5185\u51e6\u7406\u3092\u3042\u3089\u305f\u3081\u3066\u898b\u76f4\u3059\u3068\u3001BME\u304c\u4f7f\u3048\u308b\u7b87\u6240\u304c\u898b\u3064\u304b\u308a\u307e\u3059\u3002<\/p>\n<h2>GPIO\u3001FGPIO\u3001BME\u306e\u4f7f\u3044\u65b9<\/h2>\n<p>\u6700\u521d\u306b1\u7ae0\u3067\u793a\u3057\u305f\u4e00\u822c\u7684\u306aGPIO\u8a18\u8ff0\u3067\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u958b\u767a\u3057\u3001\u6700\u5f8c\u306e\u9ad8\u901f\u5316\u624b\u6bb5\u3068\u3057\u3066FGPIO\u3084BME\u3092\u4f7f\u3046\u306e\u304c\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u7406\u7531\u306f\u3001FGPIO\u306f\u6700\u9069\u5316\u3001BME\u306f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u5185\u306b\u30ec\u30b8\u30b9\u30bf\u8aad\u66f8\u304d\u3068\u30d3\u30c3\u30c8\u64cd\u4f5c\u306e\u4e21\u65b9\u304c\u5fc5\u8981\u306a\u500b\u6240\u304c\u3042\u308b\u3053\u3068\u304c\u524d\u63d0\u3060\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>FGPIO\u306fGPIO\u8a18\u8ff0\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304b\u3089\u306e\u5909\u66f4\u304c\u5bb9\u6613\u3067\u3059\u3002\u30b3\u30f3\u30d1\u30a4\u30e9\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u6700\u9069\u5316\u306a\u3057\uff1aNone(-O0)\u3067\u30b3\u30fc\u30c9\u5909\u66f4\u3057\u3001\u6c42\u3081\u308b\u9ad8\u901f\u8981\u4ef6\u304c\u6e80\u305f\u3055\u308c\u308c\u3070\u3001\u5229\u7528\u4fa1\u5024\u306f\u9ad8\u3044\u3067\u3057\u3087\u3046\u3002\u3053\u306e\u5834\u5408\u306f\u3001100%\u306e1\u30b5\u30a4\u30af\u30eb\u30a2\u30af\u30bb\u30b9\u5b9f\u52b9\u901f\u5ea6\u307e\u3067\u306f\u5f97\u3089\u308c\u307e\u305b\u3093\u304c\u3001FGPIO\u9ad8\u901f\u5316\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u7d4c\u9a13\u4e0a\u3001\u6700\u9069\u5316\u5229\u7528\u306b\u7b46\u8005\u306f\u6d88\u6975\u7684\u3067\u3059\u3002\u69d8\u3005\u306a\u526f\u4f5c\u7528\u3082\u3042\u308b\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u6700\u9069\u5316\u3088\u308a\u3082\u8d85\u4f4e\u6d88\u8cbb\u96fb\u529b\/\u4f4e\u30b3\u30b9\u30c8\u304c\u7279\u5fb4\u306eFRDM-KL25Z\uff08Cortex-M0+\/48MHz\uff09\u958b\u767a\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u518d\u5229\u7528\u304c\u53ef\u80fd\u3067\u3001\u3088\u308a\u9ad8\u901f\u306a<a href=\"https:\/\/www.nxp.com\/design\/development-boards\/freedom-development-boards\/mcu-boards\/freedom-development-platform-for-kinetis-k64-k63-and-k24-mcus:FRDM-K64F\" target=\"_blank\" rel=\"noopener noreferrer\">FRDM-K64F<\/a>\uff08Cortex-M4\/120MHz\uff09\u306a\u3069\u3078MCU\u5909\u66f4\u304c\u53ef\u80fd\u306a\u3089\u3001\u3053\u306e\u65b9\u6cd5\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f46\u3057\u3001MCU\u5909\u66f4\u304c\u3067\u304d\u306a\u3044\u6642\u306e\u52b9\u679c\u7684\u306a\u9ad8\u901f\u5316\u624b\u6bb5\u3068\u3057\u3066\u3001\u672c\u7a3f\u8aac\u660e\u306eFGPIO\u3068BME\u3092\u77e5\u3063\u3066\u304a\u304f\u3053\u3068\u306f\u91cd\u8981\u3067\u3059\u3002<\/p>\n<p>FGPIO\u3084BME\u306f\u3001\u4f4e\u4fa1\u683c\u3067\u5165\u624b\u6027\u3082\u826f\u3044FRDM-KL25Z\u306b\u521d\u3081\u304b\u3089\u5b9f\u88c5\u6e08\u307f\u3067\u3059\u3002Kinetis KL25\u30d5\u30a1\u30df\u30eaMCU\u306e\u6c4e\u7528\u6027\u3068\u9ad8\u3044\u62e1\u5f35\u6027\u3092\u793a\u3059\u826f\u3044\u4f8b\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u65e7Freescale\u304b\u30892013\u5e74\u9803\u767a\u58f2\u3068\u5c11\u3057\u53e4\u3044\u611f\u3082\u3042\u308bMCU\u3067\u3059\u304c\u3001\u5341\u5206\u73fe\u5f79\u3067\u4f7f\u3048\u307e\u3059\u3002<\/p>\n<h3>\u3042\u3068\u304c\u304d\uff1a3.3V MCU\u30685V CMOS\u30c7\u30d0\u30a4\u30b9\u76f4\u7d50\u52d5\u4f5c\u78ba\u8a8d\u5b8c\u4e86<\/h3>\n<p><a href=\"https:\/\/happytech.jp\/bSTM32G0X.html\" target=\"_blank\" rel=\"noopener noreferrer\">STM32G0x\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8<\/a>\u306b\u4f7f\u7528\u3057\u305f3.3V\u52d5\u4f5cMCU\uff1aSTM32G071RB\u30825V\u8010\u5727GPIO\u30d4\u30f3\u306f\u6301\u3061\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u3001CMOS\u30c7\u30d0\u30a4\u30b9\u76f4\u7d50\u30675V LCD\u3092\u99c6\u52d5\u3057\u3001\u5b89\u5b9a\u52d5\u4f5c\u3092\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><span style=\"color: #ff0000;\">\u8a02\u6b63\uff1aSTM32G071RB\u306b\u306f<\/span>\u3001<a href=\"https:\/\/www.stmcu.jp\/design\/document\/datasheet\/63278\/\" target=\"_blank\" rel=\"noopener noreferrer\">5V\u8010\u5727\u30d4\u30f3<\/a><span style=\"color: #ff0000;\">\u304c\u3042\u308a\u307e\u3059\u3002\u304a\u8a6b\u3073\u3057\u3066\u8a02\u6b63\u3044\u305f\u3057\u307e\u3059<\/span>\u3002<\/p>\n<p>\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u4e2d\u306e3.3V\u52d5\u4f5cFRDM-KL25Z\u30685V LCD\u306eCMOS\u30c7\u30d0\u30a4\u30b9\u76f4\u7d50\u3082\u3001\u540c\u69d8\u306b\u554f\u984c\u306a\u304f\u52d5\u4f5c\u3059\u308b\u30cf\u30ba\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>5V\u8010\u5727GPIO\u30d4\u30f3\u304c\u7121\u30443.3V\u52d5\u4f5cFRDM-KL25Z\u3078\u30015V LCD\u3092CM <a href=\"https:\/\/happytech.jp\/wordpress\/2020\/09\/25\/how-to-use-frdm-kl25z-gpio\/\" class=\"read-more\">Read More &#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,60,29,487],"tags":[621,622,27,53,51,139,504,582,594],"class_list":["post-7136","post","type-post","status-publish","format-standard","hentry","category-mcu","category-kinetis-mcu","category-cortex-m0puls-core","category-cortex-m4-core","tag-fgpio","tag-bme","tag-arm","tag-cortex-m0puls","tag-kinetis-l","tag-gpio","tag-frdm-kl25z","tag-5v","tag-frdm-k64f"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>FRDM-KL25Z GPIO\u306e\u4f7f\u3044\u65b9 - IoT MCU\u306eHappyTech<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/happytech.jp\/wordpress\/2020\/09\/25\/how-to-use-frdm-kl25z-gpio\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"FRDM-KL25Z GPIO\u306e\u4f7f\u3044\u65b9 - IoT MCU\u306eHappyTech\" \/>\n<meta property=\"og:description\" content=\"5V\u8010\u5727GPIO\u30d4\u30f3\u304c\u7121\u30443.3V\u52d5\u4f5cFRDM-KL25Z\u3078\u30015V LCD\u3092CM Read More ...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/happytech.jp\/wordpress\/2020\/09\/25\/how-to-use-frdm-kl25z-gpio\/\" \/>\n<meta property=\"og:site_name\" content=\"IoT MCU\u306eHappyTech\" \/>\n<meta property=\"article:published_time\" content=\"2020-09-24T18:16:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-10-19T14:27:35+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/happytech.jp\/wordpress\/wp-content\/uploads\/2020\/09\/c1135760cd66d7102b2bd5f4c12208f9.jpg\" \/>\n<meta name=\"author\" content=\"WithHappy\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@HappyTechDigest\" \/>\n<meta name=\"twitter:site\" content=\"@HappyTechDigest\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"WithHappy\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/happytech.jp\\\/wordpress\\\/2020\\\/09\\\/25\\\/how-to-use-frdm-kl25z-gpio\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/happytech.jp\\\/wordpress\\\/2020\\\/09\\\/25\\\/how-to-use-frdm-kl25z-gpio\\\/\"},\"author\":{\"name\":\"WithHappy\",\"@id\":\"https:\\\/\\\/happytech.jp\\\/wordpress\\\/#\\\/schema\\\/person\\\/bd5f0f8b26d37eb02da979908ee4d501\"},\"headline\":\"FRDM-KL25Z GPIO\u306e\u4f7f\u3044\u65b9\",\"datePublished\":\"2020-09-24T18:16:51+00:00\",\"dateModified\":\"2020-10-19T14:27:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/happytech.jp\\\/wordpress\\\/2020\\\/09\\\/25\\\/how-to-use-frdm-kl25z-gpio\\\/\"},\"wordCount\":288,\"publisher\":{\"@id\":\"https:\\\/\\\/happytech.jp\\\/wordpress\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/happytech.jp\\\/wordpress\\\/2020\\\/09\\\/25\\\/how-to-use-frdm-kl25z-gpio\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/happytech.jp\\\/wordpress\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/c1135760cd66d7102b2bd5f4c12208f9.jpg\",\"keywords\":[\"FGPIO\",\"BME\",\"ARM\u30de\u30a4\u30b3\u30f3\",\"Cortex-M0+\",\"Kinetis L\",\"GPIO\",\"FRDM-KL25Z\",\"5V\u8010\u5727\",\"FRDM-K64F\"],\"articleSection\":[\"MCU\uff1a\u30de\u30a4\u30b3\u30f3\",\"Kinetis\u30de\u30a4\u30b3\u30f3\",\"Cortex-M0+\u30b3\u30a2\",\"Cortex-M4\u30b3\u30a2\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/happytech.jp\\\/wordpress\\\/2020\\\/09\\\/25\\\/how-to-use-frdm-kl25z-gpio\\\/\",\"url\":\"https:\\\/\\\/happytech.jp\\\/wordpress\\\/2020\\\/09\\\/25\\\/how-to-use-frdm-kl25z-gpio\\\/\",\"name\":\"FRDM-KL25Z GPIO\u306e\u4f7f\u3044\u65b9 - IoT MCU\u306eHappyTech\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/happytech.jp\\\/wordpress\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/happytech.jp\\\/wordpress\\\/2020\\\/09\\\/25\\\/how-to-use-frdm-kl25z-gpio\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/happytech.jp\\\/wordpress\\\/2020\\\/09\\\/25\\\/how-to-use-frdm-kl25z-gpio\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/happytech.jp\\\/wordpress\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/c1135760cd66d7102b2bd5f4c12208f9.jpg\",\"datePublished\":\"2020-09-24T18:16:51+00:00\",\"dateModified\":\"2020-10-19T14:27:35+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/happytech.jp\\\/wordpress\\\/2020\\\/09\\\/25\\\/how-to-use-frdm-kl25z-gpio\\\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/happytech.jp\\\/wordpress\\\/2020\\\/09\\\/25\\\/how-to-use-frdm-kl25z-gpio\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/happytech.jp\\\/wordpress\\\/2020\\\/09\\\/25\\\/how-to-use-frdm-kl25z-gpio\\\/#primaryimage\",\"url\":\"https:\\\/\\\/happytech.jp\\\/wordpress\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/c1135760cd66d7102b2bd5f4c12208f9.jpg\",\"contentUrl\":\"https:\\\/\\\/happytech.jp\\\/wordpress\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/c1135760cd66d7102b2bd5f4c12208f9.jpg\",\"width\":589,\"height\":314,\"caption\":\"MCUXpresso IDE\u306eContent Assist\u3092\u5229\u7528\u3057\u305fGPIO\u306e\u4f7f\u3044\u65b9\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/happytech.jp\\\/wordpress\\\/2020\\\/09\\\/25\\\/how-to-use-frdm-kl25z-gpio\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\\\/\\\/happytech.jp\\\/wordpress\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"FRDM-KL25Z GPIO\u306e\u4f7f\u3044\u65b9\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/happytech.jp\\\/wordpress\\\/#website\",\"url\":\"https:\\\/\\\/happytech.jp\\\/wordpress\\\/\",\"name\":\"IoT MCU\u306eHappyTech\",\"description\":\"IoT MCU\u958b\u767a\u304a\u5f79\u7acb\u3061\u60c5\u5831\u6e80\u8f09\",\"publisher\":{\"@id\":\"https:\\\/\\\/happytech.jp\\\/wordpress\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/happytech.jp\\\/wordpress\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/happytech.jp\\\/wordpress\\\/#organization\",\"name\":\"HappyTech\",\"url\":\"https:\\\/\\\/happytech.jp\\\/wordpress\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/happytech.jp\\\/wordpress\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/happytech.jp\\\/wordpress\\\/wp-content\\\/uploads\\\/2013\\\/09\\\/cropped-HappyTechBlog.png\",\"contentUrl\":\"https:\\\/\\\/happytech.jp\\\/wordpress\\\/wp-content\\\/uploads\\\/2013\\\/09\\\/cropped-HappyTechBlog.png\",\"width\":1420,\"height\":349,\"caption\":\"HappyTech\"},\"image\":{\"@id\":\"https:\\\/\\\/happytech.jp\\\/wordpress\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/HappyTechDigest\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/happytech.jp\\\/wordpress\\\/#\\\/schema\\\/person\\\/bd5f0f8b26d37eb02da979908ee4d501\",\"name\":\"WithHappy\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf8736d9e6685dd81af92f2abfa76e76a040fc3df1ce7dfd5bd40671f484452c?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf8736d9e6685dd81af92f2abfa76e76a040fc3df1ce7dfd5bd40671f484452c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf8736d9e6685dd81af92f2abfa76e76a040fc3df1ce7dfd5bd40671f484452c?s=96&d=mm&r=g\",\"caption\":\"WithHappy\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"FRDM-KL25Z GPIO\u306e\u4f7f\u3044\u65b9 - IoT MCU\u306eHappyTech","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/happytech.jp\/wordpress\/2020\/09\/25\/how-to-use-frdm-kl25z-gpio\/","og_locale":"ja_JP","og_type":"article","og_title":"FRDM-KL25Z GPIO\u306e\u4f7f\u3044\u65b9 - IoT MCU\u306eHappyTech","og_description":"5V\u8010\u5727GPIO\u30d4\u30f3\u304c\u7121\u30443.3V\u52d5\u4f5cFRDM-KL25Z\u3078\u30015V LCD\u3092CM Read More ...","og_url":"https:\/\/happytech.jp\/wordpress\/2020\/09\/25\/how-to-use-frdm-kl25z-gpio\/","og_site_name":"IoT MCU\u306eHappyTech","article_published_time":"2020-09-24T18:16:51+00:00","article_modified_time":"2020-10-19T14:27:35+00:00","og_image":[{"url":"http:\/\/happytech.jp\/wordpress\/wp-content\/uploads\/2020\/09\/c1135760cd66d7102b2bd5f4c12208f9.jpg","type":"","width":"","height":""}],"author":"WithHappy","twitter_card":"summary_large_image","twitter_creator":"@HappyTechDigest","twitter_site":"@HappyTechDigest","twitter_misc":{"\u57f7\u7b46\u8005":"WithHappy","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"1\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/happytech.jp\/wordpress\/2020\/09\/25\/how-to-use-frdm-kl25z-gpio\/#article","isPartOf":{"@id":"https:\/\/happytech.jp\/wordpress\/2020\/09\/25\/how-to-use-frdm-kl25z-gpio\/"},"author":{"name":"WithHappy","@id":"https:\/\/happytech.jp\/wordpress\/#\/schema\/person\/bd5f0f8b26d37eb02da979908ee4d501"},"headline":"FRDM-KL25Z GPIO\u306e\u4f7f\u3044\u65b9","datePublished":"2020-09-24T18:16:51+00:00","dateModified":"2020-10-19T14:27:35+00:00","mainEntityOfPage":{"@id":"https:\/\/happytech.jp\/wordpress\/2020\/09\/25\/how-to-use-frdm-kl25z-gpio\/"},"wordCount":288,"publisher":{"@id":"https:\/\/happytech.jp\/wordpress\/#organization"},"image":{"@id":"https:\/\/happytech.jp\/wordpress\/2020\/09\/25\/how-to-use-frdm-kl25z-gpio\/#primaryimage"},"thumbnailUrl":"http:\/\/happytech.jp\/wordpress\/wp-content\/uploads\/2020\/09\/c1135760cd66d7102b2bd5f4c12208f9.jpg","keywords":["FGPIO","BME","ARM\u30de\u30a4\u30b3\u30f3","Cortex-M0+","Kinetis L","GPIO","FRDM-KL25Z","5V\u8010\u5727","FRDM-K64F"],"articleSection":["MCU\uff1a\u30de\u30a4\u30b3\u30f3","Kinetis\u30de\u30a4\u30b3\u30f3","Cortex-M0+\u30b3\u30a2","Cortex-M4\u30b3\u30a2"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/happytech.jp\/wordpress\/2020\/09\/25\/how-to-use-frdm-kl25z-gpio\/","url":"https:\/\/happytech.jp\/wordpress\/2020\/09\/25\/how-to-use-frdm-kl25z-gpio\/","name":"FRDM-KL25Z GPIO\u306e\u4f7f\u3044\u65b9 - IoT MCU\u306eHappyTech","isPartOf":{"@id":"https:\/\/happytech.jp\/wordpress\/#website"},"primaryImageOfPage":{"@id":"https:\/\/happytech.jp\/wordpress\/2020\/09\/25\/how-to-use-frdm-kl25z-gpio\/#primaryimage"},"image":{"@id":"https:\/\/happytech.jp\/wordpress\/2020\/09\/25\/how-to-use-frdm-kl25z-gpio\/#primaryimage"},"thumbnailUrl":"http:\/\/happytech.jp\/wordpress\/wp-content\/uploads\/2020\/09\/c1135760cd66d7102b2bd5f4c12208f9.jpg","datePublished":"2020-09-24T18:16:51+00:00","dateModified":"2020-10-19T14:27:35+00:00","breadcrumb":{"@id":"https:\/\/happytech.jp\/wordpress\/2020\/09\/25\/how-to-use-frdm-kl25z-gpio\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/happytech.jp\/wordpress\/2020\/09\/25\/how-to-use-frdm-kl25z-gpio\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/happytech.jp\/wordpress\/2020\/09\/25\/how-to-use-frdm-kl25z-gpio\/#primaryimage","url":"https:\/\/happytech.jp\/wordpress\/wp-content\/uploads\/2020\/09\/c1135760cd66d7102b2bd5f4c12208f9.jpg","contentUrl":"https:\/\/happytech.jp\/wordpress\/wp-content\/uploads\/2020\/09\/c1135760cd66d7102b2bd5f4c12208f9.jpg","width":589,"height":314,"caption":"MCUXpresso IDE\u306eContent Assist\u3092\u5229\u7528\u3057\u305fGPIO\u306e\u4f7f\u3044\u65b9"},{"@type":"BreadcrumbList","@id":"https:\/\/happytech.jp\/wordpress\/2020\/09\/25\/how-to-use-frdm-kl25z-gpio\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/happytech.jp\/wordpress\/"},{"@type":"ListItem","position":2,"name":"FRDM-KL25Z GPIO\u306e\u4f7f\u3044\u65b9"}]},{"@type":"WebSite","@id":"https:\/\/happytech.jp\/wordpress\/#website","url":"https:\/\/happytech.jp\/wordpress\/","name":"IoT MCU\u306eHappyTech","description":"IoT MCU\u958b\u767a\u304a\u5f79\u7acb\u3061\u60c5\u5831\u6e80\u8f09","publisher":{"@id":"https:\/\/happytech.jp\/wordpress\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/happytech.jp\/wordpress\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/happytech.jp\/wordpress\/#organization","name":"HappyTech","url":"https:\/\/happytech.jp\/wordpress\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/happytech.jp\/wordpress\/#\/schema\/logo\/image\/","url":"https:\/\/happytech.jp\/wordpress\/wp-content\/uploads\/2013\/09\/cropped-HappyTechBlog.png","contentUrl":"https:\/\/happytech.jp\/wordpress\/wp-content\/uploads\/2013\/09\/cropped-HappyTechBlog.png","width":1420,"height":349,"caption":"HappyTech"},"image":{"@id":"https:\/\/happytech.jp\/wordpress\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/HappyTechDigest"]},{"@type":"Person","@id":"https:\/\/happytech.jp\/wordpress\/#\/schema\/person\/bd5f0f8b26d37eb02da979908ee4d501","name":"WithHappy","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/cf8736d9e6685dd81af92f2abfa76e76a040fc3df1ce7dfd5bd40671f484452c?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/cf8736d9e6685dd81af92f2abfa76e76a040fc3df1ce7dfd5bd40671f484452c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cf8736d9e6685dd81af92f2abfa76e76a040fc3df1ce7dfd5bd40671f484452c?s=96&d=mm&r=g","caption":"WithHappy"}}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/happytech.jp\/wordpress\/wp-json\/wp\/v2\/posts\/7136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/happytech.jp\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/happytech.jp\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/happytech.jp\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/happytech.jp\/wordpress\/wp-json\/wp\/v2\/comments?post=7136"}],"version-history":[{"count":2,"href":"https:\/\/happytech.jp\/wordpress\/wp-json\/wp\/v2\/posts\/7136\/revisions"}],"predecessor-version":[{"id":7235,"href":"https:\/\/happytech.jp\/wordpress\/wp-json\/wp\/v2\/posts\/7136\/revisions\/7235"}],"wp:attachment":[{"href":"https:\/\/happytech.jp\/wordpress\/wp-json\/wp\/v2\/media?parent=7136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/happytech.jp\/wordpress\/wp-json\/wp\/v2\/categories?post=7136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/happytech.jp\/wordpress\/wp-json\/wp\/v2\/tags?post=7136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}