Search found 398 matches
- Mon Nov 20, 2017 6:47 pm
- Forum: Flowcode V7
- Topic: "send failed" with ECIOprog and .hex file from flowcode V7
- Replies: 5
- Views: 3735
Re: "send failed" with ECIOprog and .hex file from flowcode V7
Ah ha! Thanks for clarification Ben. All good. J.
- Sat Nov 18, 2017 6:59 pm
- Forum: Flowcode V7
- Topic: Replace Macros
- Replies: 1
- Views: 1864
Replace Macros
Hi,
Is it possible to 'replace' user macros (as opposed to FC components and associated macros)
The import/export feature is very useful but sometimes I improve and update these macros. I can't then see a quick way of importing and replacing the older macro with the new.
thanks, J.
Is it possible to 'replace' user macros (as opposed to FC components and associated macros)
The import/export feature is very useful but sometimes I improve and update these macros. I can't then see a quick way of importing and replacing the older macro with the new.
thanks, J.
- Sat Nov 18, 2017 6:36 pm
- Forum: Flowcode V7
- Topic: "send failed" with ECIOprog and .hex file from flowcode V7
- Replies: 5
- Views: 3735
Re: "send failed" with ECIOprog and .hex file from flowcode V7
Hi, Just to confirm.. what is the intended use of ECIOprog? I just assumed this was an external programmer for sending to ECIO products, which by default have the bootloader enabled? I also have a program that compiles and sends correctly in FC7 (device type is ECIO28) But if I try to send the same ...
- Thu Oct 12, 2017 1:28 pm
- Forum: Freelance Embedded Engineers
- Topic: Required -VB.Net Generic User Interface to Flowcode Hardware
- Replies: 0
- Views: 7519
Required -VB.Net Generic User Interface to Flowcode Hardware
Hi Guys, Overview: Write a clean and reliable interface in Visual Studio that will allow data to be sent and received over USB with the ECIO range of devices. I would prefer a fixed price, per stage process. I am reasonably flexible on timescale but keen to progress this soon. Background: I'm workin...
- Mon Oct 02, 2017 9:46 pm
- Forum: Poll Discussion
- Topic: What additional targets should Flowcode support?
- Replies: 15
- Views: 15671
Re: What additional targets should Flowcode support?
Hi, The new(ish) 8 bit small pin count devices from microchip... PIC16F15313 - 8 Pins ! PIC16(L)F184xx http://ww1.microchip.com/downloads/en/DeviceDoc/40001894B.pdf These devices pack a lot of functionality into small packages, they offer great solutions for the simple problems in electronics, rathe...
- Mon Oct 02, 2017 9:15 pm
- Forum: Poll Discussion
- Topic: Do you make use of Ghost features?
- Replies: 7
- Views: 13045
Re: Do you make use of Ghost features?
I have the some GHOST capable programmers and the idea sounds great but in practice, I have never found spare time to delve in and work the whole thing out. There are many great features in flowcode that have clearly had lots of development time put in but then there is no supporting documentation, ...
- Thu Aug 10, 2017 11:37 am
- Forum: Flowcode V7
- Topic: DSP Frequency, Setting the output, Change base Frequency
- Replies: 4
- Views: 4685
Re: DSP Frequency, Setting the output, Change base Frequency
Ha ha, Yeah Thanks Ben, My brain kicked in over night and I came to the same conclusion. Attached is a simple working example for anyone following along. A Variable pot on input 1, will vary the output frequency between roughly 0.5Hz to 150Hz. MIAC_PIC_DSP_Freq_Adjustable_Working.fcfx Again some of ...
- Wed Aug 09, 2017 9:59 pm
- Forum: Flowcode V7
- Topic: DSP Frequency, Setting the output, Change base Frequency
- Replies: 4
- Views: 4685
Re: DSP Frequency, Setting the output, Change base Frequency
Ah.. so I found the rather obvious Period Offset function in the DSPFreqGen Macros. Attached is a very crude example of the system cycling through a few set values for the Period Offset and its tested on hardware. MIAC_PIC_DSP_Freq_Variable1.fcfx I hope to find some more time for this tomorrow so wi...
- Wed Aug 09, 2017 9:31 pm
- Forum: Flowcode V7
- Topic: DSP Frequency, Setting the output, Change base Frequency
- Replies: 4
- Views: 4685
Re: DSP Frequency, Setting the output, Change base Frequency
Hi Guys, MIAC, PIC, FC 7.2. I have a simple DSP Frequency FC program attached. The DSP frequency generator is run by an Interrupt and we get a nice neat squarewave output on the bench. I would like to have the value from an AV input, control the SquareWave output frequency on the fly ???? Any ideas?...
- Thu Jul 06, 2017 1:30 pm
- Forum: Programming Tips & Tricks
- Topic: Simple i2C - Single Byte read and Write
- Replies: 2
- Views: 6238
Simple i2C - Single Byte read and Write
Hi, I am working with another obscure i2C based chip and made up some generic i2C macros, others may find these helpful, especially if your are new to i2C. I know there are loads of examples and you can instead use the ReceiveTransaction and Send transaction macros but I have traditionally done it u...
- Mon Jul 03, 2017 1:54 pm
- Forum: MIAC
- Topic: MIAC dsPIC - PWM on Motor Outputs
- Replies: 6
- Views: 8782
Re: MIAC dsPIC - PWM on Motor Outputs
Hmm Indeed odd.. your SetDutyCycle10Bit seems to work just fine in your example, I struggled on my basic function tests. I'll have another look if I get time today.
But I'm learning more about the PWM control everyday!! haha
Thanks Leigh.
But I'm learning more about the PWM control everyday!! haha
Thanks Leigh.
- Sun Jul 02, 2017 11:17 am
- Forum: MIAC
- Topic: MIAC dsPIC - PWM on Motor Outputs
- Replies: 6
- Views: 8782
Re: MIAC dsPIC - PWM on Motor Outputs
Question :) In the PWM properties you can select the PWM Timer and you adjust the Period Overflow and Prescasler of that timer. Is it correct to assume that if you have an Interupt based on the same time is will also be effected? Seems obvious I guess, but you just need to share your Timers out so t...
- Sun Jul 02, 2017 11:02 am
- Forum: MIAC
- Topic: MIAC dsPIC - PWM on Motor Outputs
- Replies: 6
- Views: 8782
Re: MIAC dsPIC - PWM on Motor Outputs
Hi, A bit more information after some bench testing this end. When assigning a PWM direct to a motor output pin D4, D5, D6,D7. To have to enable the output by setting the relevant OutputON using you MIAC output macros. If you change either the Duty, Period Overflow or Pre-Scaler using the MIAC macro...
- Fri Jun 30, 2017 4:00 pm
- Forum: Flowcode V7
- Topic: How can I do an Absolute Function Abs
- Replies: 4
- Views: 3651
Re: How can I do an Absolute Function Abs
Thanks Kersing & Matt; Yes, I was doing a check for <0 and then inverting previously, it just seemed a bit clunky.. but then again in FC, so is un-simulateable C :lol: For me at least checking for the signed bit, is a bit more work than I really wanted but its a darn good alternative to consider for...
- Fri Jun 30, 2017 3:33 pm
- Forum: Flowcode V7
- Topic: How can I do an Absolute Function Abs
- Replies: 4
- Views: 3651
Re: How can I do an Absolute Function Abs
Ok..
Yep a line of C seem to do the trick.
Since C does not simulate, tested OK on hardware. MIAC dsPIC, which is the test brick of choice this week!! if anyone knows a reason this may not be the best route ( or if its native to FC), let me know. J.
Yep a line of C seem to do the trick.
Since C does not simulate, tested OK on hardware. MIAC dsPIC, which is the test brick of choice this week!! if anyone knows a reason this may not be the best route ( or if its native to FC), let me know. J.
- Fri Jun 30, 2017 3:14 pm
- Forum: Flowcode V7
- Topic: How can I do an Absolute Function Abs
- Replies: 4
- Views: 3651
How can I do an Absolute Function Abs
Hi Guys,
An Abs() function will always return a positive value, thus stripping the -ve sign if its present.
Is there a cute way of doing this in FC?
can it be done in a C component?
FCV_Var1 = abs(FCV_Var2);
An Abs() function will always return a positive value, thus stripping the -ve sign if its present.
Is there a cute way of doing this in FC?
can it be done in a C component?
FCV_Var1 = abs(FCV_Var2);
- Thu Jun 29, 2017 6:12 pm
- Forum: MIAC
- Topic: MIAC dsPIC - PWM on Motor Outputs
- Replies: 6
- Views: 8782
MIAC dsPIC - PWM on Motor Outputs
Hi Guys, Another feature I'm struggling with on the dsPIC MIAC. I've been playing with settings for an hour or so and I just cant get a PWM signal out of the Motor Pins. MIAC_dsPIC_Manual_Pulse.fcfx I have Enabled the motor outputs by setting F0 and F1 to a logic 1. I have set the PWM components set...
- Thu Jun 29, 2017 12:26 pm
- Forum: MIAC
- Topic: MIAC Input Resolution
- Replies: 4
- Views: 10729
Re: MIAC Input Resolution
Hi, So after playing around a bit, here is my notes on getting accurate AV readings into a MIAC. Testing was done with a MIAC dsPIC, using Analogue Input 1. Supply to the MIAC can be anywhere across the recommended supply voltage range. Taking a 8 Bit reading, 255 was reported when a voltage of 13.0...
- Mon Jun 26, 2017 8:46 pm
- Forum: MIAC
- Topic: MIAC dsPIC MI5809 - i2C
- Replies: 1
- Views: 5929
MIAC dsPIC MI5809 - i2C
Hi Guys, I've been through the support documentation but I can work out which I/O I could use for software i2C With the MIAC PIC the I/O interefaced directly with the micro. That is not the case with the dsPIC and other later versions ( the Inputs are all routed via an SPI ADC I think) So what can I...
- Mon Jun 26, 2017 8:36 pm
- Forum: MIAC
- Topic: MIAC dsPIC - Stepper Motor
- Replies: 4
- Views: 5820
Re: MIAC dsPIC - Stepper Motor
for anyone playing along..
Very simple example but none the less, shows a basic direct connection of a stepper to MIAC motor output pins.
J.
Very simple example but none the less, shows a basic direct connection of a stepper to MIAC motor output pins.
J.
- Thu Jun 22, 2017 5:46 pm
- Forum: MIAC
- Topic: MIAC dsPIC - Stepper Motor
- Replies: 4
- Views: 5820
Re: MIAC dsPIC - Stepper Motor
Thanks Ben,
Ah, I see those pins now. Motors1 RF0 & Motors2 RF1.
I note that the later generation MIACs have a few more features on the outputs, such as the half bridges.
Is there any more info on these?
Ah, I see those pins now. Motors1 RF0 & Motors2 RF1.
I note that the later generation MIACs have a few more features on the outputs, such as the half bridges.
Is there any more info on these?
- Thu Jun 22, 2017 4:28 pm
- Forum: MIAC
- Topic: MIAC dsPIC - Stepper Motor
- Replies: 4
- Views: 5820
MIAC dsPIC - Stepper Motor
Hi Guys, another basic MIAC question, I'm hooking up a small stepper to the motor outputs A,B,C,D So I set the connections in the stepper properties as; Coil1 PortD.4 Coil2 PortD.5 Coil3 PortD.6 Coil4 PortD.7 and have called the stepper enable at the start of the FC MIAC_dsPIC_Stepper.fcfx This sims...
- Wed Jun 21, 2017 10:59 am
- Forum: Flowcode V7
- Topic: dsPIC PID Control Basics
- Replies: 15
- Views: 13972
Re: dsPIC PID Control Basics
Found it!!!!! rough working example attached for anyone following along! If you want signed outputs... you need to use the signed macros for DSPOutput1 DOH! it was ReadAsByte changed to ReadAsSINT In the example below, I've changed all variable and macros to SINT (Signed Integer) types, I doubt its ...
- Tue Jun 20, 2017 11:00 pm
- Forum: MIAC
- Topic: MIAC dsPIC - AV Input throwing error when compiling
- Replies: 2
- Views: 4342
Re: MIAC dsPIC - AV Input throwing error when compiling
Thanks Leigh, I must confess, I've been using FC on/off for several years and have dropped MIACs into a few projects as they seem like a great quick fix. However as constructive criticism, it does require a different approach and (unless i'm not looking in the right places) the user is left a bit st...
- Tue Jun 20, 2017 8:02 pm
- Forum: MIAC
- Topic: MIAC dsPIC - AV Input throwing error when compiling
- Replies: 2
- Views: 4342
MIAC dsPIC - AV Input throwing error when compiling
OK, so I'm just trying to read two pots into the MIAC and display them on the display. Work fine in sim but thorws a load of ADC related errors when it tried to pass it to the linker/assembler. a sample of the errors I see is; : undefined reference to `_FC_CAL_ADC_Disable' H:\01JLRP~1\REMOTE~1\FlowC...