Help with -870 USART

Started by Eirik Karlsen in Piclist13 years ago 2 replies

Hi, anyone have any ideas why I can't get the 16F870 USART to work? The baudrate is not critical as the USART is only going to be...

Hi, anyone have any ideas why I can't get the 16F870 USART to work? The baudrate is not critical as the USART is only going to be used during debugging to read out variables and verify the workings of the ADC. Fosc=100Khz, baudrate 1200, or actually 1234 @ 100Khz....but this is well


Multiple software USART's

Started by Milton Medicinteknik KB in Piclist14 years ago 1 reply

Hello all The best way for a PIC to communicate with a device over RS 232 is to use a USART equipped PIC. However, if volume...

Hello all The best way for a PIC to communicate with a device over RS 232 is to use a USART equipped PIC. However, if volume is high and the PIC may be a small one, it is cheaper to use a software USART. This can be a timer interrupted testing process of a pin, shifti


MPLAB & USART

Started by jrem in Piclist13 years ago 4 replies

Will MPLAB emulate the USART correctly? i.e., if I have the asm set up for USART, and if I make a transmission, does the TX bit...

Will MPLAB emulate the USART correctly? i.e., if I have the asm set up for USART, and if I make a transmission, does the TX bit flip on and off in MPLAB as I step through the program? Also, does PIR1<4> work correctly in the emulator? Or am I required to debug on har


USART Transmit Issue

Started by Maran in Piclist10 years ago 3 replies

Hi All, I am facing an issue with the USART Transmit. My code is as shown below...... #include #include void main( void ) { char...

Hi All, I am facing an issue with the USART Transmit. My code is as shown below...... #include #include void main( void ) { char group[10]="Microchip "; int i; OpenUSART( USART_TX_INT_OFF & USART_RX_INT_OFF & USART_ASYNCH_MODE & USART_EIGHT_BIT & USART_CONT_RX & USART_BRGH_HIGH, 129 ); while( 1 ) { for(i=0; i


PIC USART Interrupt

Started by Karlo Campos in Piclist14 years ago 1 reply

Hi! I'm having problems with USART Interrupts. The program will transmit the data received after the interrupt occurs, but the...

Hi! I'm having problems with USART Interrupts. The program will transmit the data received after the interrupt occurs, but the PIC is not responding on receiving data. I configured the following registers for USART RX in interrupt as mentioned in the data shee


PIC USART and Transmission on serial port

Started by musabbirmajeed in Piclist9 years ago 1 reply

Hi all, I am using 16 bit PIC18F2420 microcontroller with a single USART port. I am using MPLAB C18 compiler. I was trying to achieve duplex...

Hi all, I am using 16 bit PIC18F2420 microcontroller with a single USART port. I am using MPLAB C18 compiler. I was trying to achieve duplex communication on a microcontroller with a single usart. I am using external interrupts for that purpose. All was well until now. The main problem is that when I send a string or array of characters to the pic, the computer on the other corner receives e...


making USART useful

Started by bg3009 in Piclist14 years ago 17 replies

I just bought a 877 chip for interfacing with my 818 viz IIC. As I found out, this chip has USART on board and can be interfaced...

I just bought a 877 chip for interfacing with my 818 viz IIC. As I found out, this chip has USART on board and can be interfaced with a PC terminal. What kind of things can be done with such a facility? BG


USART with PIC18F4331

Started by Paul L in Piclist10 years ago 2 replies

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...

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 pi...


16f628 and the usart

Started by jmonegal in Piclist14 years ago 1 reply

Hi gang. My name is Jeff Monegal and this is my first message. Can anyone supply a routine that allows two '628s' to talk to...

Hi gang. My name is Jeff Monegal and this is my first message. Can anyone supply a routine that allows two '628s' to talk to each other using the USART. Perhaps a word placed in the W register is then sent and the other end returns from a routine with this word in its W


USART

Started by enricoderfi in Piclist14 years ago 2 replies

Does anyone out there have a simple program to exercise the USART in 8-bit synchronous mode. I'm trying to send data to a MIC5821...

Does anyone out there have a simple program to exercise the USART in 8-bit synchronous mode. I'm trying to send data to a MIC5821 serial input latched driver. I have no need to ever use the receive mode. This should be simple, but I'm doing something wrong, and can't get it to go


about the usart in PIC18

Started by Karlo Campos in Piclist13 years ago 1 reply

