AnsweredAssumed Answered

MKE06Z128VLH4 and open collector circuit

Question asked by Yuriy Dovgalyuk on Apr 30, 2015
Latest reply on May 3, 2015 by Kerry Zhou

Hi all,

 

Just want to confirm what I read in ref. manual.

Is that true that only PTA2 and PTA3 (on MKE06Z128VLH4) can be used for open collector circuit?

If so, is the following seq. enough for configuration of the input/output for open collector circuit:

 

GPIOA_PDDR |= ( GPIO_PDD_PIN_2 );
GPIOA_PIDR &= ~( GPIO_PDD_PIN_2 );
PORT_PUE0  |= ( GPIO_PDD_PIN_2 );
/* Set initialization value to high*/
GPIOA_PDOR |= ( GPIO_PDD_PIN_2 );

 

Is there any possibility go get interrupt when pin 2 is falling? Should I use KBI for that purpose, would it work?

 

Thanks.

Outcomes