Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

can a AT89C51 be used as a rom?

777xxx

Member
so i can connect it to an external cpu and run code off it? ive looked on google and cant find any definitive answers. i know it uses flash ram but if i only want to read from it, would this be a problem? and if so, where would i connect the address and data lines? any help would be appreciated.
 
You can't tell it what address you want to get data from so there would be no way to get data from the particular address you want.
 
Personally I don't think it would work. The 8051 device controls the address bus, so an external device would have to be in serial control, bit banging an address bus externally, then decoding it and reading the code and sticking it on the data bus would take longer than a serial connection, so as Nigel already said it would be piggin slow. 8051;s do have the ability to read external rom, but from a rom chip..
 
Personally I don't think it would work. The 8051 device controls the address bus, so an external device would have to be in serial control, bit banging an address bus externally, then decoding it and reading the code and sticking it on the data bus would take longer than a serial connection, so as Nigel already said it would be piggin slow. 8051;s do have the ability to read external rom, but from a rom chip..

I don't see why not (although it depends on your definition of 'work') :)

It should be possible to write a program to emulate a ROM, 16 I/O lines for address input, 8 I/O lines for data output, plus the usual handful of handshaking lines - but as we've said all along, it will be horribly slow.

But as the OP seems to live in the civilised world he could get some decent devices for little coat next day.
 

Latest threads

Back
Top