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

Discussion Groups

Discussion Groups | Piclist | USART with PIC18F4331

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.

USART with PIC18F4331 - Paul L - Jun 13 6:01:08 2007


Hello,

Just a quick question, i am having trouble with the USART on the PIC18F4331. I am running Ascync mode and every time i put some data in the TXREG and loop the TXSTA,TRMT flag the pic resets? I have disabled all interupts. Does anyone know of anything that can cause this? I have not looked into everything fully yet, but just wondering if anyone knew of anything that can cause this? The pic runs fine when i ; out the lines with the TXREG on.

THanks


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

Re: USART with PIC18F4331 - Eirik Karlsen - Jun 13 7:15:26 2007

If Watch Dog is enabled you must be sure to insert a CRLWDT in the loop.

Other than that I don't know. USART works ok in 18F4x2.
Paul L wrote:

> Hello, Just a quick question, i am having trouble with the USART on
> the PIC18F4331. I am running Ascync mode and every time i put some
> data in the TXREG and loop the TXSTA,TRMT flag the pic resets? I have
> disabled all interupts. Does anyone know of anything that can cause
> this? I have not looked into everything fully yet, but just wondering
> if anyone knew of anything that can cause this? The pic runs fine when
> i ; out the lines with the TXREG on. THanks
>
--
*******************************************
VISIT MY HOME PAGE:

LAST UPDATED: 23/08/2003
*******************************************
Regards
Eirik Karlsen


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

Re: USART with PIC18F4331 - Paul L - Jun 13 15:29:55 2007

I will check that, thanks. Just a bit werid, but if there is no daft error reset thing, then it must be me!

THanks
----- Original Message -----
From: Eirik Karlsen
To: p...@yahoogroups.com
Sent: Wednesday, June 13, 2007 12:13 PM
Subject: Re: [piclist] USART with PIC18F4331
If Watch Dog is enabled you must be sure to insert a CRLWDT in the loop.
Other than that I don't know. USART works ok in 18F4x2.

Paul L wrote:

Hello, Just a quick question, i am having trouble with the USART on the PIC18F4331. I am running Ascync mode and every time i put some data in the TXREG and loop the TXSTA,TRMT flag the pic resets? I have disabled all interupts. Does anyone know of anything that can cause this? I have not looked into everything fully yet, but just wondering if anyone knew of anything that can cause this? The pic runs fine when i ; out the lines with the TXREG on. THanks
--
*******************************************
VISIT MY HOME PAGE:

LAST UPDATED: 23/08/2003
*******************************************
Regards
Eirik Karlsen



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