Tank Johnsten

M52259DEMO UART Interrupt

Discussion created by Tank Johnsten on Dec 2, 2009
Latest reply on Dec 3, 2009 by Mark Butcher

I am trying to write some simple code that will take characters entered on the keyboard and output it to hyperterminal, this function will be used in some MQX tasks. 

 

Instead of using the built in drivers provided I would like to setup and code the ISRs manually. 

 

I know that the process roughly goes: 

Initialize the appropriate structures and registers

Install the interrupt service routines

Enable interrupts 

And finally in the interrupt themselves, check for RX and TX states, and handle appropriately. 

 

Can anyone provide some help on how I would go about writing this code? The amount of macros and predefined variables is mind boggling and I have no idea where to begin. 

 

Thank you!

Outcomes