Hi Ramazan,
Would you please show me the full part number of K10? There is no PTB17 pin on MK10DN32VFM5.
You can refer below setps to toggle the output of PTB17.
1. Enable the clock gate of PORTB. ( SIM_SCGC5[PORTB]=1 )
2. PTB17 pin is default as TSI function, you should to select ALT1 mux as GPIO function. ( PORTB_PCR17[MUX] = 001)
3. Configure PTB17 Pin as general-purpose output. ( GPIOB_PDDR |= 0x20000 )
4. Toggle Output of PTB17 Pin. ( GPIOB_PTOR |= 0x20000 )
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------