It is currently 20 Aug 2017 07:34

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 02 May 2017 09:31 
Offline

Joined: 11 Apr 2017 01:08
Posts: 10
It is possible to enter the interrupt vector at the initial reception.
However, it is impossible to escape from interrupts.
It is likely that you will clear the pending bit.
I do not know how to clear the pending bit

plese



void sys_init(void)
{
UART1_Init(115200);
// UART1_FCR |= ( 1 << FIFO_EN ) | ( 1 << RCVR_RST ); // set up UART interrupt
IRQ_CTRL.B31 = 0;
UART1_LCR.B7 = 0;
UART1_INT_ENABLE = 0x1; //Enable Received Data Available Interrupt

}

void interrupt() iv IVT_UART1_IRQ {
temp++;
UART1_Write(temp);

}


Top
 Profile  
 
PostPosted: 05 May 2017 08:32 
Offline
User avatar

Joined: 21 Mar 2017 16:57
Posts: 364
Hello,

In general, first thing you need to do in the interrupt routine is to clear the interrupt source, so it doesn't repeatedly trigger the same interrupt, if it triggered it already.
There is a good and comprehensive explanation example in the help file of the compiler for the FT900 on using interrupts. You can read about it on the web page below:

http://download.mikroe.com/documents/co ... rrupts.htm

Best regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: