Help with -870 USART

Started by Eirik Karlsen in Piclist16 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


MPLAB & USART

Started by jrem in Piclist15 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 Piclist12 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 Piclist16 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 Piclist11 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...


USART with PIC18F4331

Started by Paul L in Piclist13 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...


about the usart in PIC18

Started by Karlo Campos in Piclist16 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 Piclist13 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? ...


pic18f252 usart char

Started by Anonymous in Piclist16 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 Piclist12 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 Piclist12 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 Piclist14 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 Piclist16 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 Piclist12 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 on PIC18F4550

Started by sethmeisterG in Piclist12 years ago

Hi, I found out why my divisors weren't working -- the Fosc on the PIC18F4550 is 48MHz (when using USB in my configuration). Using...

Hi, I found out why my divisors weren't working -- the Fosc on the PIC18F4550 is 48MHz (when using USB in my configuration). Using 48MHz in all divisor calculations allowed me to get comm working perfectly. --S ------------------------------------


18F4331 and PWM

Started by Paul L in Piclist13 years ago 1 reply

Hi. Well, after getting my new PIC, it didn't take long to get it going! Was a little worried at first! I can now receive using USART and then...

Hi. Well, after getting my new PIC, it didn't take long to get it going! Was a little worried at first! I can now receive using USART and then using the values taken put that in the PWM unit and there i have a dimming LED! Beats having a DA and few Op-amps! My question is about the PWM maths. I have read the datasheet but can't figure out how to calculate the frequency of the PWM. Maybe caus...


Trouble with USART on PIC16F877A

Started by Alok Modak in Piclist12 years ago

Hi all, I am trying to interface the serial port of the PIC16F877A to communicate with the PC. But I am not able to do so. I have listed...

Hi all, I am trying to interface the serial port of the PIC16F877A to communicate with the PC. But I am not able to do so. I have listed below the connections that I have made. Any help will be of great help. Thanks, With Regards, Alok - Rx (Pin 26) of PIC16F877A connected to Pin9 (R2Out) of Max232. R2in (Pin8) of Max232 connected to TxD (Pin3) of DB9 female connector. -...


Pullup questions

Started by Vic Fraenckel in Piclist15 years ago 13 replies

I am designing my first PIC board. It will use a 16f876. I will use two PORTA pins and the USART pins RC6 and RC7 for serial comms....

I am designing my first PIC board. It will use a 16f876. I will use two PORTA pins and the USART pins RC6 and RC7 for serial comms. The board will be expanded later to use either I2C or SPI. The questions I have are: 1. Should ALL I/O pins be pulled up to +5V or should ONLY the un


USART electrical specifications information request

Started by Chris in Piclist15 years ago 7 replies

Does anybody have information about the TX pin in particular. I'm using a 16F628 to listen to a gps module's 1Hz data packet, strip out ...

Does anybody have information about the TX pin in particular. I'm using a 16F628 to listen to a gps module's 1Hz data packet, strip out the time information alone and then retransmit it at a slower baud rate over a short range radio link. It works, but I'm aware that if I wish to expand the system and tie another device to the pics TX pin things could go awr


Help with usart receive

Started by Travis L. F Bailey in Piclist16 years ago 4 replies

Help, I am missing some obvious mistake. I just don't see it. I am using a pic18f452 chip and a max232 chip to communicate...

Help, I am missing some obvious mistake. I just don't see it. I am using a pic18f452 chip and a max232 chip to communicate to my laptop's serial port. I can send data from the pic to the pc, but, I can not receive data from hyperterm to the pic chip. I am also connect