All Questions
176
questions
0
votes
2
answers
63
views
Some characters lost in UART Transmission (PIC12F1822 -> SIM800L)
I am using the diagram recommended in the SIM800L datasheet to connect it to a PIC12F1822 MCU operating at 3.3V and 16MHz using its internal RC oscillator.
...
0
votes
1
answer
59
views
Do not get how to time PIC16F USART sending in interrupt-driven environment
Device: PIC16F1829, half-duplex communication (RS-485)
The USART is having two registers - TSR and TXREG. Transmit is performed from TSR and process is indicated by TRMT bit. TXREG is second register ...
1
vote
0
answers
157
views
PIC16F UART Receives only the first byte
I'm currently working on a PIC16F18855, I'm trying to set up the communication part.
My setup is as follows:
A PCB connected to my computer via a TTL232 cable.
The PIC16F18855 is clocked at 32Mhz, the ...
1
vote
0
answers
96
views
Strange.. UART accessing U1RXREG is not emptying buffer? PIC32
Not sure what's going on this PIC32 device, the ISR is only getting the first 8 characters (the size of the FIFO buffer) the first time it receives a string. Subsequent string arrivals cause an ...
0
votes
0
answers
80
views
PIC Low Voltage UART
I'm receiving data from SIM800L module to PIC 16F628A.
The problem is the PIC (PIC does not receive data properly from UART).It is working in home. But in site conditions It misses
lots of data. I ...
0
votes
0
answers
122
views
PIC 18F micro stops receiving over UART after several hours of working fine
I'm working on a project using a PIC 18F25K80 to talk to an nRF24L01 radio. To help debug and control the program, I included code to communicate over the serial port with my PC. The program transmits ...
1
vote
1
answer
192
views
EUSART with PIC16F18346
I'm trying to set up serial communication between my PC and PIC16F18346 and I wrote this code:
...
3
votes
0
answers
60
views
ESP8266 only responds to first AT command
While interfacing the ESP8266 module to PIC18F4550, I noticed that the ESP8266 only responds to the first AT command that is transmitted by the PIC MCU. It will not respond for the rest of the ...
2
votes
1
answer
155
views
PIC18F4550 USART transmission keeps repeating
I used the following code to send out an USART asynchronous transmission of a string "AT\n\r" using a PIC18F4550.
...
5
votes
2
answers
436
views
PIC18F4550 Asynchronous USART Baud Rate
I am trying to implement a USART routine to transmit a string using PIC18F4550. I intend to transmit the message at 115200 baud rate in asynchronous mode. My PIC18F4550 is running at 48MHz using 20MHz ...
0
votes
2
answers
100
views
Interfacing PIC18F4550 with Arduino Nano
For a project, I want to communicate with Arduino Nano using PIC: PIC18F4550. PIC is collecting data from MPU6050 and DHT11; I want to send this data to Nano, which is a separate circuit for handling ...
1
vote
1
answer
401
views
Can I directly connect a 5V DC device to the inputs or outputs of a 3.3V microcontroller that tolerate that voltage level?
I'm doing a project with a PIC32 that works with 3.3V and that has some terminals that are tolerant to 5V levels.
I need to manage another device that has a UART at TTL voltage levels (5v).
The ...
1
vote
2
answers
105
views
0
votes
2
answers
1k
views
How can I handle Overrun and Framing errors in UART transmissions on PIC16 devices?
I am transmitting and receiving data over UART between two PIC16 devices using interrupts, but at random times, one of them seems to block its receiver and it stays stuck in that position permanently. ...
-1
votes
1
answer
965
views
PIC18 UART interrupt priority problems
I am completely new to microcontroller programing. Just started my journey with PIC18F24K22 and now I am on the UART interrupt stage. I have been reading the datasheet meticulously and it really took ...