Change flowchart 16F88 to 16F628

Moderator: Benj

Post Reply
donald
Posts: 74
Joined: Tue Feb 14, 2012 5:17 pm
Been thanked: 3 times

Change flowchart 16F88 to 16F628

Post 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.
Attachments
piezo driver3.fcf
(18.5 KiB) Downloaded 258 times

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times

Re: Change flowchart 16F88 to 16F628

Post 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.
1 in 10 people understand binary, the other one doesn't !

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: Change flowchart 16F88 to 16F628

Post 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
Martin

donald
Posts: 74
Joined: Tue Feb 14, 2012 5:17 pm
Been thanked: 3 times

Re: Change flowchart 16F88 to 16F628

Post 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).
Last edited by donald on Tue May 15, 2012 5:54 pm, edited 1 time in total.

donald
Posts: 74
Joined: Tue Feb 14, 2012 5:17 pm
Been thanked: 3 times

Re: Change flowchart 16F88 to 16F628

Post by donald »

Hello all,
If it can improveits performance. I am waiting for examples, criticism, comments.
Attachments
piezo beeps.fcf
(16.5 KiB) Downloaded 255 times

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: Change flowchart 16F88 to 16F628

Post 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
Attachments
piezo beeps1.fcf
(13.73 KiB) Downloaded 257 times
Martin

Post Reply