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 ?
 

eng_ahmed22

Full Member level 4
Joined
Jun 7, 2005
Messages
190
Helped
20
Reputation
40
Reaction score
5
Trophy points
1,298
Activity points
2,944
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
 

bobsanjose

Advanced Member level 1
Joined
Jan 13, 2006
Messages
416
Helped
56
Reputation
112
Reaction score
21
Trophy points
1,298
Location
Silicon Valley
Activity points
5,228
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
 

yego

Full Member level 3
Joined
Oct 28, 2004
Messages
161
Helped
18
Reputation
36
Reaction score
3
Trophy points
1,298
Location
Middle of Nowhere
Activity points
1,840
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
 

AVM_NOIDA

Member level 1
Joined
Jan 31, 2006
Messages
39
Helped
7
Reputation
14
Reaction score
5
Trophy points
1,288
Location
Asia
Activity points
1,749
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.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top