Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

which one is the best for me ?

Status
Not open for further replies.

aegis

Junior Member level 2
Joined
Jan 14, 2006
Messages
21
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
1,467
hello everyone
i just wanna started my project using microcontroller together with PIR sensor (motion) and some solid state relay ( it can trigger 220 V AC with 5 V DC) for controlling the lamp, turn on , turn off, and if possible a dimmer feature will be added , this my first time dealing with the microcontrollers, i wanna ask which micro will be the best for me ? 8051, or AVR ? which one has better PWM instruction ?
 

hi
i don't know the AVR. but the 8051 has noe PWM instructions.
i know that the PIC has. try any PIC micro controllers. may the 16f84 usefull fo u.
the advantages op pic that it is easy to learn. and easy to get a programmer ( u can build it easy) also in curcuit debugger also easy to build.
good luck

Salam

Ahmed
 

PWM is not done through instructions, it is done through PWM timers. There are 8051 derivatives, AVRs and PICs that can do that. Your challenge is in the hardware interface. Get a microcontroller kit that you know one of your friends is familiar with. Your computational features can be done with any microcontroller running at 1 kHz.

Bob
 

bobsanjose said:
PWM is not done through instructions, it is done through PWM timers.
Well, not exactly. Actually, there are no uC instructions to handle PWM in software, but selecting a controller with a hardware PWM circuits may be an overkill for some applications. For the power control applications with a few PWM channels, it is very easy to make very accurate PWMs in software. For a 50 or 60 Hz mains this kind of software is not a challenge at all. uCs with many hardware PWMs are much more expensive than those without.
As I said, it all depends on the application and the programmer wheteher to take HW or SW approach.
Regards, yego
 

Hi

I started with different 8051 mainly from philips, atmel, cygnal finally ended up using AVR.

My main reason for using AVR has been its ISP (in-circuit programming capabilities) and the support available from ATMEL. I have been able to make 3 programmers (1 parallel and 2 serial) myself. The Assembler is available from ATMEL and is verys nice. Wheras cygnal also offers ISP for 8051 but I am not able to get any information about simple parallel port programmers. I have to use cygnal hardware.

Another thing good about AVR over 8051 is that configuration of I/O is much easier. For example if you configure the Port pin as RS232 (Rxd Txd) then hardware configuration is done automatically.

Further the last good thing about AVR is that you can get powerfull µC in DIL package which is easier to solder on universal PCB.

Thanks

Added after 12 minutes:

Hi

Sorry I missed out the PWM part. I have used hardware PWM before using philips 8051 derivative.

Whether to use hardware or software PWM depends on resources available and your aim. If I am a student I would use software PWM to learn and demonstrate its implementation(provided I am not behind schedule). However If I am making a complex commercial product using interupts, RS232 etc I would rather use hardware PWM.

Thanks
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top