Search found 266 matches

by Sparkoids
Sat Jun 15, 2019 11:38 am
Forum: General Programming
Topic: USB PC Keyboard
Replies: 4
Views: 1871

Re: USB PC Keyboard

Does anyone have any idea why the keyboard isn't recognised here please?

It does not recognise the HID as a keyboard for some reason and it's driving me bonkers!

Thanks in advance...
by Sparkoids
Thu Jun 13, 2019 1:37 pm
Forum: General Programming
Topic: USB PC Keyboard
Replies: 4
Views: 1871

Re: USB PC Keyboard

Hi Steve, It wasn't that one but that is good to study regardless. I am trying to build a keyboard where the keys are pre-set so I press a button on an E-Block button bank and it sends an ascii code to the PC mimicking a keyboard. I have the HID thing sorted and a variation that Ben R helped with ba...
by Sparkoids
Thu Jun 13, 2019 12:35 pm
Forum: General Programming
Topic: USB PC Keyboard
Replies: 4
Views: 1871

USB PC Keyboard

Many many moons ago I used an example of a PC keyboard Flowcode sample that worked with FC5 and ECIO28.

I cannot find it anywhere now and wonder if anyone has a link to it or is able to PM it to me.


Thanks in advance,

James :-}
by Sparkoids
Sat Jun 01, 2019 3:13 pm
Forum: General Programming
Topic: Interrupt Question
Replies: 2
Views: 913

Re: Interrupt Question

Makes sense - thanks for the speedy response. I am using an ECIO-28 - the Matrix thing for fast prototyping.
by Sparkoids
Sat Jun 01, 2019 10:20 am
Forum: General Programming
Topic: Interrupt Question
Replies: 2
Views: 913

Interrupt Question

Two quick questions please on interrupts in Flowcode 5. 1. On the RB0 interrupt the rising or falling edge of that particular pin can be setup in properties but on a "Change in Port B" there are no properties. Is it possible to set this port for the falling edge or is it just a change in t...
by Sparkoids
Mon Mar 25, 2019 2:35 pm
Forum: General Programming
Topic: Help With Interrupt On Port B...
Replies: 1
Views: 751

Help With Interrupt On Port B...

OK here is one. I have managed to *nearly* sort out my quadrature encoder project but have run into yet another issue. Using an Interrupt when I read the change on Port B using the EB-073 encoder in Ben's example 1 it jumps to a Macro which is great blah blah but because the encoder is still being t...
by Sparkoids
Sat Mar 23, 2019 3:23 pm
Forum: General Programming
Topic: Someone Please Help
Replies: 2
Views: 945

Re: Someone Please Help

Sorted it out. Just needed to send a 2 microsecond pulse of a 1 and that worked - not exactly what I needed to do but it worked. What I was trying to do was sort of stop the 0V so it acted as a pulse to mimic a pushbutton switch then went back to where ever it had been voltage wise as it had been be...
by Sparkoids
Sat Mar 23, 2019 10:20 am
Forum: General Programming
Topic: Someone Please Help
Replies: 2
Views: 945

Someone Please Help

Hi guys, OK if I send a ZERO to a Port pin then want to clear that ZERO after a delay, I have been sending a ONE to the Port pin. How can I clear the Port without sending the ONE? I have tried to INPUT the Port to a VARIABLE (that I then reset to ZERO next instruction) to clear it but it has gone we...
by Sparkoids
Tue Mar 19, 2019 1:40 pm
Forum: General Programming
Topic: More Rotary Encoder Stuff...
Replies: 6
Views: 1407

Re: More Rotary Encoder Stuff...

It's working perfectly now Ben - thanks for all your help as always :-}
by Sparkoids
Mon Mar 18, 2019 7:35 pm
Forum: General Programming
Topic: More Rotary Encoder Stuff...
Replies: 6
Views: 1407

Re: More Rotary Encoder Stuff...

Ever feel like banging your head on the desk? In fairness it's my first time on FC in three years but putting the Quad Encoder board into Port B when you're always looking for an interrupt on Port B is a better idea then having it in Port A and the LCD in Port B. Your example program is working OK B...
by Sparkoids
Mon Mar 18, 2019 4:06 pm
Forum: General Programming
Topic: More Rotary Encoder Stuff...
Replies: 6
Views: 1407

Re: More Rotary Encoder Stuff...

I was looking for the binary to indicate the direction. 00,01,10,11 goes one way and 00,10,11,01 goes the other. Every time I count up to four bits I can reset and go back to the interrupt on Port B and start counting again was the idea. I just need to see the number going up or down - the speed wil...
by Sparkoids
Mon Mar 18, 2019 2:42 pm
Forum: General Programming
Topic: More Rotary Encoder Stuff...
Replies: 6
Views: 1407

Re: More Rotary Encoder Stuff...

(I have removed the interrupt on Port B just to test it Ben)

Maybe the binary isn't being converted to decimal?

Encoder_04.fcfx
(9.28 KiB) Downloaded 84 times
by Sparkoids
Mon Mar 18, 2019 1:54 pm
Forum: General Programming
Topic: More Rotary Encoder Stuff...
Replies: 6
Views: 1407

