|
Posted by Buddy Smith on September 30, 2006, 11:59 pm
> Hello Everyone,
> I am a beginner hobbiest in embedded systems.
Thanks for being upfront and honest. You might get some good results.
Now, I read your description. But, I think it'd be better if you tell
us what you're trying to build. What's the purpose?
Why must it have 16 bit AD converters? Do you know how very unlikely it
is that you will get that much resolution?
> I want to build a system which will have
> i. 16 channel, 16 bits ADC with SPI interface (it could be two 8
> channel ADC)
If you REALLY need 16 bits, you will need very precise analog
circuitry...
> ii. 16 RC Servo motor driver (capablity of generating 1-2ms RC
> servo pulses with 10 bits resolution, for 16 RC servo motors)
Again, where does 10 bits come from? What's it actually doing?
Does it need to be one CPU, or can you have more than one?
> iii. 1 RS232 port to communicate with a PC
> iv. PIC microcontroller (all the above devices will be operated by
> a PIC Microcontroller)
Why does it have to be a PIC? :)
> PIC will run the following algorithm;
> B. Create a timer interrupt service routine which will read the 16
> analog signals via ADC at 500 times per second and calculate a running
> averagefor each channel
> C. Read ADC channels (16 channel, 16 bits resolution) and calculate
> running averages for each channel
> D. Transmit the calculated averages (16 channel, 16 bits
> resolution) to a PC via RS232 channel
500 times per second * 16 channels * 2 bytes / channel = 16000
bytes/second. Now, RS232 can do that, but that's a pretty heavy load on
your PIC.... (I'm assuming you are transmitting them as binary values.
If you convert the numbers to ASCII, you could be sending much more
data)
> I will borrow an ICD-2 and MPLAB for the project and I will use
> Microchip's PIC C compiler.
How much time do you have? This is a non-trivial task. Find someone
near you with some experience in this field.
Give us some more detail on your project and you'll probably get more
feedback.
Hint: If you've never used microcontrollers before, start with a
blinking LED....
ttyl,
--buddy
|