External Int Input 12F615

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: External Int Input 12F615

Post by Benj »

Hello.

You may be able to use the key mappings to assign a keyboard key press to simulate the switch being clicked.

Or visa versa you can try holding down the mouse on the switch and using the function keys to step through the program.

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

Re: External Int Input 12F615

Post by medelec35 »

Hi Steff,
I have posted more about key mapping here.
http://www.matrixmultimedia.com/mmforum ... 219#p21219

I Find key mapping a very useful feature indeed.

Martin
Martin

Steff
Posts: 46
Joined: Wed Jun 23, 2010 1:26 pm
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: External Int Input 12F615

Post by Steff »

Thanks for the help.
The simulation now works well.
However, when I burn the small test program on the chip, it does not work. On a 12F615 it runs. On 16F1824 not.
The simulation runs with both chips.
Am I doing something wrong? What I noticed is that at the 16F1824, not all oscilator options are available. Is that a reason?

I want to use the 16F1824 with the internal oscilator without clk out, if is possible with a 19660800hz clk. I do not find this option.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: External Int Input 12F615

Post by Benj »

Hello,

The 16F1824's internal oscillator probably cannot handle 19.6608MHz or if it can it will have to be done by enabling and configuring the PLL using a C icon at the start of your program.

I would suggest doing a 1 second LED flasher test with the internal oscillator enabled and try to see what frequency your getting. On the 16F1824 the internal oscillator defaults 500khz but can be switched to 16MHz using the following C code.

Code: Select all

osccon = 0x78;
This code should give you 32MHz but not 100% sure it will work.

Code: Select all

osccon = 0xF0;

Steff
Posts: 46
Joined: Wed Jun 23, 2010 1:26 pm
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: External Int Input 12F615

Post by Steff »

The same problem again and again :oops: ?
At least a similar, only the Pic is different 8) .
I need the Ext Int input(RA2, Pin 17), the simulation does not work or I do something wrong. Can someone help me ?
I would like use the 16F1507, in the appendix a small test program. I work with Flowcode 6.
Attachments
Test_int0.fcfx
(7.41 KiB) Downloaded 490 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: External Int Input 12F615

Post by Benj »

Hello,

Thanks for letting us know. The Interrupt pin was set to be PortB bit 0 in the definition file which wasn't correct.

I have now moved the pin to PortA bit 2 which should be correct.

Simply copy the attached file into your "Flowcode 6/FCD/PIC" folder and restart Flowcode for the changes to be loaded.
16F1507.fcdx
(14.59 KiB) Downloaded 509 times

Steff
Posts: 46
Joined: Wed Jun 23, 2010 1:26 pm
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: External Int Input 12F615

Post by Steff »

Thanks a Lot ...now it works :D

Post Reply