Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to write a code to interface with 8255 ?

Status
Not open for further replies.

b-shoitan

Newbie level 3
Newbie level 3
Joined
Dec 27, 2006
Messages
4
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,281
Activity points
1,329
interfacing with pia 8255

how can i write a code in C to interface with 8255 ??
 

Please refer the data sheet of 8255
 

Because 8255 is simple parallel port, the operation are only read and write,

how to program is up to which system you are working on.




b-shoitan said:
how can i write a code in C to interface with 8255 ??
 

I woiuld imagine that the 8255 was made forthe 808X family of micros in which case a
port access statement would probably take care of all the proper pins going high and low with the proper timing. For other chips you would probably have to do bit banging.
This would definitley be the case for micros that do not have hardwre/opcodes for accessing external memory and ports, which includes most modern 8 bit micros which have internal program and data memory. Can't you just use some ttl 74374 latches and a 74138 decoder?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top