Forum Discussion
Altera_Forum
Honored Contributor
20 years agoFIFOed Avalon Uart
I have posted the FIFOed avalon UART in the Hardware Projects area. It is the standard UART that comes with Nios but it has additional features such as FIFOs and hardware CTS fifoed avalon uar...
Altera_Forum
Honored Contributor
16 years agoHi
this fifoed uart is really great it solved me a lot of problems!! Now I have a question. I defined:# define UART_RX_FIFO_USED(base) IORD(base, 6)# define UART_TX_FIFO_USED(base) IORD(base, 7) To get the number of chars in the tx and rx FIFO, but when I call: printf("\nBytes in fifo RX:%i TX:%i", UART_RX_FIFO_USED(FIFOED_AVALON_UART_0_BASE), UART_TX_FIFO_USED(FIFOED_AVALON_UART_0_BASE)); I always get 0. And this is what I have in system.h: […] /* * fifoed_avalon_uart_0 configuration * */# define ALT_MODULE_CLASS_fifoed_avalon_uart_0 fifoed_avalon_uart# define FIFOED_AVALON_UART_0_BASE 0x4820a0# define FIFOED_AVALON_UART_0_FIXED_BAUD 0# define FIFOED_AVALON_UART_0_IRQ 4# define FIFOED_AVALON_UART_0_IRQ_INTERRUPT_CONTROLLER_ID 0# define FIFOED_AVALON_UART_0_NAME "/dev/fifoed_avalon_uart_0"# define FIFOED_AVALON_UART_0_SPAN 32# define FIFOED_AVALON_UART_0_TYPE "fifoed_avalon_uart"# define FIFOED_AVALON_UART_0_USE_CTS_RTS 0 […] What am I doing wrong? Thanks (Pleas tell me if it is the wrong place to ask this)