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

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [fpga/] [xilinx_diligent_s3board/] [software/] [ta_uart/] [swuart.s] - Diff between revs 153 and 212

Show entire file | Details | Blame | View Log

Rev 153 Rev 212
Line 53... Line 53...
        incd    &rxbit                  ;setup next state
        incd    &rxbit                  ;setup next state
;        reti
;        reti
        mov     #0xffff, r15            ;return 0xffff
        mov     #0xffff, r15            ;return 0xffff
        ret
        ret
 
 
; void serPutc(char)
; void tty_putc(char)
;use an other Capture/Compare than for receiving (full duplex).
;use an other Capture/Compare than for receiving (full duplex).
;this one is without interrupts and OUTMOD, because only
;this one is without interrupts and OUTMOD, because only
;this way P1.1 can be used. P1.1 is prefered because the
;this way P1.1 can be used. P1.1 is prefered because the
;BSL is on that pin too.
;BSL is on that pin too.
.global putchar
.global tty_putc
        .type putchar, @function
        .type tty_putc, @function
putchar:                                ;send a byte
tty_putc:                               ;send a byte
        mov     #0, &CCTL1              ;select compare mode
        mov     #0, &CCTL1              ;select compare mode
        mov     #10, r13                ;ten bits: Start, 8 Data, Stop
        mov     #10, r13                ;ten bits: Start, 8 Data, Stop
        rla     r15                     ;shift in start bit (0)
        rla     r15                     ;shift in start bit (0)
        bis     #0x0200, r15            ;set tenth bit (1), thats the stop bit
        bis     #0x0200, r15            ;set tenth bit (1), thats the stop bit
        mov     &TAR, &CCR1             ;set up start time
        mov     &TAR, &CCR1             ;set up start time

powered by: WebSVN 2.1.0

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