Assembly programming need help ?

Status
Not open for further replies.

vishal31

Joined Mar 7, 2007
1
Hi,

Im building a weather station for my project and i am using this circuit: http://www.iguanalabs.com/adc2051.htm I was wondering if someone could provide me with the assembly code for the 2051 microcontroller.

What i need the system to do is that im going to be connecting a temp and light sensor to the analog input, i then need the Vout value sent to the pc, from these sensors, so i can convert it into a numerical value of some relation.

Ive never done this before so i would be really grateful if someone could help me program the 2051, and provide information of how to get the data read onto the pc, some sort of c program.

Thank you

Vishal
 
hi,
If there is anyone who needs help on writing program for 8051 based processor, i can write program for your hardware. but you need to specify what actually your program must do. if you feel that your application is much confidential, you can simply give the logic of execution (like port p1.0 goes high 500ms after port 2 receives the byte AA ) of the firmware.

Ive got enough experience on designing systems based on 89C51,89C52,89C54,89C1051,89C2051,89C4051. from a small 3 component board to a complex system with 16 bit ADCs, DACs,Mux, LCDs,Serial EEPROM,EEPROM 128KB etc.

"WHEN WE SHARE WE CREATE POWER"

Regards
saha
hello sir,

i m doing my engineering final year project in the field of instrumentation & control.my project title is IR BASED MULTI APPLICATION FOR INDUSTRIES.

in my circuit the infrared transmitter and receiver is used. when the IR rays are received by the receiver then we wont get output from the receiver block.because we use an NOT gate in the output of the receiver. thus when the IR rays are disturbed by any object then we have to perform any of the functions like ALARM , COUNTER & INDUSTRIAL CONTROL(ON/OFF control of fan )

The output of the receiver is given to the microcontroller AT89C51 as input.a mode selector switch is connected with the microcontroller to select any one of the 3 operations.

relay circuits are connected with the alarm & industrial control circuits to ON/OFF corresponding circuit.the output of the 89c51 is connected to the COUNTER,ALARM&INDUSTRIAL CONTROL.

when the counter operation is selected then the counter should display the number of times the IR rays are disturbed by any objects, for example if the IR transmitter & receiver is connected on the sides of a belt conveyor, then the IR rays are disturbed by the objects moving through the conveyor.so the counter should count the objects moving through the IR rays.

when the alarm mode is selected then the alarm should ON when the IR rays are disturbed.

when the industrial control mode is selected then the FAN operation should switch off when the IR rays are disturbed.

there should be a reset mode to undo any of the operation.thus the circuit should perform only one operation at a time.


PLEASE PROVIDE ME AN ASSEMBLY LANGUAGE PROGRAM & ALGORITHM FOR THIS OPERATION USING MICROCONTROLLER AT89C51(8051 family)

please reply me as soon as possible..
 

Thread Starter

saha

Joined Jun 1, 2006
53
Hi sajjid,

what happened?


hi vedant,

Refer here to contact me

http://forum.allaboutcircuits.com/showthread.php?t=2697&page=2


hi edgehead,

"disassembler for PIC16f84a" in google resulted in 5360 links. check this links

http://www.gnupic.dds.nl/disassemblers_james_cleverdon.html

http://www.talkingelectronics.com/Projects/Disassembler/Disassembler.html



Hi vishal31

Refer to the link below for the "ASm file for Microcontroller " and the "c code forthe PC".

http://forum.allaboutcircuits.com/showthread.php?t=2697

this is another link. Do give me the schematic and then expect the program.

http://www.8052.com/codelib/Serial_com.asm


hi arikrishnan,

