Altera_Forum
Honored Contributor
16 years agoUsing a uart without HAL
Hi, we're just starting out with Nios II. We have a lot of experience with embedded processors, particularly the NXP ARM7 and the Atmel AVR.
We are trying to write code to receive the serial lighting protocol DMX512 on a UART. This is basically a break followed by 512 bytes of data, at 250Kbaud. The device only has to receive a few bytes of the data relevant to itself, e.g. bytes 100-103. We have C code to do this on other embedded processors which accesses the hardware registers directly. However on the Nios II, settings I make directly to the UART registers are overwritten, I presume by HAL routines. For example the UART interrupt enable flags are constantly overwritten to a different value from the one I want. Can anyone advise me how to disable the HAL routines so I can access the UART directly? Tim Mitchell