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 interface ARM7TDMI with any digital data???????

Status
Not open for further replies.

vbhv007

Junior Member level 1
Joined
Nov 25, 2011
Messages
17
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,394
Hey ,Suppose i have a analog voltage generator and it is connected with an ADC .now how would i process the output of that ADC by using ARM7Tdmi ???which interface i have to use????
 

it is based on ADC that you and type of interface that ADC have....some ADC have parallel interface, some have I2C and some have SPI etc.....so it is based on ADC that you choose....

Good Luck
 

i have used ADC0808....it will give parellel output of 8 bit.....now how would i make it to enter in ARM processor????
 

heyy milind!!!these two are of very less use to me....ARM7TDMI is a processor core where as 8051 is uC......is'nt it????and thus it can be directly interfaced ... i think for ARM i need another interfacing IC.....if anything other you can do that can help...................please let me know.....nd btw thanks for your help!!!
expecting more!!!!!!!
 
Last edited:

First, the ARM7TDMI code is used in many different vendor's chips. Different vendors/packages have some differences in number of I/O pins and other peripherals available. So, which vendor/mfgr and chip are you planning to use? You will need to use and configure a number of the GPIO pins of the particular chip you wish to use to handle the addressing, control lines, and databus duties to interface with the ADC0808. Pretty much all of the GPIO on these devices is 5V tolerant, so you won't have to use an intermediary voltage level shifting chip - you could simply use pullup resistors to +5V where appropriate. You then would have to write software routines to read or write to the ADC0808 that would read&write the values of the affected GPIO lines correctly according to the sequencing/timing requirements on the ADC0808 datasheet. Depending on how you plan to use the ADC0808, I could see you having to use up to 14 GPIO pins on the ARM chip: 2 for Read/Write control, 3 for addressing, 8 for the 8-bit wide data bus, and 1 for the ADC0808 INTerrupt signal. This uses up quite alot of GPIO pins which could be used for other things, but if your design doesn't require other IO then that is fine. Otherwise, I'd look for a different ADC chip which uses I2C or SPI interface - you will have to write the driver code for the SPI or I2C controller, but examples of that are available on the internet, whereas you would be writing completely custom/unique code for implementing the interface to the ADC0808 (well, I am sure that many others have written that sort of thing before also, but depending upon what pins you use for what function in the interface, it would be unique, whereas the basic function of reading or writing bytes on the SPI or I2C ports on the ARM7 is well understood and much more common).

If you already have an appropriate JTAG programming/debugging pod, such as a Segger J-Link, you can obtain free trial versions of either IAR or Keil development tools which have all the features you need to write the code and program the chips. If you need a programming device as well, both of these companies have low cost introductory/evaluation kits which you could buy. It seems like you may be a student, and often there are student discounts also available.
Another development tools suite with programming and debugging hardware for the ARM chips which I also use is Rowley Crossworks, and they have some low-cost options available also for student/educational use.
 

heyy...you are right i m a student.....
first of all what GPIO stands for????
then i want to know that can i do this interfacing by using ARM7TDMI only(without the need of any interfacing IC between processor and peripheral device) as it is a microprocessor core.....or Do i have to use a ARM microcontroller like lpc2102 or any other?????
secondly,what kind of driver program do i need to write for it???
thanks for replying......

---------- Post added at 16:22 ---------- Previous post was at 16:17 ----------

And i want to clear one more thing....
i want to interface the ADC as an input peripheral to ARM.....and then want to process the data from ADC and desire to display its output using a LCD......
plz HELP!!!!!!
 

GPIO stands for general purpose input output lines and you need to do the connection of GPIO with ADC output lines as well as ADC control ....like CLK and LCD display too....

Good Luck
 

heyy ...thnx bro.....ARM core has very large number of pins....
what GPIO pins i need to use.......can you please tell me the whole procedure for interfacing it?????
i have to interface these two in ISIS professional software.........

---------- Post added at 10:28 ---------- Previous post was at 09:51 ----------

i also want to clear that ...Can i interface the ADC with ARM7TDMI microprocessor rather than LPC21xx microcontroller??????
 

ADC0808 can be integrated with any of the processor including ....either it is LPC21xx or ARM7TDMI and 8051 even.....but if you are using ARM based controller.....it generally comes with his own internal ADC mostly with 10 bit resolution....where as ADC0808 is 8 bit.... and you just need maximum 2 or 3 GPIOs if you are using internal ADC where as in case of ADC0808 you will at least 8 data line + 4 control line in case you need to have sync of ADC to be done with processor ....i.e. at least 12 GPIO.........second thing if you are using external ADC then you need to have ADC clock to be generated by processor....you you need one more timer too.... Also internal ADC are fast and most of time very accurate...Just explore the data sheet of your processor .....you may get internal ADC option

Good Luck
 

If i want to use ARM7tdmi microprocessor then how can do it....please let me know.....
I am working on the ARM processor for few weeks......to work this on microcontroller i need to read the data sheet for which will consume more time.....
plz help!!!!!
 

what is chip that you are using ? .....ARM core is only as CPU unit in the controller.....also you need to read data sheets .....if you really want to learn the embeeded coding for chips....

Good Luck
 

i m using ARM7TDMI core.........is there anything wrong????i am working using proteus(a VSM )???/
 

Sorry man I am never used Proteus ....I thought that you are working on some real chip which have ARM7 core......
 

Proteus is just a simulation software......you dont have to use it know it......
i have taken ARM7TDMI microprocessor device from it.....it is just a microprocessor core.....its not a microcontroller....what kind of C-code i have to write to read the data from the output port of ADC0808......do i need to attach any interfacing IC...???
 

LPC2148 (ARM7TDMI) itself having ADC and DAC. You can work with. If you want i can send the code which is running in Keil version4.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top