MCF52259 Demo Board UART ISR Help.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MCF52259 Demo Board UART ISR Help.

跳至解决方案
2,009 次查看
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
标签 (1)
0 项奖励
1 解答
565 次查看
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 项奖励
4 回复数
565 次查看
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 项奖励
565 次查看
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 项奖励
565 次查看
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 项奖励
566 次查看
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 项奖励