8255 problems
ThePenguinMaster
Posts: 89
hey guys,
ive been having some problems running the 8255 driver on a propeller. i have all my lines connected and it is partially working. heres whats happening:
i put all of the 8255 ports into output mode, and i can read off of·portA perfectally! port B and C are un responsive. i would think it was my address lines A0-A1 buyt they are connected correctly.
when i try to output to c and read off of b, whatever i output from c appears on b, although there is no hardware connection between the two.
in my program, i am setting the pins via the setpins function, and then setting the direction. and then trying to read or write
the intresting thing is that when i set the ports to out, a can read in, and when i set the ports to in, a can output. i know that in the 8255 driver that they say this is backwards so they reverse it in the driver, so maybe this isnt true for some reason?
its a single 8255 connected to a propeller.. any help would be appreciated!
also sometimes i get weird readings from b and c, kinda like random flickering of 1's and 0's.
ive been having some problems running the 8255 driver on a propeller. i have all my lines connected and it is partially working. heres whats happening:
i put all of the 8255 ports into output mode, and i can read off of·portA perfectally! port B and C are un responsive. i would think it was my address lines A0-A1 buyt they are connected correctly.
when i try to output to c and read off of b, whatever i output from c appears on b, although there is no hardware connection between the two.
in my program, i am setting the pins via the setpins function, and then setting the direction. and then trying to read or write
the intresting thing is that when i set the ports to out, a can read in, and when i set the ports to in, a can output. i know that in the 8255 driver that they say this is backwards so they reverse it in the driver, so maybe this isnt true for some reason?
its a single 8255 connected to a propeller.. any help would be appreciated!
also sometimes i get weird readings from b and c, kinda like random flickering of 1's and 0's.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
The two blue wires running from the programming connector... Do they source current to the middle rails, or do they draw current from it?
the cs is grounded out because it is my only 8255 on the bus.
the set of resistors on the lower left keeps the prop from frying when it recieves signals from the 8255 chip.
the wires running from the resistors to the 8255 have been re-done since this picture so theyre no so bundled up anymore.
also note that +5 is supplied to the 8255 running under the orange wires with the black wrapping on them. ground is connected through the rails.
When you are setting up your data bus to input for a read, or output for a write, anything you do to the dira register for those pins could be interpreted as data. When in fact you've not touched the outa register yet. Look at the state of the RD and WR line at the time you are changing the the state of the dira registers, if they are in transition from low to high or vice versa that might be the problem.
i guess i was thinking whils i was reading the datasheet that i wouldnt need the cs lines to run the chip. but of coarse until i get my own driver running, im using someone elses and i should fallow their directions for a reason. i have a 4 day weekend comming up so ill havce time to give it another go. ill let you guys know how it goes.