samrajaf / pinguino32

Automatically exported from code.google.com/p/pinguino32
0 stars 1 forks source link

PWM pin 12 analogwrite value not executing #44

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

What is the expected output? pin 12 to execute the analogwrite value given.
 What do you see instead? 
led stays bright no matter what analogwrite value given.

What version of the product are you using? On what operating system?
rev778 pinguino  windows 7 64 bit SP1

Please provide any additional information below.
// test PWM with Pinguino
// Jean-Pierre MANDON 2009

void setup()
{
}

void loop()
{
        analogWrite(11,5);    // 50% square wave on output 11
        analogWrite(12,5);    // 10% square wave on output 12
}

pin 11- volts .27 @ analog value 5  LED dim
pin 12- volts 4.85 @ analog value 5 led bright

Original issue reported on code.google.com by fcw...@gmail.com on 25 Apr 2013 at 12:59

GoogleCodeExporter commented 8 years ago

Original comment by rblanchot@gmail.com on 26 Apr 2013 at 3:23

GoogleCodeExporter commented 8 years ago
new  CCP1CON = 0b00001100;   old CCP1CON = 0b00001111;

Regis
 i found the old post on the forum and executed the change and now the analogwrite is working on pin 12.

Original comment by fcw...@gmail.com on 27 Apr 2013 at 11:13

GoogleCodeExporter commented 8 years ago
Fixed in rev. 793.
Can you confirm ?

Original comment by rblanchot@gmail.com on 2 May 2013 at 12:39

GoogleCodeExporter commented 8 years ago
I will check later today and get back to you.

Original comment by fcw...@gmail.com on 2 May 2013 at 1:23

GoogleCodeExporter commented 8 years ago
regis,
 this does not work i went back to my pwm.c which works.

Original comment by fcw...@gmail.com on 2 May 2013 at 6:42

Attachments:

GoogleCodeExporter commented 8 years ago
Fred Warden

Original comment by fcw...@gmail.com on 3 May 2013 at 2:44

GoogleCodeExporter commented 8 years ago

Original comment by rblanchot@gmail.com on 31 Aug 2013 at 9:51