Re: Sv: Re: [beagleboard] Re: BBB PRU input test

2014-06-23 Thread Manuel Berro Madero
to if you want some example code. Otherwise, I'm not understanding why just adding: ADD R4, R4, R3 ...to the code below doesn't do what you want. On 6/23/2014 12:17 PM, Manuel Berro Madero wrote: You are right! I can read any pin with a simply: LSR r3, r31.b0, 3

Re: Sv: Re: [beagleboard] Re: BBB PRU input test

2014-06-23 Thread Manuel Berro Madero
You are right! I can read any pin with a simply: LSR r3, r31.b0, 3//shift and mask AND r3, r3, 0x01 How can I increment a register eg. r4 bit by bit with the last state of r3 ? what I need is add bits to register. I tried with SET but without luck. On 06/23/2014

Re: [beagleboard] Re: BBB PRU input test

2014-06-21 Thread Manuel Berro Madero
Why 0b1? On 06/21/2014 01:40 AM, TJF wrote: Am Samstag, 21. Juni 2014 01:37:20 UTC+2 schrieb Manu: I need to read the bit r31.t16 and capture the current state either 1 or 0 and set it to r3 Try AND r3, r31.b2, 0b1 -- For more options, visit http://beagleboard.org/discuss --- Y

Re: [beagleboard] Re: BBB PRU input test

2014-06-20 Thread Manuel Berro Madero
I think that the work arround to get the bit what i am looking for is to MOV into the register r3 the register r31 with all states then doing right and left shifting to get that bit. Is it r32 a 32 bits? I am in the right way? Manuel El jun 20, 2014 10:17 PM, "Charles Steinkuehler" escribió:

Re: [beagleboard] Re: BBB PRU input test

2014-03-12 Thread Manuel Berro Madero
are two, after all). Dig through the sysfs pinmux debugging information to make sure your overlay is being properly loaded, and review your PRU loading code to make sure it's targeting the proper PRU. On 3/11/2014 1:09 PM, Manuel Berro Madero wrote: This is what I don't

Re: [beagleboard] Re: BBB PRU input test

2014-03-11 Thread Manuel Berro Madero
This is what I don't know how to do, "access to the r31 (pr1_pru0_pru_r31_16) | PIN =97 | GPIO0_15" could you help me? Thank you. On 03/11/2014 02:17 PM, Brandon I wrote: I think I see the problem. You have the pin muxed for pru gpio in the device tree overlay, but you're trying to read the