|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
TX2IE & RCIF
#ifndef __ifi_utilities_h_
#define __ifi_utilities_h_ #ifdef _SNOOP_ON_COM1 /* FOR FUTURE USE */ #define RXINTF PIR3bits.RC2IF #define RXINTE PIE3bits.RC2IE #define TXINTF PIR3bits.C #define TXINTE PIE3bits.TX2IE #define RCSTAbits RCSTA2bits #define RCSTA RCSTA2 #define TXSTA TXSTA2 #define TXREG TXREG2 #define RCREG RCREG2 #define SPBRG SPBRG2 #define OpenUSART Open2USART #else #define RXINTF PIR1bits.RCIF #define RXINTE PIE1bits.RCIE #define TXINTF PIR1bits.TXIF #define TXINTE PIE1bits.TXIE #define RCSTAbits RCSTA1bits #define RCSTA RCSTA1 #define TXSTA TXSTA1 #define TXREG TXREG1 #define RCREG RCREG1 #define SPBRG SPBRG1 #define OpenUSART Open1USART #endif What exactly are these values entered to the macros???? We couldn't find any RCIF on the computer, is it something on the RC system? |
|
#2
|
||||
|
||||
|
Re: TX2IE & RCIF
They are giving sane names "TXINTF/INTE" to the microcontroller names for the same signals. IE is interrupt enable, IF is interrupt flag (indicating the interrupt has occurred).
The specific macros you've shown are things you do not want to modify or highly unexpected things will happen --Eric |
|
#3
|
||||
|
||||
|
Re: TX2IE & RCIF
TX2IE
According to the datasheet, TX2IE is the fourth bit of Peripheral Interrupt Enable register 3 (PIE3). this bit is used as an enable bit for a USART on the PIC. If it is set to 1, the bit is set and the interrupt is active. if it is set to 0, it is not active. Quote:
RCIF Likewise, RC1IF is bit 5 of the Peripheral Interrupt Request register 1 (PIR1). this bit is used as a receive interrupt flag bit for a USART Quote:
|
|
#4
|
|||||
|
|||||
|
Re: TX2IE & RCIF
What is this "Interupt"?
|
|
#5
|
||||
|
||||
|
Re: TX2IE & RCIF
An interrupt is a hardware signal saying that something has changed and requires attention immediately. There is then software that clears the interrupt flag and then handles the event.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| pic: Stuy, Bronx Science & TECH in the pit | Rich Wong | Extra Discussion | 2 | 28-04-2005 23:23 |
| pic: Teams 1114, 1503 & 1680; NiagaraFIRST.org | Karthik | Robot Showcase | 15 | 25-02-2005 13:27 |
| pic: Team 694 & 743 vs. 1340 and 380 | CD47-Bot | Extra Discussion | 2 | 30-05-2004 09:04 |
| pic: The Bobcats 2001 & 2003 & Admirers | CD47-Bot | Robot Showcase | 19 | 28-02-2004 12:36 |
| pic: Andy Baker, John V-Neun, & Big Mike | CD47-Bot | Extra Discussion | 7 | 22-07-2003 22:51 |