MCF52259 Demo Board UART ISR Help.

cancel
Showing results for 
Search instead for 
Did you mean: 

MCF52259 Demo Board UART ISR Help.

Jump to solution
1,693 Views
FWFan
Contributor III

Hi All,

 

I have tried for a long time trying to get the UART ISR working for this board but without any success.  At the latest, I used the device initialization to initialize all the required i/o.  I think I got what I need.  But things are not working.  So I don't have all that I need, I suppose.  I noticed when I looked at the register, the URB0 is not getting the characters that it should get.  I think the ISR is working, but the characters are not correct.

 

In any case, could you look at my files and see what I could have missed?  I am using the MCF52259 Demo board, but the device I chose is just the MCF52259 chip, not the MCF52259DEMO board.

 

Thank you in advance.

FWFan

 

main.c

MCUinit.c

support_common.h

Message Edited by t.dowe on 2009-09-02 02:46 PM
Labels (1)
0 Kudos
1 Solution
249 Views
FWFan
Contributor III

Hi Mark,

 

Thanks for your help.  I finally got help from FS for an MCF52259DEMO UART ISR routine.  It help me a lot.  I spent two weeks on this matter.

 

Thank you,

FWFan

 

M52259DEMO_UART_ISR.zip

Message Edited by t.dowe on 2009-08-31 10:38 AM

View solution in original post

0 Kudos
4 Replies
249 Views
mjbcswitzerland
Specialist V

Hi FWFan

 

 

Assuming you are running your M52259 at 80MHz the code is configuring the UART to 19'200.

This means that you may be sending data to it at a different baud rate to this - resulting in the data being received (but not having the expected content).

 

Please specify in more detail how you are testing and what is happening (what is working correctly and what not correctly, with the exact results when not correct) .

 

Regards

 

Mark

 

www.uTasker.com
- OS, TCP/IP stack, USB, device drivers and simulator for M521X, M521XX, M5221X, M5222X, M5223X, M5225X. One package does them all - "Embedding it better..."

 

 

 

 

0 Kudos
249 Views
FWFan
Contributor III

Hi Mark,

 

Right now I'm only looking at the registers and globals and the scope.  I have tested a polling version and that worked.  But the starting index of the array is not the same as the starting index of the sent data.  In that version, I also used MCF52259DEMO device, not the chip.  This is the only difference I can think of.  Do you know what is the difference(s) between those two choices?  This is when we pick which device and derivative when we start a new project wizzard.

 

I am certain the setting on the sending side is 19200 also.  Plus the other serial settings.

 

Thank you,

FWFan

 

Ver 14.zip

Message Edited by t.dowe on 2009-08-31 10:52 AM
0 Kudos
249 Views
mjbcswitzerland
Specialist V

Hi FWFan

 

I have no experience with the Wizard so don't think that I can help in this respect.

 

Also I don't know whether it is a good investment of time in starting a project with a wizard and then building up from there since there are various complete project sources available (MQX, uTasker and others) which will allow you to start with application coding. See for example the UART User's manual http://www.utasker.com/docs/uTasker/uTaskerUART.PDF (with interrupt and DMA driven modes).

 

The uTasker project also allows you to simulate the Kirin3, including its UARTs and  interrupts, so making also study of the operation more efficient.

 

Regards

 

Mark

 

0 Kudos
250 Views
FWFan
Contributor III

Hi Mark,

 

Thanks for your help.  I finally got help from FS for an MCF52259DEMO UART ISR routine.  It help me a lot.  I spent two weeks on this matter.

 

Thank you,

FWFan

 

M52259DEMO_UART_ISR.zip

Message Edited by t.dowe on 2009-08-31 10:38 AM
0 Kudos