Discussion in "8051 Discussion Forum" started by    kevinharsha    Apr 3, 2019.
Wed Apr 03 2019, 04:48 PM
#1
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?

Thanks,
Kevin
Wed Apr 03 2019, 10:25 PM
#2
Hi
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
#3
http://www.8051projects.net/download-d231-musical-tone-library-for-8051.html

Thank you for taking your time to help me!
Fri Apr 05 2019, 10:05 PM
#4
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.


Attachment

Sun Apr 14 2019, 06:26 PM
#5
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
#6


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.
http://www.keil.com/forum/6234/


Get Social

Information

Powered by e107 Forum System

Conversation

Mon Jun 17 2019, 05:33 PM
charmdateapc
cooking
Sun Jun 16 2019, 07:48 PM
hanoch Taub
i need to interface sim800 to 8051, the problem is that on the module sim800 there are 9 pins connector and I don't know how to connect him to 8051, which pins to tx and rx on 8051 module sim there is
Tue May 28 2019, 07:14 PM
Ron Otsig
KBI does not work on P89LPC920 but it works on P89LPC925
Mon May 27 2019, 09:03 AM
BIJI MATHEW
Hello friends....
DragonDad
Tue May 21 2019, 03:02 PM
Hi. Who is online?
Tue May 14 2019, 12:38 AM
Jayson Contreras
Hello
Xkalebar
Sun Apr 28 2019, 09:06 AM
Please provide me the code for gsm based sms controlled notice board
ExperimenterUK
Sun Apr 14 2019, 10:52 PM
@hassan malik post your problem in the "General help Guidance and Discussion" forum
Sun Apr 14 2019, 05:06 PM
RAJESH MAPARi
please send me code to interface atmega32 with 24c1024 serial eeprom
Sun Apr 14 2019, 01:33 PM
hassan malik
hello sir i installed proteus 7.8 professional on window 7 ultimate and window 10 but there would be same errors onn both windows. the error is bad license key.please any one help me

Downloads

Comments

Easwaran22
Thu Jun 13 2019, 10:16 AM
JenniferJJ
Thu Jun 13 2019, 05:12 AM
seyoonnet
Tue Jun 04 2019, 12:37 PM
Charbel
Sun Jun 02 2019, 03:30 PM
ronotsig
Mon May 27 2019, 03:00 AM
WilsonNig
Sun May 26 2019, 03:11 AM
DragonDad
Tue May 21 2019, 02:50 PM
dhiyamtech
Thu May 09 2019, 10:20 AM

Online

Guests: 41, Members: 0 ...

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

Members: 38072
Newest member: Easwaran22
Forum Activity
JenniferJJ Avatar
Posted By JenniferJJ
Thu Jun 13 2019, 05:17 AM
Hi,Hello Members,I am the newbie member, I like ve...
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu May 30 2019, 08:32 PM
It occurs to me that although the P89LPC921 and P8...
ExperimenterUK Avatar
Posted By ExperimenterUK
Wed May 29 2019, 09:05 PM
I would suggest a fresh approach.The Keil compile...
ronotsig Avatar
Posted By ronotsig
Wed May 29 2019, 03:13 PM
Since the code works for the P89LPC925, it is appa...
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon May 27 2019, 06:23 PM
I can't see any reason that those registers would ...
ronotsig Avatar
Posted By ronotsig
Mon May 27 2019, 03:06 AM
I am trying to using P89LPC921 or P89LPC922 in a p...
Ansh12 Avatar
Posted By Ansh12
Sun Apr 28 2019, 02:15 PM
I made a minor change, it works in Proteus.Try the...
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Apr 25 2019, 08:20 PM
I made a minor change, it works in Proteus.Try the...
gigyani Avatar
Posted By gigyani
Thu Apr 25 2019, 01:17 AM
when i add cufirst.hex its not working.after 2-3 s...
ExperimenterUK Avatar
Posted By ExperimenterUK
Wed Apr 24 2019, 12:29 AM
http://www.8051projects.net/download-d205-electron...