URL
https://opencores.org/ocsvn/ssbcc/ssbcc/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 9 |
Rev 12 |
Line 177... |
Line 177... |
Within the processor architecture file include the configuration command:\n
|
Within the processor architecture file include the configuration command:\n
|
PERIPHERAL UART_Tx O_UART_TX I_UART_TX baudmethod=100_000_000/115200\n
|
PERIPHERAL UART_Tx O_UART_TX I_UART_TX baudmethod=100_000_000/115200\n
|
Use the following assembly code to transmit the message "Hello World!".
|
Use the following assembly code to transmit the message "Hello World!".
|
This transmits the entire message whether or not the peripheral has a FIFO.\n
|
This transmits the entire message whether or not the peripheral has a FIFO.\n
|
N"Hello World!\\r\\n"
|
N"Hello World!\\r\\n"
|
:loop .outport(O_UART_TX) :wait .inport(I_UART_TX_BUSY) .jumpc(wait) .jumpc(loop,nop) drop
|
:loop .outport(O_UART_TX) :wait .inport(I_UART_TX_BUSY) .jumpc(wait) .jumpc(loop,nop) drop\n
|
|
Interrupt handler: "!s__<outsignal>__TX_uart_busy" is is suitable input to
|
|
an interrupt handler where "<outsignal>" is the name assigned to "outsignal".
|
|
This signal is low when the peripheral is not transmitting data and there is
|
|
no output FIFO and can be used as an indication that the peripheral is ready
|
|
for a new byte to transmit.
|
"""
|
"""
|
|
|
def __init__(self,peripheralFile,config,param_list,loc):
|
def __init__(self,peripheralFile,config,param_list,loc):
|
# Use the externally provided file name for the peripheral
|
# Use the externally provided file name for the peripheral
|
self.peripheralFile = peripheralFile;
|
self.peripheralFile = peripheralFile;
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.