[beagleboard] Re: How do I change the SPI clock (P9_22) speed on BBB? And what is the maximum speed?

2014-07-21 Thread Ardit Cuka
Ok I figured it out using python: spi = SPI(0,0) spi.mode=2 spi.msh=200 ( by changing this number will result in the clock frequency change with a max of 12.0 Mhz. SIMPLE AS THAT.) spi.open(0,0) Thanks for your answers. On Tuesday, July 15, 2014 4:38:30 PM UTC-4, Ardit Cuka wrote:

[beagleboard] Re: How do I change the SPI clock (P9_22) speed on BBB? And what is the maximum speed?

2014-07-21 Thread kyle
Cool, just learned something myself today! Now that I think about it I think it's I2C where the speed is set in device-tree only. -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To

[beagleboard] Re: How do I change the SPI clock (P9_22) speed on BBB? And what is the maximum speed?

2014-07-18 Thread naikrovek
Can't be done in Python. /opt/source/beaglebone-universal-io/cape-universal-00A0.dts Learn to compile the device tree files and how to make changes like this. Python can't do everything, despite what every Python fan I've known claims. Jeremiah On Thursday, July 17, 2014 1:56:58 PM UTC-5,

[beagleboard] Re: How do I change the SPI clock (P9_22) speed on BBB? And what is the maximum speed?

2014-07-18 Thread Ardit Cuka
Can you send me some links to do so. I fairly new to BB and dont't know what a lot of terms mean! On Friday, July 18, 2014 11:28:21 AM UTC-4, naik...@gmail.com wrote: Can't be done in Python. /opt/source/beaglebone-universal-io/cape-universal-00A0.dts Learn to compile the device tree files

[beagleboard] Re: How do I change the SPI clock (P9_22) speed on BBB? And what is the maximum speed?

2014-07-17 Thread kyle
It's set in device tree at boot time. I don't think you are going to find a way to change that on the fly with a running system. On Wednesday, July 16, 2014 10:21:02 AM UTC-5, Ardit Cuka wrote: I just need a code in python that sets that frequency to what i want! On Tuesday, July 15,

[beagleboard] Re: How do I change the SPI clock (P9_22) speed on BBB? And what is the maximum speed?

2014-07-17 Thread Ardit Cuka
I don't need to change to clock speed when the system its running. I want to change it before and then run the system. Using somthing like this: import Adafruit_BBIO.GPIO as GPIO import time GPIO.setup(P9_22, GPIO.out) GPIO.setclock(P9_22, 64000) #and here 64000 = 64 khz

[beagleboard] Re: How do I change the SPI clock (P9_22) speed on BBB? And what is the maximum speed?

2014-07-16 Thread Ardit Cuka
I just need a code in python that sets that frequency to what i want! On Tuesday, July 15, 2014 4:38:30 PM UTC-4, Ardit Cuka wrote: Maybe this might be a simple thing, but i have searched and could'nt get nowhere. Thanks -- For more options, visit http://beagleboard.org/discuss --- You