![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #1 |
|
I am going to use 8052 to recieve data of three 8-bit serial digital outputs from ADC. That means I want to store the serial digital data into the registers in 8052. I want to ask the program of convertion. All I know is to enable clip select(CS),a CLK signal to control the ADCs. (However I have 3 series of data to read in. One by one) May I request for some practical examples for this assembly program? Thank you microcontroller : Atmel 8052 Serial output ADC: ADC0831 http://www.farnell.com/datasheets/26633.pdf P.S.:why my reply doesn't show...? Last edited by xela; 22nd March 2007 at 03:52 PM. | |
| |
| | #2 |
|
what are the components you are using? Do you have any datasheets? | |
| |
| | #3 | |
| Quote:
A/D converter: ADC0831 datasheet: http://www.farnell.com/datasheets/26633.pdf | ||
| |
| | #4 |
|
Presumably yet another homework/classwork question? - and we can guess what part of the world it's from as it's using long out of date components!. Actually it's not from the usual place, but not too far away!. | |
| |
| | #5 | ||
| Quote:
In fact I have a program which has not been tested yet. Also it may able for one input only. here it is Quote:
| |||
| |
| | #6 |
|
I have working code for 2 TLC549 from TI and 80C31 from Philips ![]() Let's proceed step by step: 1) Hardware You wrote that you have 3 8031 ADC's but I can find only one Chip Select in your code (P1.0). How do you expect the others to work? First define ALL the hardware you need. Assign a µC pin for each 8031 pins you think you need to use. Don't forget pull-up pull-down resistors. Once you post a suggestion I (and others ) will check it for you.2) Read and understand the datasheet Especially the timing part so that you understand how the 8031 is working. Do you need adressing, setup (SE, differential) the 8031? 3) Flow chart Make a flow chart of all the actions the code need to do. Reading ADC's, display data(?), ... ... 4) Start coding As you probably noticed, I won't give you a solution, I will help you toward a solution | |
| |
|
| Tags |
| 8052, adc, assembly, program, serial |
| Thread Tools | |
| Display Modes | |
| |
Similar | ||||
| Title | Starter | Forum | Replies | Latest |
| Need help badly on Inchworm and MPLAB | thushy | Micro Controllers | 14 | 11th March 2007 07:05 PM |
| First Program in assembly, And Programmer Inchworm. | Ayne | Micro Controllers | 10 | 9th March 2007 08:27 PM |
| Tough assembly program for the PIC16F84 | asmpic | Micro Controllers | 34 | 3rd December 2004 07:50 PM |
| PIC16F877 serial program | Erwin_Macaraig | Micro Controllers | 3 | 21st November 2004 04:31 PM |
| data to serial port and musicmatch program info | leprien | Electronic Projects Design/Ideas/Reviews | 3 | 28th September 2003 02:02 AM |