setting PWM using bootstrap

For SAMA5D2 Xplained, SAMA5D3 Xplained and SAMA5D4 Xplained

Moderator: nferre

biramb
Posts: 2
Joined: Tue Nov 14, 2017 3:44 pm

setting PWM using bootstrap

Tue Nov 14, 2017 4:08 pm

Hey,
I'm using SAMA5d2, with at91bootstrap version 3.8.7.
I'm trying to set PWM registers from the bootstrap, but it doesn't matter what I do it's not working for me.
I'll be happy to get some help.
Thanks
blue_z
Location: USA
Posts: 1547
Joined: Thu Apr 19, 2007 10:15 pm

Re: setting PWM using bootstrap

Tue Nov 14, 2017 9:49 pm

biramb wrote:I'm trying to set PWM registers from the bootstrap, but it doesn't matter what I do it's not working for me.
That's too vague, especially the "not working".
But for a WAG, have you enabled its peripheral clock?

Regards
biramb
Posts: 2
Joined: Tue Nov 14, 2017 3:44 pm

Re: setting PWM using bootstrap

Wed Nov 15, 2017 10:26 am

I think you are right, but I can't find in the dataSheet how I enable the peripherial clock...
I would be happy for some help.
BTW, when I'm writing to the registers it seem like I can't write to them althogh its Read/Write or Write-only registers.
Thanks
blue_z
Location: USA
Posts: 1547
Joined: Thu Apr 19, 2007 10:15 pm

Re: setting PWM using bootstrap

Wed Nov 15, 2017 9:43 pm

biramb wrote:I think you are right, but I can't find in the dataSheet how I enable the peripherial [sic] clock...
Did you try a text search for "peripheral clock" (note the proper spelling) in the datasheet?
Peripheral clocks are managed by the Power Management Controller, PMC.

Try a search for "peripheral clock" in the AT91Bootstrap source code for existing routines to use.

Look at the Software Package of your SoC for code examples using the PWM.

biramb wrote:BTW, when I'm writing to the registers it seem like I can't write to them althogh its Read/Write or Write-only registers.
Your description is an interpretation of the results, and in the form of a negative, which is imprecise.
A proper description mentions what you did, and then concisely what is observed (rather than what did not happen).
Use a Venn diagram to teach yourself why a negative statement is ambiguous.

Regards

Return to “SAMA5 Xplained”

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest