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
PORTB_H.0 = RB16?
Moderator: Benj
-
- 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?
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
― C.S. Lewis
- 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?
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.
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)
-
- 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?
To work around the issue, use calculation icons and assign the pins to variables.
Example:
Example:
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis