AnsweredAssumed Answered

BitIO enable/disable pin

Question asked by Avner Gidron on Nov 23, 2015
Latest reply on Nov 24, 2015 by Avner Gidron


I want  to use the processor expert BitIoLddin order to enable and  disable output and input pins.

I  read this tutorial: Tutorial: Bits and Pins with Kinetis and the FRDM-KL25Z Board | MCU on Eclipse

I am  currently able to turn the red led on and off using the BitIO component (which have the BitIOLdd).

My code is doing the following:

(1) Turn on  Red led. (Bit1_SetVal();)

(2) Turn off Red Led. (Bit1_ClrVal();)

The problem is that after (2) runs and turn off the led it turns on again  in the next line of code...