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.
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
- OS, TCP/IP stack, USB, device drivers and simulator for M521X, M521XX, M5221X, M5222X, M5223X, M5225X. One package does them all - "Embedding it better..."