Yes I got it what you are asking. As people asking like you are more i feel its better i can make a big business by selling custom products. You can search in the google and just make a "ROUGH CIRCUIT"- say a blinking LED when you power up, I hope yours will not need even a General purpose PCB. As you are frm india a bread board of say Rs60/- will do a lot more wonder than you cud dream of. First make a flow chart and specify how many input pins you need. and try to write a program on "YOUR OWN", Ofcourse i can right a program and flash on this forum provided you specified your schematic. Refer the following link. You can start building it. If "all your efforts" are in vain i will make it work for you. Note the lines in double quotes. It is not something like i spoon feed you. Its better you start learning something on your own "Leave no doors UNknocked". If you think i am saying so much philosophy then "GET ME THE SCHEMATIC AND SAY WHAT THE MICROCONTROLLER HAS TO DO" and I will make it work as you expalined. So start building the circuit like the one in this link.

http://www.iguanalabs.com/1stmicro.htm

write to me after you had done till this level. Think about adding switches, how many switch and display to inform that it is working in mode 1- alarm.. like that you need leds to inform or 7 sement displays or LCD ?if so bring out and pour your thoughts. As mailing is the only medium for communication you need to explain a lot. Also go through my responses to others. You'll get more if only you ask for it.

Note for ALL :

Please do google before posting here and when you are posting asking for a program give me the schematic and explain what the circuit has to do.I cannot say this repeatedly and it is understood that you will not get reply till you put it clearly. Iam happy to read an essay of explanation for satisfyng your needs.
 

rajasaha

Joined Mar 10, 2007
2
sir,
i am using DS89C420 as my controller and MCP3208 for ADC and I2C as EEPROM.Can you help me to get the programming for it.
regards
rajasaha
 
hi ,

i already mail u . my project title is IR BASED MLTI APPLICATION FOR INDUSTRIES

im using LCD display

im using 3 switches for each operation



please provide me assembly language programme 4 d same

reply me as soon as possible . my mail id is arikrishnan_t@yahoo.com

thank you

Hi sajjid,

what happened?


hi vedant,

Refer here to contact me

http://forum.allaboutcircuits.com/showthread.php?t=2697&page=2


hi edgehead,

"disassembler for PIC16f84a" in google resulted in 5360 links. check this links

http://www.gnupic.dds.nl/disassemblers_james_cleverdon.html

http://www.talkingelectronics.com/Projects/Disassembler/Disassembler.html



Hi vishal31

Refer to the link below for the "ASm file for Microcontroller " and the "c code forthe PC".

http://forum.allaboutcircuits.com/showthread.php?t=2697

this is another link. Do give me the schematic and then expect the program.

http://www.8052.com/codelib/Serial_com.asm


hi arikrishnan,

Yes I got it what you are asking. As people asking like you are more i feel its better i can make a big business by selling custom products. You can search in the google and just make a "ROUGH CIRCUIT"- say a blinking LED when you power up, I hope yours will not need even a General purpose PCB. As you are frm india a bread board of say Rs60/- will do a lot more wonder than you cud dream of. First make a flow chart and specify how many input pins you need. and try to write a program on "YOUR OWN", Ofcourse i can right a program and flash on this forum provided you specified your schematic. Refer the following link. You can start building it. If "all your efforts" are in vain i will make it work for you. Note the lines in double quotes. It is not something like i spoon feed you. Its better you start learning something on your own "Leave no doors UNknocked". If you think i am saying so much philosophy then "GET ME THE SCHEMATIC AND SAY WHAT THE MICROCONTROLLER HAS TO DO" and I will make it work as you expalined. So start building the circuit like the one in this link.

http://www.iguanalabs.com/1stmicro.htm

write to me after you had done till this level. Think about adding switches, how many switch and display to inform that it is working in mode 1- alarm.. like that you need leds to inform or 7 sement displays or LCD ?if so bring out and pour your thoughts. As mailing is the only medium for communication you need to explain a lot. Also go through my responses to others. You'll get more if only you ask for it.

Note for ALL :

Please do google before posting here and when you are posting asking for a program give me the schematic and explain what the circuit has to do.I cannot say this repeatedly and it is understood that you will not get reply till you put it clearly. Iam happy to read an essay of explanation for satisfyng your needs.
 

khpceng

Joined Mar 24, 2007
2
Hi every body:
I hope you could help me in my project which is about designing embedded server using 89c52 , interfacing the ethernet with 89c52 any one have a good suggestion and info I'm waiting

