Hi, I am trying to use AT89C4051 to interface with an ADC and an external SRAM. The whole idea is get the sensor input from the ADC ( in terms of voltage) and write it to the SRAM. I dont exactly know how to go about doing that ( e.g how to address the external SRAM and etc). Could someone be able to help me. By the way i am using C to programm the chip. Or are there good books to be recommended. Thank you.
The 89C4051 doesn't have an external memory interface - see the datasheet! You could implement a serial interface in software (eg, I2C or SPI)... How much data do you intend to store?
I am planning to store about 30kbyte of data, I think 8051 would be a better choice... Could you advice me on it...Thank you. I dont have any idea on how to interface 8051 with an external SRam...
"I dont have any idea on how to interface 8051 with an external SRAM" You need to start with the basics: read the followig documents - commonly referred to as "the bible" for the 8051 (external memory interfacing is on p6 of Chapter 3): Chapter 1 - 80C51 Family Architecture: http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_ARCH_1.pdf Chapter 2 - 80C51 Family Programmer's Guide and Instruction Set: http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_PROG_GUIDE_1.pdf Chapter 3 - 80C51 Family Hardware Description: http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_HARDWARE_1.pdf You probably also need to read the uVision Getting Started Guide, and work through the example projects in it. This will give you a proper introduction to the tools, how they work, and how to use them - rather than just jumping-in blindly at the deep end. (The uVision Getting Started Guide is available on the 'Books' tab in the 'Project' Window; The 'Books' window is also available via the 'Help' menu; failing all that, search for GS51.PDF in your Keil folder)