![]() |
![]() |
![]() |
|
|
|||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
what is the function of a microcontroller?? it just takes inputs from various pins and for various combination of inputs, it give various output(through programming)...is it the only function of a microcontroller or does it do anything else also??
if it is the function of a microcontroller,then can we make various devices like comparators , adc, opamp just using microcontrollers(i understand this is not a great idea but just want to know if we can do this....) for example : to construct an adc which gives 00 for voltage less than 1v,01 for 1v-2v, 10 for 2v-3v and 11 for 3v-4v.., we will take an analog input pin of microcontroller and 2 digital output pins,and we would program the microcontroller to give the desired output for these inputs... please correct me if i am wrong here.... |
|
|
|
|
|
|
(permalink) |
|
some1 please reply....
|
|
|
|
|
|
|
(permalink) |
|
hi,
Your OP question is confusing. If you want to know what a Micro-controller is designed to do, it would be a good idea to look at some of the earlier Micro-processors or CPU's [central processing units] The early CPU's did not have peripheral harware within the ic. They controlled external peripherals, such as memory, I/O ports, analog convertors. etc. The lastest generation of micro-controllers now have a number of these peripherals as hardware within the ic. This makes circuit designs simpler, smaller and more reliable. Does this help.?
__________________
Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ Last edited by ericgibbs; 7th June 2008 at 06:49 AM. |
|
|
|
|
|
|
(permalink) |
|
k..i will try to make myself more clear...
first of all..i am asking just the function of a microcontroller without any external hardwares attached to it.... suppose i am making a line follower... 1) sensors are used to give an output analog voltage ... 2)these voltage outputs go to comparators which gives a digital o or 1.. 3) now these digital outputs are attached to a microcontroller, now my question is what does the microcontroller do with these input??( i am just talking about the small microcontroller chip and not the system on chip coming nowadays in the market with external hardwares attached to it) 4)now the output pins of the microcontroller are attached to motor driver (does the microcontroller decide what would be the output on these pins through programming??) so basically my question is that does this microcontroller acts as a bridge between the inputs and the logital output based on these inputs?? |
|
|
|
|
|
|
(permalink) | ||
|
Quote:
Quote:
__________________
========================= Futz's Microcontrollers & Robotics ========================= Last edited by futz; 7th June 2008 at 08:47 AM. |
|||
|
|
|
|
|
(permalink) |
|
thanks ...
i have just 1 last doubt... a digital 0 refers to a voltage 0v to 1v approx.(i know it depends on the mcu we are using) and digital one to a voltage about 3v to 5v..so if we program a microcontroller to give a output digital 1 for input digital 0...what voltage would the output pin have??? also, what happens if the input voltage is outside the limits of digital 0 or 1... |
|
|
|
|
|
|
(permalink) | |
|
Quote:
Look at this link for voltage threshold levels. Logic Voltage Thresholds for TTL, CMOS, LVCMOS, and GTLP IC's
__________________
Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ |
||
|
|
|
|
|
(permalink) | |
|
Quote:
Just as an example, for a PIC mcu, putting -5V on an input pin, rather than 0V or 5V or something in between, will either damage the IC, cause unexpected operation of your program, or not have any effect at all (although putting -5V on the input pin won't do any good, either). Good electronics design will mean making sure you're always conscious of the parameters within which the products you're using were designed to work. I know that can be a bit of a puzzle to make the pieces all fit together when you're first starting out, but the more you work at it, the more obvious and practical solutions will become. Last edited by Hank Fletcher; 7th June 2008 at 06:49 PM. |
||
|
|
|
|
|
(permalink) |
|
Guys,
I'm a newbe in Electronics and programming but I am very much intersted in PIC. I want to start with something easy to learn programming language that could be very useful in PIC programming. Thanks in advance |
|
|
|
|
|
|
(permalink) |
|
Swordfish BASIC for the PIC18F is easy IMO.
|
|
|
|
|
|
|
(permalink) |
|
thanks.
I think I have already read about that a month ago. |
|
|
|
|
|
|
(permalink) |
|
If your really new to PIC's maybe this will help?
Intro To PIC Programming - The Beginners Guide (17 Minutes)
![]()
__________________
Spency. PIC Micro's - Your mind is the limit PIC's and interfacing with other devices - a PIC Basic Guide @ digital-diy.net Last edited by gramo; 9th June 2008 at 06:34 AM. |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Latest |
| new to microcontrollers... need help | uditag | Micro Controllers | 9 | 28th September 2007 07:46 AM |
| Two MicroControllers | Eng.Remon | Micro Controllers | 73 | 13th June 2007 11:32 PM |
| MicroControllers! | Nanya | Electronic Projects Design/Ideas/Reviews | 1 | 11th April 2007 07:55 PM |
| 8-bit microcontrollers | samcheetah | Micro Controllers | 8 | 23rd December 2006 08:39 AM |
| PIC Microcontrollers | robchava | Datasheet/Parts Requests | 3 | 27th May 2003 03:38 PM |