EmbeddedRelated.com
The 2024 Embedded Online Conference

PIC USART Interrupt

Started by Karlo Campos in Piclist20 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 Piclist15 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 PIC16F877

Started by fish_camera in Piclist17 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 Piclist20 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


18F4331 and PWM

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


Help with usart receive

Started by Travis L. F Bailey in Piclist20 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


RS-485 Communication & Pic16F628

Started by Roger_4U in Piclist17 years ago 4 replies

Hi All: I have a Pic16F628 chip which I want to be able to communicate with my PC via a RS-485 line. I want to use the USART on the chip and...

Hi All: I have a Pic16F628 chip which I want to be able to communicate with my PC via a RS-485 line. I want to use the USART on the chip and a DS75176 Transceiver in a Half Duplex setup, but my problem is with what to control the Read Enable or Transmit Enable pin on the DS75176? If anyone also has a simple schematic and code that they don't mind sharing I would be grateful. Regards ...


Having trouble with recieving data with PIC18F452 HW USART

Started by Travis L. F Bailey in Piclist20 years ago 2 replies

I am trying to get the serial to work on my pic18f452 chip. I can print data to hyperterm from pic with no problem. But, I can not...

I am trying to get the serial to work on my pic18f452 chip. I can print data to hyperterm from pic with no problem. But, I can not figure out how to get data from hypterterm to the pic. I am able to print, here is a sample of my output: First 2 RCSTA 144 TXSTA 160 First 3 RC


Frustrating problem with dsPic30F3012 ADC...

Started by demolitron in Piclist15 years ago

Hello, I just got my board built for my new dsPic project and I've run into a very puzzling problem with the ADC. If you all would be kind...

Hello, I just got my board built for my new dsPic project and I've run into a very puzzling problem with the ADC. If you all would be kind enough to take a look for me. I hope this isn't something simple and stupid I've missed... First, my environment: dsPic30F3012 @ 3.3V MPLAB 8.30 MPLAB C30 student edition version 3.12 compiler PICKIT 2 Debugger (DE Version = 1.40.3) USART level s...


Re: microchip's USART code..

Started by Ken Wilson in Piclist21 years ago 3 replies


framing error

Started by krishnap in Piclist20 years ago 4 replies

hi all i am using the pic 18f252.I am using the receive interrupt of the USART in which i just check for the incoming...

hi all i am using the pic 18f252.I am using the receive interrupt of the USART in which i just check for the incoming data and also check if there are any framing error



The 2024 Embedded Online Conference