Sign in

username:

password:



Not a member?

Search piclist



Search tips

Subscribe to piclist



piclist by Keywords

12F675 | 16F628 | 16F84 | 16f877 | 16F877A | 16F88 | 18F458 | ADC | AVR | Bootloader | CAN | CCS | CRC | EAGLE | EEPROM | ICD | ICSP | IDE | JDM | LED | Macros | Microchip | MPLAB | PCB-CAD | PIC10F | Pic12f675 | PIC16F84 | PIC16F84A | PIC16F877 | PIC18 | PIC18F452 | PicBasic | PICC | PICSTART | PWM | RS-485 | RS232 | SMT | SPI | UART | USART | USB | Wireless | Wisp628 | Xilinx

Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | Piclist | about the usart in PIC18


Advertise Here

A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.

about the usart in PIC18 - Karlo Campos - Jun 1 21:42:00 2004

Hi!

Is it possible to use the receive module of the USART in interrupt
mode and the transmit module in non-interrupt (polling)? Based on the
data sheets, (theoretically) is yes. How come when I tried it with my
pic it doesn't?

Any explanation guys? or work arounds? Reply is greatly appreciated!

Thanks!
Karlo



______________________________
controlSUITE™ software. Comprehensive. Intuitive. Optimized.
Real-world software for real-time control. Details Here!



(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )


RE: about the usart in PIC18 - Mauricio D. Jancic - Jun 2 6:44:00 2004

Yes, of course you can. Set up everything on the TXREG and RCREG registers, as you want them to be.

 

Then, configure, atleast this bits:

 

PEIE = 1; // Peripheral interrupt enabled

RCIE = 1; // Reception interrupt enabled

TXIE = 0; // Transmition interrupts disabled

GIE = 1; // Global interrupts enabled

 

And thas about it. Perhaps the bits have different names, but I don’t have the datasheet near me right now, anyway, it works.

 

Regards,

 

Mauricio D. Jancic

Janso Desarrollos - Microchip Consultant

(54) 011 - 4542 - 3519

Lugones 3238 "B" - C1430ECN

www.janso.com.ar

i...@janso.com.ar

MSN: j...@hotmail.com



______________________________
controlSUITE™ software. Comprehensive. Intuitive. Optimized.
Real-world software for real-time control. Details Here!



(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )