Quantcast
Channel: MSP430 Technical Forums
Viewing all articles
Browse latest Browse all 2077

analogWrite not work with my tiva c

$
0
0

I tried many times but it seem some bug with the energia.

void setup()
{
  pinMode(PF_2,OUTPUT);
  analogWrite (PF_2,250);
}

void loop(){
}

When analogWrite value between 0-254, the PF_2 are 0v.

However, when analogWrite value is 255, PF_2 is 3.3v. :blink:

 

I tried with some other pins but still got the same result. Is it a bug or other problems?

 

board: TM4C1294XL

 

thanks :biggrin:


Viewing all articles
Browse latest Browse all 2077

Trending Articles