SS bit not able to use on PIC18F86J60-i/pt in flow code

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
karthik.devaraj
Posts: 24
Joined: Tue Feb 12, 2013 9:03 am
Contact:

SS bit not able to use on PIC18F86J60-i/pt in flow code

Post by karthik.devaraj »

Hi all,

I cant able to use the SS pin ( RF7 ) in PIC18F86J60 when using flow code. I referred data sheet about it and that was only for slave set bit. Kindly help me in order to use that IO pin where I'm in short of Io pins for my project.

Thanks in advance !

Kenrix2
Flowcode v5 User
Posts: 211
Joined: Tue Feb 19, 2013 9:51 pm
Has thanked: 72 times
Been thanked: 177 times
Contact:

Re: SS bit not able to use on PIC18F86J60-i/pt in flow code

Post by Kenrix2 »

You can try this. Open the file 18F86J60.fcd located in C:\Program Files\Flowcode\v5\FCD with a text editor. Just below [PortMasks] is PortMask5=0x7E. Change it to PortMask5=0xFE. Save the change, close it and restart Flowcode.

karthik.devaraj
Posts: 24
Joined: Tue Feb 12, 2013 9:03 am
Contact:

Re: SS bit not able to use on PIC18F86J60-i/pt in flow code

Post by karthik.devaraj »

Thabks kenrix And it's working. Same I'm struggling with the pin "RJ4" that I cannot use. Help me out pls.

Kenrix2
Flowcode v5 User
Posts: 211
Joined: Tue Feb 19, 2013 9:51 pm
Has thanked: 72 times
Been thanked: 177 times
Contact:

Re: SS bit not able to use on PIC18F86J60-i/pt in flow code

Post by Kenrix2 »

Change PortMask9=0x20 to PortMask9=0x30. If you convert the hex to binary you can see what is going on. 0x20 = 0b100000, just bit 5 is set.
0x30 = 0b110000, bits 5 and 4 are set.

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: SS bit not able to use on PIC18F86J60-i/pt in flow code

Post by Benj »

Hello,

Thanks for posting the fixes. I have applied these mods to the source so these bugs should not re-appear.

karthik.devaraj
Posts: 24
Joined: Tue Feb 12, 2013 9:03 am
Contact:

Re: SS bit not able to use on PIC18F86J60-i/pt in flow code

Post by karthik.devaraj »

HI Benj & kenrix

After editing the.FCD file with above values the flow code is not getting compile. It showing the error that PIC doesn't hape eeprom memory and c code error. Where I'm not using C code anywhere in flow code file..

Help me out pls.
Attachments
ENTRY.fcf
(106.25 KiB) Downloaded 241 times

karthik.devaraj
Posts: 24
Joined: Tue Feb 12, 2013 9:03 am
Contact:

Re: SS bit not able to use on PIC18F86J60-i/pt in flow code

Post by karthik.devaraj »

Request a reply on above flow code file error

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: SS bit not able to use on PIC18F86J60-i/pt in flow code

Post by Benj »

Hello,

Which version of Flowcode are you using? Maybe you could post up your edited FCD and I will have a look.

Post Reply