Go to advanced search

by joemarshall
Mon Dec 15, 2014 12:18 pm
Forum: Bare metal, Assembly language
Topic: PWMCLK_DIV (and TOSLink output)
Replies: 5
Views: 1940

Re: PWMCLK_DIV (and TOSLink output)

Brilliant, thanks for that detail.

Is there some document I could have read to know that? Some kind of raspberry PI documentation in addition to the Broadcom chip docs, or is it just something that you need to be reading the code to work out?

Joe
by joemarshall
Fri Dec 12, 2014 5:08 pm
Forum: Bare metal, Assembly language
Topic: PWMCLK_DIV (and TOSLink output)
Replies: 5
Views: 1940

Re: PWMCLK_DIV (and TOSLink output)

Aha, Found the general purpose timer control registers which have the same pair of names (clock control and clock divisor) and the 12 bit shift on the integer divisor, but also a fractional part in the divisor, and settings for the frequency shifting algorithm to do fractional divisors. So maybe it'...
by joemarshall
Fri Dec 12, 2014 2:26 pm
Forum: Bare metal, Assembly language
Topic: PWMCLK_DIV (and TOSLink output)
Replies: 5
Views: 1940

PWMCLK_DIV (and TOSLink output)

Hi, In various bits of PWM related code, I've seen people setting the PWM clock divisor with: PWMCLK_DIV , setting the clock source with PWMCLK_CNTL etc. The normal PWM registers are defined in the broadcom PDF on here, but I can't find anywhere that defines these registers? What I particularly want...

Go to advanced search