Re: [beagleboard] Re: I2C driver by PRU

2016-03-03 Thread William Hermans
> > > > *Ah, ok got it. Page 25 of the PRU reference manual table 92 I2C1 > 0x4802_A000 == base address for i2c1* > On Thu, Mar 3, 2016 at 9:56 AM, Micka wrote: > Hi, > > William, I don't get it .. > > Where do you see that the constant C2 == 0x4802_A000 > > > Le lun.

Re: [beagleboard] Re: I2C driver by PRU

2016-03-03 Thread Micka
Hi, William, I don't get it .. Where do you see that the constant C2 == 0x4802_A000 Le lun. 2 nov. 2015 à 01:27, William Hermans a écrit : > Ah, ok got it. Page 25 of the PRU reference manual table 9 > > 2 I2C1 0x4802_A000 == base address for i2c1 > > On Sun, Nov 1,

Re: [beagleboard] Re: I2C driver by PRU

2015-11-06 Thread Micka
Thx GianFranco, I managed to understand your code, which is well made. My first test was to verify if I was able to compile the program and see if something goes out of the I2C 1. And yes it works ! I saw something on the scope. Now, I have to modify your code to be able to use the AD7997.

Re: [beagleboard] Re: I2C driver by PRU

2015-11-04 Thread 'Mark Lazarewicz' via BeagleBoard
What kind of script ?? Can you post that? I would have thought mux-clock is done in a gel file  Sent from Yahoo Mail on Android From:"Gianfranco Rosso" <gianfranco.ro...@tiscali.it> Date:Wed, Nov 4, 2015 at 6:47 AM Subject:Re: [beagleboard] Re: I2C driver by PRU hello Micka,  

Re: [beagleboard] Re: I2C driver by PRU

2015-11-01 Thread Micka
Hi, I'm interested by what you have done. I want to use i2c to read analog value from a component. The first solution that I found was to bitbang the i2c. But you, you use the i2c driver which is nice. Could you give us the peace of asm code that you use to interface with the MCP23017. And if

Re: [beagleboard] Re: I2C driver by PRU

2015-11-01 Thread William Hermans
Ah, ok got it. Page 25 of the PRU reference manual table 9 2 I2C1 0x4802_A000 == base address for i2c1 On Sun, Nov 1, 2015 at 5:06 PM, William Hermans wrote: > By the way, I keep seeing stuff like "C2" in PASM assembly in regard to > the PRU's. Wish I could figure out what

Re: [beagleboard] Re: I2C driver by PRU

2015-11-01 Thread William Hermans
By the way, I keep seeing stuff like "C2" in PASM assembly in regard to the PRU's. Wish I could figure out what it is . . . Seems to be some sort of constant "register" ? And there is more than just C2, but I have not found any reference to those yet :/ On Sun, Nov 1, 2015 at 5:01 PM, William

Re: [beagleboard] Re: I2C driver by PRU

2015-11-01 Thread William Hermans
Hi Micka, I do not think he is using and driver. When speaking of the I2C module, I believe hes speaking of the physical on chip module. But this . . . #define I2C1_BASEC2//base registri I2C1 nella tabella translated from Italian to English . . . *I2C1 base

Re: [beagleboard] Re: I2C driver by PRU

2015-11-01 Thread Harvey White
On Sun, 1 Nov 2015 17:06:02 -0700, you wrote: >By the way, I keep seeing stuff like "C2" in PASM assembly in regard to the >PRU's. Wish I could figure out what it is . . . Seems to be some sort of >constant "register" ? And there is more than just C2, but I have not found >any reference to those