Continue to Site

# processing sine wave with flowcode v4

Status
Not open for further replies.

#### fs789

##### New Member
hellow,
please : can any one help me in making aprogram using flowcode v4:
the program stores analog values of one period (50ms) from asine wave (50hz). the signal is connected to adc0 of pic16f877a .and stored in the eeprom of pic.
the signal is stored for purposes of analysis.

#### birdman0_o

##### Active Member
50mS per sample? there's only 256 EEPROM bytes, you won't be able to sample for long.
12.8 seconds. Also , that's just about how fast it writes to the eeprom, that might cause you some grief.

#### fs789

##### New Member
50mS per sample? there's only 256 EEPROM bytes, you won't be able to sample for long.
12.8 seconds. Also , that's just about how fast it writes to the eeprom, that might cause you some grief.

the period is 20ms , not 50ms.
can you give me any solution?

#### birdman0_o

##### Active Member
I would suggest using the PIC's ADC input to find the voltage than feeding it to your PC via RS232 and creating software on the PC to display /analyze your results.

Or getting a larger external eeprom for 2$#### fs789 ##### New Member I would suggest using the PIC's ADC input to find the voltage than feeding it to your PC via RS232 and creating software on the PC to display /analyze your results. Or getting a larger external eeprom for 2$
i did not understand.
please explain more for me .

#### birdman0_o

##### Active Member
What are you trying to do with the sine wave (what are you trying to analyze)?

#### fs789

##### New Member
What are you trying to do with the sine wave (what are you trying to analyze)?

I WANT TO MAKE AFLOWCODE APROGRAM TO WORK AS FOLLOWS:
WHEN THE SIGNAL IS APPLIED TO ((ADC0)) OF PIC16F877A,I WANT TO KNOW THE SIGNAL VALUE AT ANY INSTANT: FOR EXAMPLE:
WHAT IS THE SIGNAL VALUE AT TIME EQUAL 2ms ? the time is measured with respect to adetermined instant(( for example :at the peak value).

OF COURSE,I WILL ENTER THE VALUE OF TIME TO THE PROGRAM,AND THE ANSWER((SIGNAL VALUE)) WILL BE DISPLAYED ON ASEVEN SEGMENT DISPLAY,OR ANY LED DISPLAY.
PLEASE HELP ME TO WRITE THE PROGRAM IN FLOWCODE,BECAUSE I DID NOT KNOW ASEMBLY OR C LANGUAGE.

Last edited:

When is it due?

#### birdman0_o

##### Active Member
Is this project for your school, or is it for your own personal benefit?

#### fs789

##### New Member
is this project for your school, or is it for your own personal benefit?
of course for school(( teaching purposes))

#### birdman0_o

##### Active Member
How much time do you have to get this project together?

#### fs789

##### New Member
How much time do you have to get this project together?

i must do this project as fast as possible.
thank you very much

#### birdman0_o

##### Active Member
Flow code isn't that popular on the forum, if you asked the same question about a program in C or ASM we would be glad to help you!

#### fs789

##### New Member
Flow code isn't that popular on the forum, if you asked the same question about a program in C or ASM we would be glad to help you!

ok,
can you send to me the ASM file and the HEX file.
and,if you can, the circuit diagram of the project.
ANOTHER QUESTION: do you mean that flowcode can not make such programs?
THANK YOU VERY MUCH

#### 3v0

##### Coop Build Coordinator
Forum Supporter
I have used flow code enough to teach another member to use it.

This task should not be hard. Just do it.

Status
Not open for further replies.

Replies
9
Views
2K
Replies
2
Views
2K
Replies
25
Views
2K
Replies
6
Views
1K
Replies
0
Views
796