PORTB_H.0 = RB16?

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

Moderator: Benj

Post Reply
User avatar
mikn
Posts: 209
Joined: Mon Mar 03, 2014 10:11 pm
Has thanked: 54 times
Been thanked: 41 times
Contact:

PORTB_H.0 = RB16?

Post by mikn »

Can't understand the following:
PORTB_L.0-7 shows correct RB0-7
But when I set up Input to PORTB_H pin 0 to 7, it shows me RB16-23. And where are RB9-15?
My chip is pic24fj64.

Also one more thing, look to the picture below.
When I edit "calculation" block (just enter it and press ok), previous Input block changes port to some other automatically and number of port seems to be out of any ranges..

Looks like a bug
Attachments
sc-portb.GIF
sc-portb.GIF (2.77 KiB) Viewed 2970 times
FC 6.1.3.2 (18.02.2016)

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: PORTB_H.0 = RB16?

Post by kersing »

This is a bug and has been reported for 6.0.6, but apparently not yet fixed for the 6.0.7 release.
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

User avatar
mikn
Posts: 209
Joined: Mon Mar 03, 2014 10:11 pm
Has thanked: 54 times
Been thanked: 41 times
Contact:

Re: PORTB_H.0 = RB16?

Post by mikn »

Thanks. Any advices how to do temporary fix?

Also isn't the following happens because of this bug? I've got two buttons connected on A1 and A3. Connected these ports to two components Push button and made them Active low.
A3 works ok, but A1 works reverse. However they are both connected to the ground. :?: Just wondering maybe it reads wrong pins if there's a bug with pin assign.
FC 6.1.3.2 (18.02.2016)

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: PORTB_H.0 = RB16?

Post by kersing »

To work around the issue, use calculation icons and assign the pins to variables.

Example:
port.JPG
port.JPG (10.51 KiB) Viewed 2962 times
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

User avatar
mikn
Posts: 209
Joined: Mon Mar 03, 2014 10:11 pm
Has thanked: 54 times
Been thanked: 41 times
Contact:

Re: PORTB_H.0 = RB16?

Post by mikn »

Oh, cool. Thanks!
FC 6.1.3.2 (18.02.2016)

Post Reply