Page 1 of 1
Change flowchart 16F88 to 16F628
Posted: Mon May 14, 2012 4:35 pm
by donald
Hello everybody,
I just have a few microcontrollers which I play, (16F628 and 12F675).
Please help me change it to 16F628, this flowchart.
Re: Change flowchart 16F88 to 16F628
Posted: Mon May 14, 2012 9:26 pm
by JohnCrow
Hi Donald
You cannot use the 16F628 with your flowchart as it does not support the ADC component.
If you try to change the chip in project options you will get a warning about this.
You will have to select another device.
Re: Change flowchart 16F88 to 16F628
Posted: Mon May 14, 2012 10:11 pm
by medelec35
Hi Donald,
John of course is correct,
however if you do want to sick with 16628, the ADC could be left out, and use a switch to select different frequencies.
If you have test equipment to measure frequency, you can keep pressing switch until desired frequency is found, then change flowchart just to work at desired frequency without need for pressing switch,
Or if not got a test meter or a phone app that can display audio frequencies, then an additional LED could be used to flash once every 10 seconds for example for frequency 1, twice every 10 secs for freq 2 etc.
Personally If it was me I would do what john suggested and select/purchase another device that has ADC, PWM etc
So I'm not limited to the projects I could make since creating flowcharts is fun.
Martin
Re: Change flowchart 16F88 to 16F628
Posted: Tue May 15, 2012 3:30 pm
by donald
Hello all,
Thank you very much for ideas of Johns and Martin.
Give it up to the potentiometer, I am interested in a sequence of program carried out
with the help of flowcode, which give rise to an audio signal interrupted (beeps).
Re: Change flowchart 16F88 to 16F628
Posted: Tue May 15, 2012 5:52 pm
by donald
Hello all,
If it can improveits performance. I am waiting for examples, criticism, comments.
Re: Change flowchart 16F88 to 16F628
Posted: Tue May 15, 2012 7:54 pm
by medelec35
Hi Donald,
Just edited the Flowchart slightly.
The only thing that was wrong was the frequency calculation because the ADC vale part has been removed.
The rest was altered for minor improvements but was not technically wrong.
Now your flowchart is driving the transducer connected to A1 and A2 at about 4.1KHz
If the resonance frequency is different to 4.1KHz, then If you can let me know what it is, and also if you let me know the pulsing frequency i can sort that as well.
Martin