Hello All
I am a physics Phd. student and only recently I have become interested in microcontroller and microprocessor programming due to requirements in the lab im currently working in. I have a couple of general questions about possibilities of either of these devices. I have some very very basic knowledge of the devices but i cannot encompas it yet to even known if im able to do particular things i'm interested in, or which device(PIC or straight microprocessor?) might be better for a particular task:
So my questions are:
1. Is it possible to configure your microcontroller in such way that it will allow the user to input a particular number that will correspond to the desired pulse delay. In other words, if i enter let's say 500 using a connected keypad, is it possible to control the built-in clock(let's say 10MHZ)to set one of the outputs to HIGH for the desired amount of time(either 500 clock pulses, or better yet 500 ns/us/ms/or even seconds)? I'm know this might probably require some intense coding but im just asking if it is reasonably possible.
2. Is it possible for the microcontrollers to collect data? I know that PIC units have built in D/As and A/Ds and flash memory so my question is if it is possible to code it in such way that it will store analog data from a particular input pin and allow me to execute let's a mathematical operation on it. For example is it possible to collect voltage readings at two different times and then compare and, let's say display the difference between them using an LCD panel.
3. Expanding on the last question, is it possible to code the PIC in such way that it will allow me to perform mathematical operations. In other words, is it possible to use let's say PIC18F, connect it to a keypad, and code it so it performs like a calculator. I know that some of the advanced calculators use Motorolla 68000 CPUs, so is it only possible to code such operations using microprocessors directly?
4.As most of you will deduct from my questions, my knowledge of MCUs and CPUs is lacking, so what books would you guys recommend to learn about the subject? There is so many of them on the market and I already bought 3 but some of them seem a little outdated since they don't even mention PIC18s.
Thanks for the help guys
I am a physics Phd. student and only recently I have become interested in microcontroller and microprocessor programming due to requirements in the lab im currently working in. I have a couple of general questions about possibilities of either of these devices. I have some very very basic knowledge of the devices but i cannot encompas it yet to even known if im able to do particular things i'm interested in, or which device(PIC or straight microprocessor?) might be better for a particular task:
So my questions are:
1. Is it possible to configure your microcontroller in such way that it will allow the user to input a particular number that will correspond to the desired pulse delay. In other words, if i enter let's say 500 using a connected keypad, is it possible to control the built-in clock(let's say 10MHZ)to set one of the outputs to HIGH for the desired amount of time(either 500 clock pulses, or better yet 500 ns/us/ms/or even seconds)? I'm know this might probably require some intense coding but im just asking if it is reasonably possible.
2. Is it possible for the microcontrollers to collect data? I know that PIC units have built in D/As and A/Ds and flash memory so my question is if it is possible to code it in such way that it will store analog data from a particular input pin and allow me to execute let's a mathematical operation on it. For example is it possible to collect voltage readings at two different times and then compare and, let's say display the difference between them using an LCD panel.
3. Expanding on the last question, is it possible to code the PIC in such way that it will allow me to perform mathematical operations. In other words, is it possible to use let's say PIC18F, connect it to a keypad, and code it so it performs like a calculator. I know that some of the advanced calculators use Motorolla 68000 CPUs, so is it only possible to code such operations using microprocessors directly?
4.As most of you will deduct from my questions, my knowledge of MCUs and CPUs is lacking, so what books would you guys recommend to learn about the subject? There is so many of them on the market and I already bought 3 but some of them seem a little outdated since they don't even mention PIC18s.
Thanks for the help guys