Hi all,
The machine cycle is too slow for me. Is there anyway to input a signal from signal generator into MCU, so I can use it to trigger?
The pin assigns like: sbit dataIN = P1^3; How can I assign an input pin?
Thanks.
Your question doesn't make much sense - please clarify.
www.catb.org/.../smart-questions.html
"The machine cycle is too slow for me"
So you have 2 choices:
1. Speed it up; 2. Choose a chip which does have a suitable speed.
It's impossible to advise further as we have no idea why you say it's "too slow".
"Is there anyway to input a signal from signal generator into MCU"
How would the fact that it comes from a signal generator make any difference to anything?
"so I can use it to trigger?"
To trigger what?
"The pin assigns like: sbit dataIN = P1^3; How can I assign an input pin?"
You just said - that does assign the pin! So what do you want to do that the above does not achieve?
How can I assign an input pin?
bible time
www.danlhenry.com/.../80C51_FAM_ARCH_1.pdf www.danlhenry.com/.../80C51_FAM_HARDWARE_1.pdf www.danlhenry.com/.../80C51_FAM_PROG_GUIDE_1.pdf
Hi Andrew,
Sorry for misunderstanding. What I'm going to do is:
1. Input an singal, from a function generator, into the MCU. 2. Use this signal to trigger, with rising edge, the MCU to output data. For example, Input a 1M signal into the MCU, and the MCU outputs data bit by bit with the frequency 1M(every 1/1M sencond outputs a bit)
I can't use for function, because the machine cycle is too slow, which is only 270k. I'd like to output the signal in 1MHz.
Thanks a lot!
So you are just duplicating this post:
http://www.keil.com/forum/62459
Hi,
I'm trying not using "interrupt" but inputting an external signal for trigger. 2 ways for solving the problem. See if anyone can help. Thanks for your time.
So why on earth are you running it so slowly??!!
Clearly, you have no chance of doing anything at 1MHz when the chip is running so slowly!!