Discussion in "Project Doubts" started by    digital-guy    Dec 2, 2008.
Sun Mar 29 2009, 05:04 pm
#61
hi all...
i was wondering how the "swap" command works in assembly and i couldnt find any info on it
for example if i have a number e.g. 05H and 0101B what would happen if i apply swap
is the answer 50H and 1100B ??
and i want to apply or logic to them lets say
0011 ORL 0110 and 50H ORL 04H

and also i wanted to know why some people connect pin 9 of 8051 in between a 1uF capacitor and 56k resistor...capacitor connected to 5V and resistor to GND ...all this instead of connecting to 5v with switch for reset ?

any response would be appreciated


[ Edited Sun Mar 29 2009, 05:07 pm ]
Sun Mar 29 2009, 09:22 pm
#62
swap command interchanges higher nibble with lower nibble.

i.e. if you swap 50H you will get 05H

regarding reset. well it is required to connect a capacitor and resistor to form an RC circuit and give a high to low pulse on reset pin. more information on selection of RC you can get in Intel 8051 user manual. visit download section to download it.
 digital-guy like this.
Tue Mar 31 2009, 04:57 am
#63
what if i want to apply or logic
0011 ORL 0110 and 50H ORL 04H
what would the answer be?
and why do we need high to low pulse on reset pin...cant we just replace it with reset push button with 5v?
Tue Mar 31 2009, 02:05 pm
#64
0011 ORL 0110 => 0111

50H or 04H => 54H

regarding reset
read following..
 digital-guy like this.
Sun Apr 05 2009, 05:03 am
#65
hi... i was just wondering how do we select the frequency of the crystal that we used with uC why do we use 11.05.... and 12mhz and what would happen if we increase the size of the crystal... would the uC be faster???
Sun Apr 05 2009, 10:29 pm
#66
yes controller will be faster. well choosing a crystal depends on type or project you are working on.. like if you want faster execution of code then u choose to increase speed, but sometimes you feel problem when you are trying to communicate between two controllers using uart and baud rate doesnt come perfect. i cant explain this coz its more of a practical issue than just conceptual one. :0
Wed Apr 08 2009, 07:31 pm
#67
hi... i was wondering what are the benefits of using a M74HC04 hex inverter. i have tried to trigger a 12v 40mA fan by using just a TIP 31c power transistor...but didnt work i tried again with using both tip31 and hex inverter and it worked... what i have been told is that hex inverter can boost the current to the fan (current buffer) if this is true then isnt the power transistor suppose to do the same?? and why do we need power transistor?? and cant we used the normal one?
Thu Apr 09 2009, 02:12 am
#68
A tip31c should be able to drive a 40 mA fan without using a M74HC04.

It may be that the fan needs more than 40 mA, or your circuit is wrong.
Please post a diagram of your circuit.
Tue Nov 03 2009, 05:42 pm
#69
I implemented the same project mentioned here.
But ZCD is not giving proper output. It should give 50 pulses per second. but it is giving approximately 35,000 pulse.
Has someone implemented the same project as mentioned here ?

Below is the ZCD diagram which I have implemented.

Please help me...

Wed Nov 04 2009, 04:31 pm
#70

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

KevinTab
Sun Apr 28 2024, 05:35 am
Tumergix
Sun Apr 28 2024, 12:59 am
StevenDrulk
Sat Apr 27 2024, 08:47 pm
StephenHauct
Sat Apr 27 2024, 09:38 am
Adamsaf
Sat Apr 27 2024, 07:12 am
Robertphype
Sat Apr 27 2024, 12:23 am
ktaletrryp
Fri Apr 26 2024, 10:55 pm
Robertrip
Fri Apr 26 2024, 11:20 am