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...
Type: Posts; User: rsocor01; Keyword(s):
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...
Hi,
I have the following code below where every once in a while I'm checking the incoming data using SERIN2. If I change the WAIT-TIME in SERIN2 from 5mS to 4mS or less the USB connection would...
Richard, thanks for the reply. I was concerned that the interrupt might interfere with the HSERIN and HSEROUT commands.
Hi,
I'm using the DT USB Interrupts in the link below. In the same program, I'm using a few HSERIN and HSEROUT commands. I know that these two things don't like each other. However, since this DT...
Thank you guys.
Robert
Yes, I'm asking myself the same question :D. Yes, your code looks better than mine. The program is probably overflowing the stack and halting like Dave said. Will the program restart from the...
Hi, I have the following code,
MainLoop:
'DO SOME STUFF HERE.....
FOR J = 0 TO 7
GOSUB SearchForClockSignal
Thanks. Assembly is not something that I'm very familiar with. I'll go over this code. It seem to do what I need.
Robert
Hi all,
I'm working on a project with the WS2812B LED lights. The PIC needs to send 24 bits for every LED that is connected in series. The 1st byte being for the green, the 2nd byte being for the...
Hi,
Does anybody have a new version of this code for PBP3 and VB.NET 13, 15, or 17? I tried the VB NET code in the first post and it gave me all kind of errors. Does anybody knows where I can get...
The melabs website shows that PBP3 supports that chip. I have never seen a defective PIC in all the years I've programming them. More than likely that you are not setting the registers correctly....