Thanks for your comments . I am using version V8.
I would like to use the value in an EMA calculation (1-alhpia) as part of a filter.
It seems to work in my 8 bit version of the program.
Search found 17 matches
- Fri Mar 15, 2024 8:11 pm
- Forum: Flowcode V8
- Topic: fround command pic 24fFV
- Replies: 4
- Views: 541
- Fri Mar 15, 2024 1:09 am
- Forum: Flowcode V8
- Topic: fround command pic 24fFV
- Replies: 4
- Views: 541
fround command pic 24fFV
Sir I am trying to use the fround command to limit a floating variable to 2 decimal places. It appears not to work in the simulation. EMA_APHIA = 0.90 EMA_APHIA = fround (EMA_APHIA,2) when I run the simulation I get 0.899999976------------lots more. Does this command work in the simulation or only o...
- Fri Sep 16, 2022 7:19 am
- Forum: Flowcode V8
- Topic: expression syntax error
- Replies: 3
- Views: 4010
Re: expression syntax error
Hi QMESAR
Thank you my friend. I feel such a fool.
It works now
Thank you
Thank you my friend. I feel such a fool.
It works now
Thank you
- Fri Sep 16, 2022 5:10 am
- Forum: Flowcode V8
- Topic: expression syntax error
- Replies: 3
- Views: 4010
expression syntax error
I am having an issue compiling to HEX for pic chip 16f1615. The system returns a syntax error test_16f1615.c: main() 480: FCV_VOLTS_IN = 0; ^ (195) expression syntax (908) exit status = 1 (908) exit status = 1 The failure is always on the first line of the program after a C code box defining frequen...
- Tue Aug 16, 2022 12:25 am
- Forum: Flowcode V8
- Topic: Using DAC O/P PIN RA2 16F1709
- Replies: 2
- Views: 2745
Re: Using DAC O/P PIN RA2 16F1709
Hi Chipfryer27 Sorry for the delay I was building the circuit board to try out the program. I am pleased to say I only needed to add one line of C code to turn on the port for RA2 . I placed this line after the component MARCO to enable the DAC output . DAC1CON0= 0xB0 . Next I have the component mar...
- Thu Aug 04, 2022 12:22 am
- Forum: Flowcode V8
- Topic: Using DAC O/P PIN RA2 16F1709
- Replies: 2
- Views: 2745
Using DAC O/P PIN RA2 16F1709
I am using PIC16F1709 and I want to use pin RA2 as the DAC output. Flowcode8 does not allow me to set the DAC o/p pin. Default port A0. Looking at the form it appears it I set C code for DAC1CON0 = 10110000 (0XB0) this will enable pin RA2 and disable Pin AO. My question is my code correct in the att...
- Sun Aug 16, 2009 2:27 pm
- Forum: Flowcode V4
- Topic: watchdog and usb slave
- Replies: 1
- Views: 2023
watchdog and usb slave
I am new to flowcode and pic programming in general, however I must say that with flowcode I managed to do what I want with one exception, For my program to work I used a string usb slave port, all I do is in one line write a string to set outputs and in the same scan read in all inputs. It is worki...
- Fri Aug 14, 2009 8:11 am
- Forum: Flowcode V4
- Topic: Analogue in gain
- Replies: 2
- Views: 2318
Re: Analogue in gain
THKS
- Thu Aug 13, 2009 8:56 pm
- Forum: Flowcode V4
- Topic: usb slave and main routine
- Replies: 1
- Views: 1905
usb slave and main routine
Chip 18f4550 I managed to get usb slave working with a program I wrote in vb. The problem is that once I successfully introduce the slave into my project all other routine in the main menu work in the panel but not in the chip. I have tried calling a macro from the main menu. I am trying to pulse an...
- Thu Aug 13, 2009 5:18 am
- Forum: Flowcode V4
- Topic: Analogue in gain
- Replies: 2
- Views: 2318
Analogue in gain
Is there a way to change the input amplification gain of an analogue in port.
The problem I have is my source signal is only 0 to 1 volt.
I can do this by amplifying the signal with an op amp however if it can be done in the chip it will be more convenient.
The problem I have is my source signal is only 0 to 1 volt.
I can do this by amplifying the signal with an op amp however if it can be done in the chip it will be more convenient.
- Wed Aug 12, 2009 8:51 pm
- Forum: Flowcode V4
- Topic: converting string
- Replies: 1
- Views: 2267
converting string
If I read an integer from an analogue in, how can i send it to the host via usb,
I tried converting it to a string and send it across,
It comes out in 4 registers. For the love of me I cannot figure how to get these 4 values back to a decimal again.
I tried converting it to a string and send it across,
It comes out in 4 registers. For the love of me I cannot figure how to get these 4 values back to a decimal again.
- Wed Aug 12, 2009 12:12 pm
- Forum: Flowcode V4
- Topic: VB and 18f4550
- Replies: 6
- Views: 3849
Re: VB and 18f4550
I have studied the examples and just cannot get it right, am I correct in saying the first 3 bytes sent are stored in the macro.a,macro.b and macro,c variables. Macro.a determines the subroutine to be performed Therefore if I send 0,0,50 We will output the first routine, setting outputs according th...
- Wed Aug 12, 2009 8:59 am
- Forum: Flowcode V4
- Topic: VB and 18f4550
- Replies: 6
- Views: 3849
Re: VB and 18f4550
Thks i will study it carefully
However once this data has been sent how in the flowcode macro do i analize this
if i could have an example of how to put on an output and read in an input say a analohue in
However once this data has been sent how in the flowcode macro do i analize this
if i could have an example of how to put on an output and read in an input say a analohue in
- Wed Aug 12, 2009 7:31 am
- Forum: Flowcode V4
- Topic: VB and 18f4550
- Replies: 6
- Views: 3849
Re: VB and 18f4550
Can someone tell me if I am correct in analizing the following instruction lRetVal = ECIO_Transmit(bDataOut(0), 3, nTxDataCnt, bDataIn(0), 32, nRxDataCnt, 500) bDataOut(0) this is the number of the board , 3, this is the macro 3 that will run ie the 3 condition in the service macro The rest does not...
- Wed Aug 12, 2009 4:49 am
- Forum: Flowcode V4
- Topic: VB and 18f4550
- Replies: 6
- Views: 3849
VB and 18f4550
Is there a white paper available for the VB example that can help me in understanding the Syntax required to successfully read the inputs and write to the outputs.
All I need to do now is how to read the variables into VB From the pic and write to the variables in the pic.
All I need to do now is how to read the variables into VB From the pic and write to the variables in the pic.
- Wed Aug 12, 2009 4:47 am
- Forum: Flowcode V4
- Topic: USB SLAVE AND CHIP 184550
- Replies: 2
- Views: 2343
Re: USB SLAVE AND CHIP 184550
Thks i manage to compile the 3 byte example and send it to the pic.
- Tue Aug 11, 2009 9:35 am
- Forum: Flowcode V4
- Topic: USB SLAVE AND CHIP 184550
- Replies: 2
- Views: 2343
USB SLAVE AND CHIP 184550
if i put a slave usb component macro to flowcode, just 1 macro i get the following message, wheteher it is my flowcode ot he examples supplied. CHIP 18F4550 File name: C:\Smokehouse\microchip\flowcode\Flowcode_V4_Examples\Examples\Components\USB Slave\USB Slave Demo 3-Byte.c Generated by: Flowcode v...