Port IOC not working if IOC register is used.

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:

Port IOC not working if IOC register is used.

Post by medelec35 »

This applies to target devices:
12F615,12F617,12F683 and other targets that has an IOC register.

Take a look at the target device FCD file located in:
C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\FCD
If 64 bit windows
or
C:\Program Files\Matrix Multimedia\Flowcode V4\FCD
if 32 bit windows

Find:

Code: Select all

Opt3_4="GPIO 4 Int Off / GPIO 5 Int Off"
and if the line below shows

Code: Select all

Opt3_4Val="ioc = ioc & 0x0C;\n"
then change line to:

Code: Select all

Opt3_4Val="ioc = ioc & 0xCF;\n"
After saving change, then exit and restart Flowcode.
Martin

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: Port IOC not working if IOC register is used.

Post by Enamul »

Thanks Martin.
Enamul
University of Nottingham
enamul4mm@gmail.com

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: Port IOC not working if IOC register is used.

Post by medelec35 »

Your welcome Enamul.
So long as it it all helps :)
Martin

Post Reply