Serial Communication Assembly code -PIC EUSART (MOVED)

Discussion in 'Programmer's Corner' started by 74266, Sep 28, 2016.

Thread Status:
Not open for further replies.
  1. 74266

    Thread Starter Member

    Mar 20, 2016
    I just want to ask if does anyone have a program in ASSEMBLY FORMAT(low level) that will instruct the DCE to read or write data from or to the LAT, PORT and TRIS A, B, D, and E registers using EUSART (Serial). The DTE will send 2 bytes of information in the following format:
    1st byte (register) 2nd byte (data)[​IMG]
  2. AlbertHall

    Well-Known Member

    Jun 4, 2014
    I think it is safe to say that no-one will have ready written code to do this as it is a very specific requirement.
    There is plenty of assembler code around for serial comms between two pics but you will need to write the code for how the data is used and for the switches and LEDs.
  3. jpanhalt

    AAC Fanatic!

    Jan 18, 2008
    I am confused. Do you, 74266, have a question about Assembly language or about how to do the task you have been assigned?

    My interpretation is that you have not been able to send and receiver serial data using the hardware EUSART in the device you have. That is, your question is not about Assembly language, but rather it is about how to accomplish a task that has been set out for you.

    If that is incorrect, please post your code for receipt and transmission and describe in your own words those processes that you do not understand how to do.

  4. ScottWang


    Aug 23, 2012
    Please don't do double post, this thread will be locked..
    Please go to the other thread.
Thread Status:
Not open for further replies.