This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How can I assign an input pin?

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.

Parents
  • 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!

Reply
  • 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!

Children