12F615 Unable to select IOC

Moderator: Benj

Post Reply
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:

12F615 Unable to select IOC

Post 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.
Attachments
12F615.fcd
(5.49 KiB) Downloaded 235 times
Martin

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: 12F615 Unable to select IOC

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

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: 12F615 Unable to select IOC

Post 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
Attachments
12F615.fcd
(6.18 KiB) Downloaded 228 times

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: 12F615 Unable to select IOC

Post 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
12f615 fail prg.jpg (43.39 KiB) Viewed 3757 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
12f615 fail prg2.jpg (34.65 KiB) Viewed 3757 times
Always seems to fail with config.
If I do nothing except 'Program to Chip' again, then will program successfully.
12f615  prg ok.jpg
12f615 prg ok.jpg (36.66 KiB) Viewed 3757 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 :P
Martin

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: 12F615 Unable to select IOC

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

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: 12F615 Unable to select IOC

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

Post Reply