Hello,
I just begin with K60 micro and installed MCUxpresso, when i used the config tools to add a GPIO port and when i use GPIO_WritePinOutput but i see that high and low level of GPIO is between 0.7 and 0.3 Volt can someone help me to resolve this problem
Thank u all.
Hi Amine,
Do you test the board directly or with the TWR-ELEV board?
I just test the TWR-K60D100 board directly, then test the A16.
I test the SDK gpio_led_output project in the SDK code, which can be downloaded from this link:
Welcome | MCUXpresso SDK Builder
I modify these point:
#define BOARD_LED_ORANGE_GPIO_PIN 14U //11U
void BOARD_InitPins(void) {
CLOCK_EnableClock(kCLOCK_PortA); /* Port A Clock Gate Control: Clock enabled */
CLOCK_EnableClock(kCLOCK_PortE); /* Port E Clock Gate Control: Clock enabled */
PORT_SetPinMux(PORTA, PIN11_IDX, kPORT_MuxAsGpio); /* PORTA11 (pin L9) is configured as PTA11 */
PORT_SetPinMux(PORTE, PIN8_IDX, kPORT_MuxAlt3); /* PORTE8 (pin F3) is configured as UART5_TX */
PORT_SetPinMux(PORTE, PIN9_IDX, kPORT_MuxAlt3); /* PORTE9 (pin F2) is configured as UART5_RX */
PORT_SetPinMux(PORTA, 14u, kPORT_MuxAsGpio); //kerry add
}
Then test it, the PTA14 GPIO wave is:
You can find it works OK.
So, please try it again on your side.
Have a great day,
Kerry
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------