Discussion in "8051 Discussion Forum" started by    kevinharsha    Apr 3, 2019.
Wed Apr 03 2019, 04:48 PM
I had a couple of questions :-
1) Can you upload a list of components needed and the circuit diagram of the project?
2) The header file used in the project is reg52.h because of the use of timer2 and other functions which are exclusive to 8052, is there any way this project can be executed using and 8051?

Wed Apr 03 2019, 10:25 PM
Ajay is very busy with business right now so may not visit for a while.
Can you give a link to the project you are asking about.
Thu Apr 04 2019, 05:05 PM

Thank you for taking your time to help me!
Fri Apr 05 2019, 10:05 PM
Here is a version for the 8051.
Make sure you add delay.src to your Keil project files.
There isn't a circuit diagram as this is really about software,
but I have attached one setup you could use for testing.
No values are critical, but use a PNP transistor.


Sun Apr 14 2019, 06:26 PM
Hey! Thanks for the help! The circuit worked well with the updated code!! I just had a few questions...

1) Can you explain what is the use of the p-n-p transistor here?
2) Can you tell me what the function " void ISR_Timer1(void) interrupt 3 " does as it is not called anywhere else in the program?!
3) Can you explain the delay.src file and it's use?

[ Edited Sun Apr 14 2019, 06:28 PM ]
Tue Apr 16 2019, 12:23 AM

1) Can you explain what is the use of the p-n-p transistor here?

The 8051 cannot switch much current, so the transistor amplifies that
current to drive the speaker.

2) Can you tell me what the function " void ISR_Timer1(void) interrupt 3 " does

It is the interrupt handler called by Timer 1, when the timer count overflows.

3) Can you explain the delay.src file and it's use?

The call "Delay10MC(unsigned char)" is written in assembly language to be
as accurate as possible.
Mixing assembly and 'c' can cause problems for the compiler
so in this case the partly compiled assembly code is added to the
project separately as delay.src.
It is hard to explain the details.

Read this thread for an idea of what is happening.

Get Social


Powered by e107 Forum System


Mon Oct 26 2020, 12:46 PM
I needed to thank you for this wonderful read!! I definitely loved every little bit of it. I've got you book marked to look at new things you post… https://become-trader-test.com/ar Janelle
Mon Oct 26 2020, 12:42 PM
generic viagra reviews https://medexpresshop.com - canada drugs coupon viagra online pharmacy generic viagra coupon online pharmacy viagra viagra professional
Thu Jun 11 2020, 06:27 AM
sir could please send the code for I2C and wifi interfacing with 8051
Tue May 19 2020, 10:29 PM
Does anyone have microcontroller programming software for STC15F104W (core 8051, 4 k, 128 byte, 6 I/O pin, UART ... DIL8), that works?
Sat May 02 2020, 07:38 PM
Tamu Gurung
Hi I am looking for a assembly language program for a digital decimal counter. Time counts max limit of 2 mins starting from 2.00 mins and ending at 0.00. time is to be displayed on 4 7-segment LED displays. Edsim51 simulator to be used. Thanks
Wed Mar 25 2020, 01:39 PM
Sir kindly send the code file i2c for 8051
Fri Mar 13 2020, 10:36 PM
@ Rohitnani,ABEBE..which project ?
Fri Mar 13 2020, 12:55 PM
how can get hadwere of this project
Sat Mar 07 2020, 05:11 PM
Sir, Could you please send me the zip file input password....
Wed Feb 26 2020, 04:58 PM
Peter Parker
Is it possible to send multiple messages using only 1 GSM module?



Thu Jun 25 2020, 03:46 PM
Mon Jun 22 2020, 03:03 PM
Tue Jun 16 2020, 05:10 PM
Sat Jun 13 2020, 09:43 PM
Thu May 21 2020, 12:44 PM
Thu May 21 2020, 01:28 AM
Wed May 20 2020, 07:05 PM
Wed May 20 2020, 11:52 AM


Guests: 81, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38215
Newest member: Mirza123