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

Serial Communication

Can I communicate two programs?
One written in C and another on ASM.
The ASM would use a function Send Serial.
The C would use a function Receive Serial.
They should be on the same project?
Or on the same source group?
How can I simulate this transmition?

Parents
  • Thanks very much.

    Making it real is much better than simulate.

    On the same source code (.asm) the program had SEND and RECEIVE functions.

    Then the program send an 'A' to a SBUF, after SBUF to the 'A'.
    To check if the program could send a value and receive the same value again.

    I tried it. In the beginning I did: MOV A, #30h.

    Used the RUN debugging the A after was 00h.

    Made step by step the A was 11h.

    Is there a difference between them?
    I cant use step by step when using the timer?

Reply
  • Thanks very much.

    Making it real is much better than simulate.

    On the same source code (.asm) the program had SEND and RECEIVE functions.

    Then the program send an 'A' to a SBUF, after SBUF to the 'A'.
    To check if the program could send a value and receive the same value again.

    I tried it. In the beginning I did: MOV A, #30h.

    Used the RUN debugging the A after was 00h.

    Made step by step the A was 11h.

    Is there a difference between them?
    I cant use step by step when using the timer?

Children
  • Then the program send an 'A' to a SBUF, after SBUF to the 'A'.
    To check if the program could send a value and receive the same value again.

    I tried it. In the beginning I did: MOV A, #30h.
    that does not start a transmit

    Used the RUN debugging the A after was 00h.

    Made step by step the A was 11h.

    yes, the code changed the contents

    Is there a difference between them?
    well 30h is not 11h

    I cant use step by step when using the timer?
    sure you can

    Erik