Forum Discussion
Altera_Forum
Honored Contributor
21 years agoUART ISR
Has Anyone implemented ISRs with AVALON UART? I'm trying to implement an ISR using the RRDY Interrupt bit in the STATUS register but it seems not work... has anyone an idea? i past a...
Altera_Forum
Honored Contributor
21 years ago --- Quote Start --- originally posted by rugbybloke@Sep 2 2005, 11:24 AM <div class='quotetop'>quote
--- quote end ---
--- quote start ---
altera_avalon_uart_init( seriale_int, seriale_int );
altera_avalon_uart_init( seriale_ext, seriale_ext );
altera_avalon_uart_init( seriale_fut, seriale_fut ); --- Quote End --- Your problem is exactly as I diagnosed the lines above are initialising the driver for each of your UARTs so when the interrupt goes off for one of your UARTs the driver interrupt handler get's called and your ISR does not get a look in. There is no easy method to turn off the drivers at present you will have to remove the _INIT and _INSTANCE macros from alt_sys_init.c. The problem is that this is an auto generated file which will be re-generated under your feet. You would be much better off using the provided driver and if you don't understand it step through it. Otherwise you will have to start from the alt_main entry point example which hands you complete control of the machine, with no drivers etc. This does have drawbacks though which are coverred in the manual.[/b] --- Quote End --- so there is no simply way to drive UART using low level functions such as for the PIO component. I have to understand how drive the ISR function using its APIs.... but the only think I don't understand is HOW recall the IRQ using the auto generated function by NIOS-II IDE. thank you shadowice