Hi! Is it possible to use the receive module of the USART in interrupt mode and the transmit module in non-interrupt...

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 arou


usart PIC16F877

Started by fish_camera in Piclist11 years ago 4 replies

Attempting to troubleshoot problem with usart, asynchronous mode, for a school project. Two 16F877. Using the ICD-2 in circuit debugger. We...

Attempting to troubleshoot problem with usart, asynchronous mode, for a school project. Two 16F877. Using the ICD-2 in circuit debugger. We believe our transmit chip is working but we can't get receive to function correctly. We know interupts will not work while Single stepping in debug mode, but in animate mode interupts should function, correct? How close do the clocks have to be? ...


Need help with PIC16F877 USART

Started by farroos in Piclist15 years ago 2 replies

Hi again, I wrote this small program to test PIC's USART (Synchronous Slave reception). The program gives port A the value...

Hi again, I wrote this small program to test PIC's USART (Synchronous Slave reception). The program gives port A the value 1010 1010 and port B the value 0000 0000. But when an interrupt happens (enterrupt happens when the data starts comming in the DT line, pin 26) the val


pic18f252 usart char

Started by Anonymous in Piclist14 years ago 2 replies

hi all can the USART of PIC 18f252 transmit only signed char or does it even transmit unsigned char. i am checking the serial...

hi all can the USART of PIC 18f252 transmit only signed char or does it even transmit unsigned char. i am checking the serial communication by sending a few HEX values through the PIC through a MAX232 to my PC,but when i send hex values above 0x80 ie(128 d) i donot get the des


Wireless USART

Started by "d.fektv" in Piclist10 years ago

Hi guys, I am trying to send 1 byte data packets from one 18f458 to another using 433.93MHz FSK TX/RX devices. I am also using a manchester...

Hi guys, I am trying to send 1 byte data packets from one 18f458 to another using 433.93MHz FSK TX/RX devices. I am also using a manchester encoder/decoder on both ends (DPC-9600) at 9.6kbps. I am using WriteUSART() and ReadUSART() functions in asynch mode at 9.6kbps to send and receive the data. The DPC-9600 simply interfaces the USART pins and the TX/RX devices. In TX mode, the ...


PIC18F8680 and USART

Started by Piotr Piwko in Piclist10 years ago

Hello. I try to use USART Iterface, so I initiate it: RCSTA |= (1 <

Hello. I try to use USART Iterface, so I initiate it: RCSTA |= (1 <


USART, setting of TRIS register needed (PIC 16F-types) ?

Started by Stef Mientki in Piclist12 years ago 3 replies

I'm a little bit confused about the TX and RX pins in UART mode. I checked several PIC types: If you read the text carefully, you will read...

I'm a little bit confused about the TX and RX pins in UART mode. I checked several PIC types: If you read the text carefully, you will read several times: "bit SPEN () and the TRIS register have to be set in order to configure the TX and RX pins as the USART" Now look at the schematics of the ports, and see that it doesn't matter to set the TRIS register, because the "peripheral OE" w...


A doubt about USART and sleep mode?

Started by Bruce.J Sam in Piclist13 years ago 3 replies

   I have read the manual of PIC16F87X.In the section of "USART Synchronous Slave mode",it said "If enable bit TXIE is set, the...

   I have read the manual of PIC16F87X.In the section of "USART Synchronous Slave mode",it said "If enable bit TXIE is set, the interrupt will wake the chip from SLEEP and if the global interrupt is enabled,..." (Page.110)and "if enable bit RCIE bit is set, the interrupt generated will wake the c


Wireless communications

Started by "Kenneth (K) Macrae" in Piclist9 years ago 2 replies

Hi I'm currently looking at two wireless options: 2.4GHz 433MHz I know the lower frequency allows greater transmission distance. What...

Hi I'm currently looking at two wireless options: 2.4GHz 433MHz I know the lower frequency allows greater transmission distance. What would one go for? Both have USART interfaces and both operate off 3 volts. Please let me know what your ideas / opinions are Thanks Kenneth


USART in PIC17C756a

Started by rashid husain in Piclist14 years ago

Hi all, I am trying to communicate with PIC17c756a. I try to go to the very basic program but I fail to echo character...

Hi all, I am trying to communicate with PIC17c756a. I try to go to the very basic program but I fail to echo character whenever I use the command putsUSART1(data).I am using MPLAB 17 compiler. The following is the code: #include