More Rotary Encoder Stuff...

I fired up Flowcode 7 to test the Rotary Encoder EB-073 and just cannot read the input into a variable. On ReadCounter from the component macro it always returns a zero. How do I set that up please? All I am trying to do is detect if the rotary is turning clockwise or anti-clockwise so the number go...
by Sparkoids
Wed Mar 13, 2019 12:34 pm
Forum: General Programming
Topic: EB-073 - Rotary Encoder Problem...
Replies: 1
Views: 981

EB-073 - Rotary Encoder Problem...

Hi all, On Flowcode 5 I cannot get the examples that are provided by Matrix to work. Everything loads correctly except when it runs the rotary encoder component disappears when the simulation is started or stepped into and it's driving me nuts. Am I doing something wrong please? The test file from t...
by Sparkoids
Wed Mar 06, 2019 4:05 pm
Forum: General Programming
Topic: Reading An 8 Bit Port - Easier Solution..
Replies: 3
Views: 1140

Re: Reading An 8 Bit Port - Easier Solution..

You sorted it again and it works perfectly on the variable. Thank you Ben as always :-}
by Sparkoids
Tue Mar 05, 2019 5:19 pm
Forum: General Programming
Topic: Reading An 8 Bit Port - Easier Solution..
Replies: 3
Views: 1140

Re: Reading An 8 Bit Port - Easier Solution..

Ben I think it does and I'll have a crack at it tomorrow in work.

Thanks as always fella :-}
by Sparkoids
Tue Mar 05, 2019 4:56 pm
Forum: General Programming
Topic: Reading An 8 Bit Port - Easier Solution..
Replies: 3
Views: 1140

Reading An 8 Bit Port - Easier Solution..

Hi all, With FC 5 I am reading an 8 bit port, D0-D7 as one unmasked input... I am trying to read basically two four bit switches and depending upon their position perform a different action where the port is split in two, D0-D3 and D4-D7... In each of the two halves the switch readouts I am looking ...
by Sparkoids
Mon Jun 04, 2018 1:37 pm
Forum: General Programming
Topic: USB Protocol Analyser
Replies: 3
Views: 1435

USB Protocol Analyser

Many many moons ago I seem to remember a USB Protocol Analyser on this site but now I can't find it and need to look at USB signals.

Is such a device still available please?


James :-}
by Sparkoids
Mon Jul 24, 2017 4:19 pm
Forum: Flowcode V7
Topic: Enabling A Register On A Pic
Replies: 4
Views: 2748

Re: Enabling A Register On A Pic

Thank you very much indeed - I'll give it a shot...

:-}
by Sparkoids
Sat Jul 22, 2017 3:36 pm
Forum: Flowcode V7
Topic: Enabling A Register On A Pic
Replies: 4
Views: 2748

Re: Enabling A Register On A Pic

Datasheet page here
by Sparkoids
Sat Jul 22, 2017 3:34 pm
Forum: Flowcode V7
Topic: Enabling A Register On A Pic
Replies: 4
Views: 2748

Enabling A Register On A Pic

Does anyone know please how to actually enable registers on devices to use in Flowcode please? I am trying to enable the Temperature Indicator Module on a PIC12(L)1571 and just don't know how to do it. I want to be able to get the temperature into a Macro to check surface temperature of the device. ...
by Sparkoids
Fri Sep 02, 2016 5:58 pm
Forum: General Programming
Topic: SD Card & Format Query...
Replies: 1
Views: 2695

SD Card & Format Query...

Hi all, Does anyone know if it possible to use Flowcode to access picture files on an SD card in whatever format - JPEG, PNG... whatever and send them to an LCD display. Something like a photo frame controller. All the pics would be preloaded on the SD card I just wonder if Flowcode could actually d...
by Sparkoids
Tue Aug 30, 2016 6:31 pm
Forum: General Programming
Topic: USB Compliance? HELP!
Replies: 2
Views: 3005

Re: USB Compliance? HELP!

It's driving me nuts Ben. Here's the report from Xcode (the Mac's development software) and it shows the battleship Mac keyboard (huge thing - 20 function keys) only takes 20mA so 50mA should be enough for the PIC. I'm going to reprogram the devices and see if it works then because the ECIO comes up...
by Sparkoids
Sun Aug 28, 2016 5:35 pm
Forum: General Programming
Topic: USB Compliance? HELP!
Replies: 2
Views: 3005

USB Compliance? HELP!

Hi all, Back in 2011 with some help from Ben here I completed a USB keyboard design on a PIC18f13K50 which was programmed using Flowcode and that's fine. When I use it on my old Mac or Windows 7 PC it runs perfectly but on the latest post 2012 Intel MacBook Pro it doesn't recognise the device at all...
by Sparkoids
Mon Jan 12, 2015 4:35 pm
Forum: Flowcode V5
Topic: "Mechanical" Mouse...
Replies: 1
Views: 1785

"Mechanical" Mouse...

I am looking to design a USB mouse using Flowcode. The USB side is as everyone knows a doddle but has anyone designed anything using the old opto wheel thing for direction please?

I put "Mouse" in the search bar but too many posts came up...


James :-}