MCF52259 Demo Board UART.

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

MCF52259 Demo Board UART.

1,929 次查看
FWFan
Contributor III

Hi All,

 

I am trying to use the mcf52259 uart peripheral.  I used the cf initialize bean to initialize my settings.  But no matter what I send, I always see the greek letter alpha.  I am including my codes, hopefully someone could point out some tips.

 

Thank you,

FWFan

 

main.c

MCUinit.c

Message Edited by t.dowe on 2009-09-02 02:07 PM
标签 (1)
0 项奖励
回复
2 回复数

661 次查看
mjbcswitzerland
Specialist V

Hi

 

I took a quick look but didn't see any configuration of the UART pins for peripheral use (PUAPAR).

Also I didn't find any configuration of the clock source (UCSR), nor the Baud rate (UBG1 and UBG2).

 

The mode is being set correctly to no parity without stop bit but I didn't see the transmitter being enabled anywhere either prior to, or during attempted transmission.

 

Note that you may like to look into the uTasker project for the Kirin3 http://www.utasker.com/kirin3.html which contains all that you ned for the UARTs (see UART guide:

http://www.utasker.com/docs/uTasker/uTaskerUART.PDF) with interrupt and DMA driven modes as well as a simulator to run a virtual Kirin3 [UARTs mapped to COM ports] on your PC.

 

I noticed that you are already using some ADC code - the uTasker project also has full support for this (including threshold triggering interrupt and full simulation capabilities) - as for most peripherals; eg. http://www.utasker.com/forum/index.php?topic=280.0

 

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 项奖励
回复

661 次查看
FWFan
Contributor III

Wow Mark.

Thank you very much for your help.

I will get on it right away.

 

Sincerely,

FWFan

0 项奖励
回复