Urgent : MC13224 Problem with UART Interrupt

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

Urgent : MC13224 Problem with UART Interrupt

3,970 次查看
leroiwalid
Contributor I

Hi !

In my project I can do the Interrupt with the KBI and with the RTC. But I can't do it by the UART, Any one can help me ?

How to do this interrupt, it's urgent please

thanks :smileyhappy:

0 项奖励
回复
7 回复数

3,021 次查看
ZFSM
Contributor II

 

Hi leroiwalid,

 

if you generate code by BeeKit

at on function Uart_ModuleInit() make comment or delete line

// UartOpenCloseTransceiver(UART_1, BIT_RX_EN, FALSE); 

maybe help you.

 

 

0 项奖励
回复

3,021 次查看
leroiwalid
Contributor I

Thank you ZFSM :smileyhappy:

I forget to say that may codebase is the "ARM7 SMAC Codebase 1.1.4" 

I think that my problem is to find a function similar to the CRM_RegisterISR() 

if any one here can help me??

0 项奖励
回复

3,021 次查看
ZFSM
Contributor II

Hi,

I has alike problem too.

UART Tx can't gennerate interrupt.

I see register UART Control Register(UCON) is 0x00002003

I try to force UCON = 0x00000003 for enable TxRdy interrupt but it return to 0x00002003

 

 

 

0 项奖励
回复

3,021 次查看
leroiwalid
Contributor I

Problem not yet resolved :robotsad:

0 项奖励
回复

3,021 次查看
redbee
Contributor III

 


leroiwalid wrote:

Hi !

In my project I can do the Interrupt with the KBI and with the RTC. But I can't do it by the UART, Any one can help me ?

How to do this interrupt, it's urgent please

thanks :smileyhappy:


 

The following code uses the UART interrupt for transmit; receive should be similar.

 

 

http://git.devl.org/?p=malvira/libmc1322x.git;a=blob;f=lib/uart1.c

 

http://git.devl.org/?p=malvira/libmc1322x.git;a=blob;f=src/default_lowlevel.c

 

http://git.devl.org/?p=malvira/libmc1322x.git;a=blob;f=tests/uart1-loopback.c

 

 

-Mar.

 

0 项奖励
回复

3,021 次查看
leroiwalid
Contributor I

Thank you redbee for your answer but this is not what I search. In fact I want to use a similar thing to what we use before with the other interrupt.I have started by declaring this code to initiate the Uart Interrupt.

 

ITC_Init();IntAssignHandler(gUart1Int_c, (IntHandlerFunc_t)UartIsr1);ITC_SetPriority(gUart1Int_c, gItcNormalPriority_c);ITC_EnableInterrupt(gUart1Int_c);

 

 

in the other interrupt I have just to use the CRM_RegisterISR() function to make the interruption but now I can't find a solution for the UART module.

Do you understand me ?

In other term, what I want to do is, to do a read from the NVM when the user make an order by the UART.

My problem is how to do this order by UART and with the use of the UART Interrupt.It seems to be easy but I haven't find a solution :smileysad:

0 项奖励
回复

3,021 次查看
leroiwalid
Contributor I

Pleaaaaaaaaaaaaaaaaaaaaaaaase Help :smileysurprised:

0 项奖励
回复