English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i have PIC 18 series microcontroller, C compiler fr PIC. i have MPLAB software also. plz if u know plz provide exttra ckt, otherwise give information.

2006-08-19 04:43:13 · 5 answers · asked by purna chandra rao 1 in Science & Mathematics Engineering

5 answers

Most of the 16 series PICS have on board PWM generators. Just call the function from the 18C libraries that came with the compiler. Otherwise use one of the timer interupts to turn an IO pin on and off.

You will not need any external circuitry unless this is to drive a motor or something. Driving an RC servo would be fine because it contains its own circuitry.

P.S., in the C18 (compiler) folder look at the file pwm.h. It should be pretty self-explanitory

2006-08-19 07:00:18 · answer #1 · answered by selket 3 · 0 0

Depending on the details - power required, frequency, etc. You should be able to program a PWM waveform using the PIC with no external circuitry. If the PIC does not have special registers for PWM then just make your own counters and timing loops to do it.

2006-08-19 04:50:39 · answer #2 · answered by rscanner 6 · 0 0

In my experiance with the pics, if you want a more stable waveform use a quartz crystal instead of the internal generators and functions. Then write your own timing loops to switch one of the pins/registers on and off. If your going to run a DC motor with this make sure you use a MOSFET to boost the voltage externally. Burned up a few chips before I learned that one!

2006-08-20 18:10:28 · answer #3 · answered by RocketScientist 2 · 0 0

Go to
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=74
and get a datasheet. They also have a *ton* of circuit examples, code examples, etc. on the Microchip site.

You *definitely* will want a copy of MPLAB (it's free and works very well)

And rscanner is correct. About all you'll need is a quartz crystal (or a ceramic resonator) and a couple of R's and C's for external circuitry to get the chip running.


Doug

2006-08-19 05:01:23 · answer #4 · answered by doug_donaghue 7 · 0 0

certain, yet provided that yer like tremendous cool. not familiar cool. Anonymity is tremendous for particular issues, yet i do not favor to misrepresent myself too a lot! that would not be honest- l advise others can and do misrepresent me

2016-11-30 19:55:36 · answer #5 · answered by Anonymous · 0 0

fedest.com, questions and answers