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.
It sounds like that you are trying to use memory-mapped IO technique
for external registers (not SFR) to control your chip. This method
is used widely for 8051 derivatives, such as monitor controllers.
It is because the standard 8051 ICE with vendor's special adaptor
could be used for debugging.
For application of this kind, you could use PBYTE[] or XBYTE[]
(I suppose you are using K_e_i_l C51 compiler) to access external
registers and control your chips. For more detail, check user's
manual of the compiler you use.
Yes this is what I am trying to do. I will look at the manuals.
Please let me know if memory mapped I/O would require additional components to be used for address decoding ? like a 7XX374 or something else or can I connect the Memory device straight ?
Further can I make use of any 8051 port for memory mapped I/O or should I depend on port A port B ?
Recently, I used a chip with only 7 external registers.
I mapped these registers to 0xxxh, 1xxxh, 2xxxh, ~ 6xxxh.
That is I used XBYTE[0x0000], XBYTE[0x1000],... to have access
to this chip. So I did not put 373 on the board. However, not all
applications could use this scheme. Also remember to connect /WR and /RD to your chip for write and read.
Dear Waterman :lol:
Pobably i can help you ...Start designing from basics(the kind of I/o you have on the 8051 or its peripheral and the kind of memory you wanna interface.
work out the pin configuration and the memory details and then definitely u wil be able to understand how many latches(definitely one for add and data) u need if u wanna multiplex the pins and use them.
Regds..
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.