Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Analog write on PIC32 Olimex board ?!
30-08-2012, 11:23 AM,
#1
Analog write on PIC32 Olimex board ?!
I cant get any of the pins to wirk with analogwrite ... Am i missing something ?!?
Tried to look for documentations everywhere but it ends up being quite confusing !
Id apreciate for help, please. Thanks !
The board is the one from Olimex ( Normal PIC32)
Reply
30-08-2012, 12:29 PM,
#2
RE: Analog write on PIC32 Olimex board ?!
Which exact board, which version of Pinguino IDE and what exact code did you use?

With so little detail how can anyone help....

John
Reply
30-08-2012, 03:52 PM,
#3
RE: Analog write on PIC32 Olimex board ?!
as far as i know this family has no analog outputs , only analog inputs.
The Olimex boards have a few of these inputs wired to the Arduino analog pins. Nothing to 'write' there. Perhaps you can use PWM instead.
Reply
31-08-2012, 09:03 AM, (This post was last modified: 31-08-2012, 09:04 AM by iyahdub.)
#4
RE: Analog write on PIC32 Olimex board ?!
Bless
The board is the Olimex with the ARDUINO like board with PIC32MX440F256H ( https://www.olimex.com/dev/pic32-pinguino.html ).
Pinguino IDE version used the X.3. As to the code used just a fade ( among others) example.
Can you p[lease direct me to info about the PWM ?!?
I have a fair good background on the AVR, and a little bit of knowledge on PIC Assembly and C on the PIC16X family (Which i been learning slowly lately).
Thanks in advance

PS- Can i assume then that the analogWrite was only for the PIC18 family ?!
Reply
03-09-2012, 09:19 AM,
#5
RE: Analog write on PIC32 Olimex board ?!
I am not using the Pinguino software and hence was mislead by the name of this function, in fact analogWrite should already be implemented as a PWM output. I cannot say if this function is correctly implemented for this PIC, you will need somebody else's knowledge, sorry.
Reply
03-09-2012, 03:59 PM,
#6
RE: Analog write on PIC32 Olimex board ?!
It looks to be in p32/include/pinguino/core/pwm.c so probably worth a look to see if it is what you want / expect.

John
Reply
03-09-2012, 10:52 PM,
#7
RE: Analog write on PIC32 Olimex board ?!
Hi

On PIC32_PINGUINO board, PWM output are on:
pin D0
pin D1
pin D2

analogWrite(0,512); should work as expected.

regards
Jean-Pierre
Reply
07-09-2012, 05:34 AM,
#8
RE: Analog write on PIC32 Olimex board ?!
Thanks... I done a small mention on my blog, in case someone comes across same question !
Thanks for all the help !

http://dubworks.blogspot.co.uk/2012/09/p...-info.html
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)