I used Pspice from Orcad back in my school days.
Type: Posts; User: rsocor01; Keyword(s):
I used Pspice from Orcad back in my school days.
So far it hasn't fail yet with a 9600 baud rate, but I can live with a very low failure rate.
Yes, that explains everything. Unfortunately, I can't use the HSERIN/HSEROUT ports available in the 18F4550 because they are already taken doing the hardware communication. Increasing the baud rate...
The PIC ports with HSEROUT and HSERIN are already taken. Using a baud rate of 9600 instead of 19200 made a difference. It is now working fine. The USB Darrel's interrupt takes micro seconds to...
The sending device has the typical 18F4550 USB setup and it is set to "Define OSC 48". The receiving device is set to "DEFINE OSC 16".
There is probably a little bit of both. I did a search in the forum, but couldn't find anyone having the same issue.
Tumbleweed, I had very strong suspicions that the issues were in the communication lines. I changed the Baud rate from 19200 to 9600 and I haven't got anymore wrong data at the receiver. I remember...
Ioannis, yes I'm doing data validation checks all the time. The first byte of the array is always 174. If this condition is not met, then the reading is discarded.
There is no much code to show here. I know device A is sending the right data because I can see it with a logical analyzer. I know device B, like 1 out of 5 times, is reading some bytes wrong because...
I tried removing the 10k resistor and I'm still having the same problem. The PICs are in two different PCB boards. The serial communication is taking place over a 3ft cable. The cable has 2.5mm mono...
Hi, I have two devices communicating with SERIN2/SEROUT2. Device A, a PIC18F4550, sends data to device B a PIC16F19197. I'm receiving the data at device B using SERIN2, but like 1 out of 5 times I...
I had a PBP project to write to a SD card and it worked. That was many years ago and I don't remember the details of it, but it works. Attached is the sample code that I downloaded from the internet....
Thanks, I will try both of your suggestions.
I sent these 65 bytes every 100 mS. The data rate of the HC-05 seems to be high,
...
No, that space shouldn't be there. There are 64 characters followed by a comma.
I'm using an HC-05 module to send data to a PC or cellphone.
Hmm, how is that going to help? What amount of delay should I use?
The data package looks like this 432551346666666600000000000000000000000000000000CCCCCCCCA98BB79A,. This is just 32 bytes in HEX format followed by a comma. The comma is just to delimit the packages....
Hi, I have an array of 32 bytes. I need to send it to a Bluetooth module in HEX format. The only way I have been able to do it is,
FOR I = 0 TO 31
SEROUT2 PORTC.1,84,[HEX2...
This is not a bug. The programmer should put a RETURN at the end of every SUB routine. There can be some conditional RETURN commands too. You should organize your program such that every SUB routine...
Many car manufacturers canceled their chip orders at the beginning of the pandemic. The chip companies retooled their equipment to make chips for the electrodomestic industry. Many items like tablets...
Today, I was browsing through the Microchip website and to my horror most of the chips are out of stock. The expected shipping date for most of them is September 2022, a year from now.
I...
This program having SERIN2 working together with a USB connection keeps giving me headaches :eek:. The first code below works fine for many straight hours and days. However the second code gets hung...
Thanks, I haven't clean up the code yet. That makes sense about the unexpected issues.
Thanks, Richard. Now, I'm using the Darrel's USB interrupt and it helps. It is not really crucial in my program if a package is lost using the SERIN2 or SEROUT2 commands. I changed my code like it's...