OpenCores
URL https://opencores.org/ocsvn/amber/amber/trunk

Subversion Repositories amber

[/] [amber/] [trunk/] [hw/] [tests/] [uart_tx.S] - Diff between revs 2 and 15

Show entire file | Details | Blame | View Log

Rev 2 Rev 15
Line 59... Line 59...
1:      bl      wait_tx_full
1:      bl      wait_tx_full
        ldrb    r6, [r5], #1
        ldrb    r6, [r5], #1
        @ transmit byte from test_uart
        @ transmit byte from test_uart
        str     r6, [r4]
        str     r6, [r4]
        bl      uart_rx_check
        bl      uart_rx_check
 
        @ keep doing this until get to the end of the message
        cmp     r5, r7
        cmp     r5, r7
        bne     1b
        bne     1b
 
 
 
        @ The complete message has now been transmitted
 
        @ but some bytes are still en route
        @ check the last few bytes received
        @ check the last few bytes received
        bl      uart_rx_check
        bl      uart_rx_check
 
 
        @ check that all bytes were received
        @ check that all bytes were received
        add     r9, r9, #2
        add     r9, r9, #2

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.