Continue to Site

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.

Is 8bit MUC enough for my system?

Status
Not open for further replies.

chmr

Junior Member level 2
Joined
Nov 28, 2003
Messages
23
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
249
Is 8bit enough?

Hi all

I have a 8 bit MCU in my system,most of the signals are used as GPIOs,and there are 5 ADC be used as key detect.
Because the MCU is connect to DSP through UART, I'm afraid that response of the keys will too slow.
Is it better to use 16 bit MCU,or doesn't matter.

Thanks

-----------------------
chmr
 

Re: Is 8bit enough?

I think it could be done, but you have not tell ADC speed and resolution...
 

Re: Is 8bit enough?

ADC clock is 2MHz,and 8bit or 10bit can be chose.
 

Re: Is 8bit enough?

Do you use ADC for something else, or just for key detection?
Or I did not understood good the question?
 

Re: Is 8bit enough?

Maybe you can consider the MSP430 Serise . It have Uart port and 200K Sample rate ADC . And It is 16bits MPU. It is very suitsble your application. You can visit the TI's Web to find it .

Best Regards
Bear Chang
 

Re: Is 8bit enough?

It may depends on the clock speed of the 8bit cpu. If the clock is fast enough, then 8bit is fine.
 

Re: Is 8bit enough?

8 bit or 16 bit, 32 bit... you should not associate with serial communication speed.
If you say that your MCU is connected with DSP trough UART you probably don't know what is the bps.
Just imagine this: because your MCU has built-in UART it does not occupy its time while the UART sends data out. The MCU just supplys next byte and "forgets" about this function... One of the most common speed in serial communication is 9600bps.
This is close to 105µs per bit, so one frame will be (including start and stop bits, 8 bits of data and no parity...) more than 1ms. Now, it is very likely that A/D conversion is performed in less than 100µs and that your 8-bit MCU executes instructions in less than 10µs (except some codes).. so there is still plenty of time before next byte has to be delivered to the UART....
Conclusion: don't worry about number of bits..8-bit MCU is more than you need!!!
 

Re: Is 8bit enough?

Hi Ianp

Do you mean that after ADC complete,it might be "waste" some times then be delivered to the UART?
That is exact I worried. My DSP need to have fast response to do something after press the keys. Will it be delayed by UART ?
 

Re: Is 8bit enough?

The answer is YES and NO. Depending on the baud rate the MCU will be waiting (ie wasting) some time or at certain speed there will be nalmost no breake between conversion time and "delivery" time. Again, this has nothing to do with 8 or 16 bit architecture!!!
And another thing is this: your response time is approximately 0.5s (from you see something untill you press a key) and this is 500 000µs...and even at slow baud rate and single µs of execution time is thousands and thousands time less than your response time...I just would not worry very much about it!!!
 

    chmr

    Points: 2
    Helpful Answer Positive Rating
Re: Is 8bit enough?

Hi Friends.

One more inportant point !!!!

The key is an mechanical switch and when you press it
it not connected directily it make noise for few ms like 10ms-20ms (see datasheet of key)

you must after first detection of the key make a debounce (delay for key fix)
or if you sample it fery fast you will see the key pressed more time then one.


Best regards.
 

Re: Is 8bit enough?

try identifying the bottlenecks in your system ... by the looks of it i dont think an 8 / 16 bit processor is a real issue ... the serial communication baud rate can be ...
for the switch interface try using a latch instead of handling the debouncing in software ... try using a MCU with built in ADC options ... cygnal has several good options in that regard

www.cygnal.com
 

Is 8bit enough?

you need to consider the both speed, adc and mcu.
for they can work rapidly and reliably, they must coordinate each other.
 

Re: Is 8bit enough?

Why hasn't anyone asked the threadstarter why he would need an ADC to detect a key press?
 

Re: Is 8bit enough?

nice comment checkmate! :) in fact woudn't a normal input pin coupled to debounce codes b sufficient for each keys?
 

Re: Is 8bit enough?

depends on the micro...if is a low pin count pic for example,using the adc is a nice trick to read a keyboard on only one input...if more io pins are available,is a better idea to scan a matrix in the classic way,will be faster than waiting for the ad converter...i'm almost sure he's talking about a 12f675....
 

Re: Is 8bit enough?

Seems like using ADC will only slow things down, add more work.
Still going to need to debounce.

What else is this uP going to be doing besides watching for buttons being pushed?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top