regards
khpceng
 
for programming we use "h" to refer hexadecimal number.for example

MOV R2,#0FFH .

similarlly what is used 2 refer decimal number.? is it necessary to initialise the use of decimal in ATMEL89C51 programming.

MOV R3,#00D

what is the meaning of the D used in above programme.

please reply as soon as possible to my mail id arikrishnan_t@yahoo.com
 

kautilya

Joined Apr 26, 2007
39
Hello sir,

We needed help for an assembly language project.

The project we are making is an intelligent train engine that senses the red signals and stops automatically. The circuit consists of an IR sensor that receives the red signal and slows down in steps. The microcontroller chip 89C51 should convert the red signal and convert them into a language understood by the motor. There are 4 relays. The first relay gets cut off and the motor is running at a reduced speed (at 9V; assuming it is a 12V DC motor). AFter 2-3 sec delay, the second relay gets switched off and the motor is running at 6V. SImilarly, the third and fourth relays also switch off and the motor stops. The signal changes to green
and the motor is switched on manually.

We would like you to write the program for us as soon as possible.

KAutilya
 

Thread Starter

saha

Joined Jun 1, 2006
53
Can you be clear in explaining the following

1. what are the port pins used?

2. what is the kind of motor? is it a small DC motor with just two lines( +ve and -ve) ?

3. You are saying to use IR - sensor, but you mention to sense red colour ? which one you need to sense IR or RED

IR- doesn't fall in the visibility spectrum , hence colour less but its wavelength is more nearer to RED than any other colour in the VIBGYOR spectrum.

4. where are the 4 relays connected ? can you just draw a "free hand wiring diagram of your hardware " and send it. It will be much easy for me to write the program quickly. should you give it all today you can expect it by tomorrow. write clearly . IT CAN BE LENGTHIER ALSO.

regards,
saha
 

kautilya

Joined Apr 26, 2007
39
Hello sir,

This is in reference to your message sent on 29/4/2007.

I had talked to you about our project 'Intelligent Train Engines'.
The motor which we are using is a small 12V dc motor with two lines +ve and -ve.

For your benefit, I have listed below the entire circuit connection and operation. Also sent is a circuit diagram as requested by you. Please go thro' it and write the assembly language prog. for us.

We are hoping to hear from you soon.

Kautilya
(Attached: circuit and project details)
 

Thread Starter

saha

Joined Jun 1, 2006
53
hi,

SEE THE ATTACHMENT. LET ME KNOW THE COMMENTS/ SUGGESTIONS/ MODIFICATIONS/ I've attached the assembler i've used and a manual to use it. I have included some comments. hope you can make modifications and try out modifying the logic.

open the motor 2 and save as "motor.hex" . do you have a programmer ? then this hex file is used for uploadingto the MICROCONTROLLER. motor 1 is the assembly program. the assembler used is metalink assembler. google it and get the free assember. save the motor 1 .txt file with extension .asm. this is used for further modification.

regards,
saha
 

Attachments

kautilya

Joined Apr 26, 2007
39
Hello sir,

I am not able to download the file. Please instruct me what i should do.
Or else you could send it it me in another simpler format.

Kautilya
 

fakibox

Joined May 19, 2007
1
Hello SAHA,

I am new in this forum, but i liked this thread very much beacause i thought maybe you can help me in someway.

I have a development board with 8051 (http://www.mikroe.com/en/tools/easy8051a/), and i need to make a program for showing the time and date in multiplexed mode on four 7-seg display, and also the possibility for editing time or date with switches. I need the assembler code!

If you could help me i will appreciate it so much. fahri.xhelili@gmail.com


Thnx and rgs,
:)
 

Thread Starter

saha

Joined Jun 1, 2006
53
You can try out with the example code supplied along with the board. Its not that i can do it for you but if i just give the code what's the inintended use fof the "DEVELOPMENT BOARD".

reagrds,
saha
 
Status
Not open for further replies.
Top