# how to use the uart  C interrupt for RCM6760

**URL:** <https://forums.digi.com/t/how-to-use-the-uart-c-interrupt-for-rcm6760/13465>\
**Category:** Rabbit\
**Tags:** interrupt, uart, rcm6760\
**Created:** [August 14, 2014, 4:55am UTC](https://forums.digi.com/t/how-to-use-the-uart-c-interrupt-for-rcm6760/13465 "2014-08-14T04:55:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![huanghao](https://avatars.discourse-cdn.com/v4/letter/h/e5b9ba/32.png) [@huanghao](https://forums.digi.com/u/huanghao)\
**Post date:** [August 14, 2014, 4:55am UTC](https://forums.digi.com/t/how-to-use-the-uart-c-interrupt-for-rcm6760/13465/1 "2014-08-14T04:55:32Z")

</div>

i am using the RCM6760 now,i want to use its Serial port C interrupt to receive the character from other device,now, i use  
the uart assistant(a pc application software,can receive and send char)as the other device,but the program have no function i want,why?  
the code below:

#use “RS232.lib”  
void serialc\_isr(void);  
#define CINBUFSIZE 31  
#define COUTBUFSIZE 31  
#define BAUDRATE 9600  
void main(void)  
{  
SetVectIntern(0x0e,serialc\_isr);  
serCopen(BAUDRATE);  
WrPortI(SCCR, &SCCRShadow, 0x01);  
serCputc(0x55);  
while(1)  
{  
}  
}  
nodebug root interrupt void serialc\_isr()  
{  
int status,ch;  
status=RdPortI(SCSR);  
if(status&0x08)  
{  
printf("a byte is moved from the transmitter buffer  
");  
}  
else if(status&0x80)  
{  
serCputc(0xb2);  
ch = serCgetc();  
serCputc(ch);  
}  
else if(status&0x04)  
{  
printf("a byte is sending  
");  
}  
}

i can receive the character ‘0x55’ that the uart assistant receive,but send cann’t work.

---

<div class="post-metadata">

**Author:** ![trooper2](https://avatars.discourse-cdn.com/v4/letter/t/edb3f5/32.png) [@trooper2](https://forums.digi.com/u/trooper2)\
**Post date:** [August 15, 2014, 2:03pm UTC](https://forums.digi.com/t/how-to-use-the-uart-c-interrupt-for-rcm6760/13465/2 "2014-08-15T14:03:22Z")

</div>

The RS232.lib uses interrupts. There is no need to set up an ISR in your program. This is all done by the library.

---

<div class="post-metadata">

**Author:** ![huanghao](https://avatars.discourse-cdn.com/v4/letter/h/e5b9ba/32.png) [@huanghao](https://forums.digi.com/u/huanghao)\
**Post date:** [August 17, 2014, 11:11pm UTC](https://forums.digi.com/t/how-to-use-the-uart-c-interrupt-for-rcm6760/13465/3 "2014-08-17T23:11:28Z")

</div>

Could you give me an example?

---

<div class="post-metadata">

**Author:** ![trooper2](https://avatars.discourse-cdn.com/v4/letter/t/edb3f5/32.png) [@trooper2](https://forums.digi.com/u/trooper2)\
**Post date:** [August 18, 2014, 9:59am UTC](https://forums.digi.com/t/how-to-use-the-uart-c-interrupt-for-rcm6760/13465/4 "2014-08-18T09:59:49Z")

</div>

See samples\SERIAL
