PICmicro & dsPIC >> Source Share for PICmicro & dsPIC

Pages: 1 | 2 | (show all)
shahrul
newbie


Reged: Apr 23 2009
Posts: 38
Loc: Malaysia
Re: USART on interrupt example ... [Re: shahrul]
      #111382 - Tue May 12 2009 05:36 AM

Quote:


I have tried with this code
Code:
 
char DATA[4],V3,V4;
void interrupt ISR(void)
{int i;
//lcd_goto(0x00);
//lcd_string(" INTERRUPT ");
if(RCIF==1){
DATA[0]=DATA[1];
DATA[1]=DATA[2];
DATA[2]=DATA[3];
DATA[3]=DATA_IN;
if(DATA[2]==0x0F){
if(DATA[3]==0xF0){
V3=DATA[0];
V4=DATA[1];}}
}}






I have succesfull fix my code. Using global variable and not calling any function. Thanks..

--------------------
SHAHRULNIZAM.COM
SHAHRULNIZAM.WS


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1 | 2 | (show all)



Extra information
1 registered and 10 anonymous users are browsing this forum.

Moderator:  jtemples, Dan Henry, Andrew L, mikerj 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is enabled
      UBBCode is enabled

Rating: ****
Topic views: 10261

Rate this topic

Jump to

Contact Us | Privacy statement HI-TECH Software

Powered by UBB.threads™ 6.5.5