Search found 8 matches

by steveastrouk
Tue Oct 20, 2020 10:39 pm
Forum: C Programs
Topic: Bitbanging serial data stream at controlled frequency.
Replies: 6
Views: 1783

Re: Bitbanging serial data stream at controlled frequency.

Can I inject NOP statements using inline assembler with TCC to create delays ?

Steve
by steveastrouk
Tue Oct 20, 2020 10:04 pm
Forum: C Programs
Topic: Bitbanging serial data stream at controlled frequency.
Replies: 6
Views: 1783

Re: Bitbanging serial data stream at controlled frequency.

Thanks for the ideas Tom ! Yes, I'll get them tried and tested with our scopes.

I really appreciate the help.

Steve
by steveastrouk
Mon Oct 19, 2020 10:47 pm
Forum: C Programs
Topic: Bitbanging serial data stream at controlled frequency.
Replies: 6
Views: 1783

Bitbanging serial data stream at controlled frequency.

I have a peripheral that we need to run off a Kflop with a serial bitstream at 400kHz (+/-25kHz). I read the bitbanging example SPIv6.C, and see that that is working "full throttle" to deliver 450kHz or so - outside my limit. Is there a timing function to accomplish the fine timing, or a NOP we can ...
by steveastrouk
Wed Oct 09, 2019 8:16 pm
Forum: Hardware Interface Issues
Topic: 5 stepper motors, 3 position encoders and 11 Input bits
Replies: 2
Views: 1988

Re: 5 stepper motors, 3 position encoders and 11 Input bits

Thanks Tom,
We want to replace Kstep with remote circuits. You've given me the topology we need to carry on.
We will be optoisolating our limit switch circuits.
by steveastrouk
Wed Oct 09, 2019 7:26 pm
Forum: Hardware Interface Issues
Topic: 5 stepper motors, 3 position encoders and 11 Input bits
Replies: 2
Views: 1988

5 stepper motors, 3 position encoders and 11 Input bits

Our first tests with the Kflop/Kstep board have been successful, but for our production system we want to distribute Step/Dir to 5 motors remote from Kstep - and we need one more channel than we can get with Kstep anyway. In addtion we need to read three position encoders, and listen to 11 limit swi...
by steveastrouk
Wed Oct 02, 2019 12:30 pm
Forum: Hardware Interface Issues
Topic: Kflop to Kstep connection
Replies: 4
Views: 2237

Re: Kflop to Kstep connection

Initially there was nothing on Kflop JR1, so I pushed everything home, and still nothing. Then I seem to have twisted the PCB slightly, because the Kflop LEDs flickered into life in the correct power configuration and everything seems stable. Right now, I don't really trust it, but I can continue. I...
by steveastrouk
Tue Oct 01, 2019 10:33 pm
Forum: Hardware Interface Issues
Topic: Kflop to Kstep connection
Replies: 4
Views: 2237

Re: Kflop to Kstep connection

Thanks Tom, Kflop Leds do NOT light without it being USB powered and Kstep isolated. If I run with USB power Kflop and Kstep work fine, except I can't access the optoisolated Inputs I have set up. The other tests I can report on when I am back in the office in the morning. I appreciate the fast repl...
by steveastrouk
Tue Oct 01, 2019 8:29 pm
Forum: Hardware Interface Issues
Topic: Kflop to Kstep connection
Replies: 4
Views: 2237

Kflop to Kstep connection

I have a Kstep board wired to a Kflop via JP36 on the Kstep, and powering the Kflop over JP36 via the JR1 connector on Kstep. I have removed the USB 5V power jumper, J3 on Kflop, and checked that jp34 and 35 are present on Kstep. My intention is to run the unit with a PC power supply for the time be...