SPI and I2C code examples for ADuC84x?

Where can I find examples for the SPI and I2C interfaces on ADuC84x parts?

  • 0
    •  Analog Employees 
    on Oct 1, 2014 5:09 AM

    We have some basic examples written in assembly coming along with the Evaluation-CD.

    Sorry nothing in C.

    But the examples are very small and straight forward and can be easily transferred to C by a SW engineer.


    The main point is how to configure the SFRs – this can be seen in the assembly examples easily.

    Here an example for a SPI Master configuration:

    ; CONFIGURE SPI...

    MOV     SPICON,#037h    ; configure SPI port for:

                                                 ; Fosc/16, CPHA=1, CPOL=0, master

    MOV     IEIP2,#1               ; enable SPI interrupt

    Hope that helps.

  • 0
    •  Analog Employees 
    on May 8, 2019 10:41 AM
    This question has been closed by the EZ team and is assumed answered.