Search found 3417 matches

by TJF
Mar 21, 2019 21:01
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 314
Views: 50288

Re: libpruio (BB D/A - I/O fast and easy)

Hi tai!
tai wrote:..., I am using the latest kernel I believe:

Code: Select all

debian@beaglebone:/dev$ uname -r
4.14.71-ti-r80
You may find helpful hints here (old boot loader on eMMC)

https://groups.google.com/d/msg/beagleb ... WoWp2jAQAJ

Regards
by TJF
Mar 20, 2019 18:38
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 314
Views: 50288

Re: libpruio (BB D/A - I/O fast and easy)

Hi Dinosaur! PS: Broadly speaking how would you (or have you) implement a PWM output of a fixed number of pulses. All the reading I have done incorporates putting the o/p to an i/p and then polling for the count. (messy) I haven't done this yet. The solution depends on the capabilities of the subsys...
by TJF
Mar 20, 2019 1:01
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 314
Views: 50288

Re: libpruio (BB D/A - I/O fast and easy)

Hi tai! ..., I am using the latest kernel I believe: debian@beaglebone:/dev$ uname -r 4.14.71-ti-r80 The latest kernel is 4.19.x, currently. But 4.14.x is the latest stable. Sorry, I cannot help. You're using a -ti- channel, while I only use and test -bone- channels. So either switch your system to ...
by TJF
Mar 19, 2019 18:15
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 314
Views: 50288

Re: libpruio (BB D/A - I/O fast and easy)

Hi Dinosaur! Why are you pinmuxing P9_21 first to subsystem GPIOSS-0 (mode 7) and immediately remuxing to PWMSS-0-PwmB (mode 3). While the first mux gets done before the start of the main loop, the remux gets done after the start. You get a race condition here. Sometimes the main loop is running -> ...
by TJF
Mar 16, 2019 10:38
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 314
Views: 50288

Re: libpruio (BB D/A - I/O fast and easy)

Hi Dinosaur! I can reproduce the problem here. It doesn't occur always. The more outputs are high, the bigger is the risk of hanging. EDIT: Putting a "Sleep 1" between each .Gpio->setValue(P0, 0) in Case 9 fixes it. Every code slowing down the executation speed seems to fix it. Ie. the pri...
by TJF
Mar 15, 2019 16:31
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 314
Views: 50288

Re: libpruio (BB D/A - I/O fast and easy)

Hi Tai! Welcome to the forum. I've no BBB wireless, so I cannot test. But since libpruio is a hardware driver for the AM335x CPU, it should run on any board using this processor. You don't have a libpruio issue. Instead there's a problem with the uio_pruss driver, so it's a LINUX - perhaps uBoot - i...
by TJF
Mar 13, 2019 3:57
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 314
Views: 50288

Re: libpruio (BB D/A - I/O fast and easy)

Hi Dinosaur! Taking my time designing the board. I have assigned 20 O/P's and 8 I/P Was contemplating putting jumpers on each O/P & I/P so that the connection to the BBB could be broken by removing the jumper. But the amount of drill holes on the C/Brd goes through the roof. Sounds good for prot...
by TJF
Mar 10, 2019 20:27
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 314
Views: 50288

Re: libpruio (BB D/A - I/O fast and easy)

On your colour chart you show P9-14,16,21,22 & 42 as Multi Feature Digital, which I assumed means they are attached to a PRU. However, neither one is shown on the mode charts as PRU. 'Multi' isn't related to PRU GPIO. It means more then normal GPIO, from the libpruio point of view. Ie. the pins...
by TJF
Mar 10, 2019 8:32
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 314
Views: 50288

Re: libpruio (BB D/A - I/O fast and easy)

Hi Dinosaur! Firstly No I dont need that many fast i/o pins, but will design the cape for the maximum I can get. When you're sure you wont need other features (like CAP, QEP), that's the best solution. You can have up to 17 inputs at one PRU, or up to 16 of them as outputs. 1: For each PRU can you h...
by TJF
Mar 10, 2019 6:50
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 314
Views: 50288

Re: libpruio (BB D/A - I/O fast and easy)

Hi Electrumpet, welcome to the forum! And sorry, I've overseen your first post. I have been looking for an example of 'background ADC measuring' and an old example from 2017 helped me a lot: https://www.freebasic.net/forum/viewtopic.php?t=22501&start=212 I tested it on the pocket beagle and it w...
by TJF
Mar 09, 2019 1:20
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 314
Views: 50288

Re: libpruio (BB D/A - I/O fast and easy)

The Feeders are half wave devices. That's no reason against macroscope power control. The idea is to allow at least the following. PWM x 2 PRU outputs x 14 PRU inputs x 7 No way, sorry. You can have up to 17 inputs at one PRU, or up to 16 of them as outputs. Find a table in the docs . Most of them ...
by TJF
Mar 08, 2019 22:47
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 314
Views: 50288

Re: libpruio (BB D/A - I/O fast and easy)

Can't use zero-cross relays, as the idea is to delay the relay coming On (n) mSec after the zero cross. Then the relay stays On for the rest of the AC half cycle. That sounds like you're controlling the power of the feeder by sending just a part of the half wave to the coil. This is the microscopic...
by TJF
Mar 08, 2019 19:27
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 314
Views: 50288

Re: libpruio (BB D/A - I/O fast and easy)

All other pins that I am not using, lcd , MMC1, AIN etc. I assumed you'll use stacking headers (you can find less expensive). Do you plan to use the PWM output from the ARM CPU? No, but I may as well allow for it. How much PWM outputs do you need at which frequencies? Must the output get synchroniz...
by TJF
Mar 08, 2019 17:00
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 314
Views: 50288

Re: libpruio (BB D/A - I/O fast and easy)

I have sort of resigned myself to the fact that I will have to design a cape for the BBB and for the last few days have searched for the right components. That sounds reasonable. If the board is designed right it will allow another cape to be plugged onto the top of it which will have the use of pi...
by TJF
Mar 08, 2019 10:26
Forum: Hardware Interfaces / Communication
Topic: Freebasic calls to FTDI chip driver libraries?
Replies: 2
Views: 284

Re: Freebasic calls to FTDI chip driver libraries?

Hi Dan! What exactly is your problem? The header at https://www.freebasic-portal.de/downloads/bibliotheken/ftd2xx-2-08-02tjf-bi-174.html is for version 2.08. And such a version is still available at https://www.ftdichip.com/Drivers/D2XX.htm. Why don't you use it? And even if you need by any reason t...

Go to advanced search