Page 1 of 1
12F615 Unable to select IOC
Posted: Sun Jan 24, 2010 11:24 am
by medelec35
Properties of port interrupt are greyed out.
I have solve by editing 12F615.fcd (attached)
Also same with this chip as others. IOC is not simulation, but works on real hardware.
Re: 12F615 Unable to select IOC
Posted: Sun Jan 24, 2010 10:50 pm
by medelec35
Update:
After selecting correct IOC port in properties. it does not appear to work on hardware. I know I'm using 12F615 on EB006, and have taken into account RA1 is connected to pot B6, and RA2 is connected to port B2. Is there a 12F615, some one at matrix can use to verify IOC operation. I'm not sure if tat bit is a bug, or me getting tired and missing things.
Re: 12F615 Unable to select IOC
Posted: Tue Jan 26, 2010 11:36 am
by Benj
Hi Medelec
I have made the appropriate changes and this FCD should noow have the Port Change interrupt specified properly. Though as you say the simulation will not work correctly.Please can you give this a quick go and make sure it is ok on the hardware,
Thanks
Re: 12F615 Unable to select IOC
Posted: Tue Jan 26, 2010 10:23 pm
by medelec35
Two things.
1) Thanks for posting FCD. Unfortunately cannot get IOC to work. Tried IOC port A1 to o/p on A5. This and other combinations was unsuccessful.
2) This chip always fails programming first time and shows

- 12f615 fail prg.jpg (43.39 KiB) Viewed 4380 times
Then if click Continue then Flowcode auto minimises with Flowcode icon in taskbar is in orange
and when click onto icon on task bar shows

- 12f615 fail prg2.jpg (34.65 KiB) Viewed 4380 times
Always seems to fail with config.
If I do nothing except 'Program to Chip' again, then will program successfully.

- 12f615 prg ok.jpg (36.66 KiB) Viewed 4380 times
Using windows vista 64 bit windows. Test is very repeatable
Edit found some 12F675, and programed them to test for IOC and had the same problem except this device programs OK except showing a 'program memory check failed' and the fist time programmed has a unable to retrieve OSSCAL message, so always check and write down OSSCAL value prior to programming. So either there is a problem with ioc on 8 pin devices, or I'm doing something silly. Knowing me is prob the latter

Re: 12F615 Unable to select IOC
Posted: Wed Jan 27, 2010 9:42 am
by Benj
Hi Medelec
Ok thanks for the info regarding the programming.
You may need to read the input pins you are using for the interrupt before the interrupts will begin automatically firing. If you have already done this then let me know and I will dig out the 12F devices we have here and so some tests.
Re: 12F615 Unable to select IOC
Posted: Wed Jan 27, 2010 1:15 pm
by medelec35
Benj wrote:You may need to read the input pins you are using for the interrupt before the interrupts will begin automatically firing.
Thanks Ben. That’s a very good point, which had totally slipped my mind.
I will try tonight and post results tomorrow.