Define I/O

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
Mounir
Posts: 2
Joined: Tue Oct 04, 2016 6:24 pm
Contact:

Define I/O

Post by Mounir »

Hello,
I'm using a pic 18F458 and i want to use the pin RD3 as an input but it not work. I read the datasheet and i see that i must define the RD3 as an input before using. How can i change this with flowcode please ?
Thank a lot.

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: Define I/O

Post by Benj »

Hello,

Please can you post your program and we will look for you. It should just be a case of using the input icon and reading the state of Port D or Single Pin D3.

Mounir
Posts: 2
Joined: Tue Oct 04, 2016 6:24 pm
Contact:

Re: Define I/O

Post by Mounir »

Thanks for reply but i resolve my problem. I just add a code C with: cmcon = 0x07.

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: Define I/O

Post by Benj »

Aha, Brilliant glad you've got it working now.

Also thanks for letting us know your fix.

I have now added this change to the Flowcode definitions files so it is automatically called for you behind the scenes when you select that device.

Simply extract the attached archive into your "Flowcode 6/FCD/PIC" folder and restart Flowcode for the changes to be loaded.
Attachments
PIC.zip
(13.47 KiB) Downloaded 182 times

Post Reply