Re: [beagleboard] Re: How to use clock output (CLKOUT2)

2014-04-01 Thread Eric Fort
What frequency do you want?  first of all what you need to know is the
frequency of CLKIN.  Best I can tell that defaults to 24Mhz.  from there
you can pretty easily find values to fit closely what you need for clock
output frequencies.  For that matter if you're unsure write a loop that
produces a table of values for a given CLKIN frequency.  in generating such
a table using a CLKIN frequency of say 1MHZ could work quite nicely as the
values can be easily scaled from such a table.

Eric


On Tue, Apr 1, 2014 at 9:46 AM, Gregory Holst wrote:

> So I did a little searching and found some help in the documentation for
> the processor http://www.ti.com/lit/ug/spruh73j/spruh73j.pdf on page 880.
>  It shows a formula for the frequency but I don't understand the M and Ns.
>  It has something to do with the phase locked loop and creating a super
> high frequency clock using some fancy circuitry and I really just need to
> find the default values of M and N to confirm that the output will be
> around 24Mhz.  Can anyone interpret this documentation to give me a better
> idea of what I can expect on the CLKOUT pins on the beaglebone black?
>
>
> On Sunday, March 30, 2014 4:01:52 AM UTC-4, Gregory Holst wrote:
>>
>> I need a clock signal for the LT8500 pwm chips and it would be nice to
>> use the clock output on the beaglebone rather than an external oscillator.
>>  My guess is that it runs at the 24Mhz clock on the beaglebone which will
>> work for the LT8500s but I don't really care what frequency it is for my
>> application.  I'm driving DC motors so a few kHz is all I need really.  The
>> LT8500s divides the clock frequency to create the PWM frequency.  For
>> example, an input of 25Mhz gives a 6kHz PWM signal on all 48 outputs.  Just
>> out of curiosity,
>>
>> 1) Is the clock frequency configurable?
>> 2) Can any of the GPIO pins be configured to produce a clock signal?
>> 3) If so, what frequency ranges?
>> 4) I read somewhere about timers.  How do those work?
>>
>> I quickly searched the Technical Reference Manual but I didn't see
>> anything about the clkout2 pin or the timers.  Is there another reference I
>> should look at?
>>
>> Thanks!
>>
>  --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beagleboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: How to use clock output (CLKOUT2)

2014-04-01 Thread Gregory Holst
Sorry for the confusion, I used someone else's e-mail to reply to you all. 
 Thanks again!

On Tuesday, April 1, 2014 5:25:11 PM UTC-4, gemi...@gmail.com wrote:
>
> I think the simplest solution will be to use the HDMI oscillator pin since 
> 24Mhz is perfect for the chips I'm driving.  It is difficult to find simple 
> answers in the documentation so thank you thank you both for your help!
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: How to use clock output (CLKOUT2)

2014-04-01 Thread geminhup
I think the simplest solution will be to use the HDMI oscillator pin since 
24Mhz is perfect for the chips I'm driving.  It is difficult to find simple 
answers in the documentation so thank you thank you both for your help!

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: How to use clock output (CLKOUT2)

2014-04-01 Thread gfastmapper
I suggest that you look at output pins TIMER4, TIMER5, TIMER6, and TIMER7 
(section 20.1.2.4 of the Technical Reference Manual).  Those timers are 
clocked at 24MHz, have programmable divisors, and can produce output clocks 
up to 12MHz.  Section 20.1 of the Technical Reference Manual provides more 
information on the timers and the datasheet will detail the settings 
required to associate a timer output with a pin.

On Tuesday, April 1, 2014 9:47:39 AM UTC-7, Gregory Holst wrote:
>
> So I did a little searching and found some help in the documentation for 
> the processor http://www.ti.com/lit/ug/spruh73j/spruh73j.pdf on page 880. 
>  It shows a formula for the frequency but I don't understand the M and Ns. 
>  It has something to do with the phase locked loop and creating a super 
> high frequency clock using some fancy circuitry and I really just need to 
> find the default values of M and N to confirm that the output will be 
> around 24Mhz.  Can anyone interpret this documentation to give me a better 
> idea of what I can expect on the CLKOUT pins on the beaglebone black?
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: How to use clock output (CLKOUT2)

2014-04-01 Thread Dennis Cote
On Tuesday, April 1, 2014 10:47:39 AM UTC-6, Gregory Holst wrote:
>
> So I did a little searching and found some help in the documentation for 
> the processor http://www.ti.com/lit/ug/spruh73j/spruh73j.pdf on page 880. 
>  It shows a formula for the frequency but I don't understand the M and Ns. 
>  It has something to do with the phase locked loop and creating a super 
> high frequency clock using some fancy circuitry and I really just need to 
> find the default values of M and N to confirm that the output will be 
> around 24Mhz.  Can anyone interpret this documentation to give me a better 
> idea of what I can expect on the CLKOUT pins on the beaglebone black?
>

Gregory,

You can probably use the 24.576 MHz output of the HDMI oscillator that is 
available on P9 pin 25. The oscillator is enabled by GPIO 1-27, so you can 
enable using this output it even if you have disabled the HDMI output for 
some reason. It should be enabled by default.

If you use this oscillator output, you can't use GPIO 3-21 since they share 
the same expansion header pin. 

HTH
Dennis Cote


-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.