Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: rsocor01; Keyword(s):

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds; generated 34 minute(s) ago.

  1. Replies
    13
    Views
    224

    Re: SERIN2 Receiving Wrong Data

    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...
  2. Replies
    13
    Views
    224

    Re: SERIN2 Receiving Wrong Data

    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.
  3. Replies
    13
    Views
    224

    Re: SERIN2 Receiving Wrong Data

    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...
  4. Replies
    13
    Views
    224

    Re: SERIN2 Receiving Wrong Data

    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...
  5. Replies
    13
    Views
    224

    SERIN2 Receiving Wrong Data

    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...
  6. Re: Simplest way to write to USB stick or TF/SD card with PBP?

    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....
  7. Replies
    13
    Views
    3,837

    Re: SEROUT2 Byte Array In HEX Format

    Thanks, I will try both of your suggestions.
  8. Replies
    13
    Views
    3,837

    Re: SEROUT2 Byte Array In HEX Format

    I sent these 65 bytes every 100 mS. The data rate of the HC-05 seems to be high,


    ...
  9. Replies
    13
    Views
    3,837

    Re: SEROUT2 Byte Array In HEX Format

    No, that space shouldn't be there. There are 64 characters followed by a comma.
  10. Replies
    13
    Views
    3,837

    Re: SEROUT2 Byte Array In HEX Format

    I'm using an HC-05 module to send data to a PC or cellphone.
  11. Replies
    13
    Views
    3,837

    Re: SEROUT2 Byte Array In HEX Format

    Hmm, how is that going to help? What amount of delay should I use?
  12. Replies
    13
    Views
    3,837

    Re: SEROUT2 Byte Array In HEX Format

    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....
  13. Replies
    13
    Views
    3,837

    SEROUT2 Byte Array In HEX Format

    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...
  14. Replies
    21
    Views
    8,013

    Re: RETURN command?

    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...
  15. Replies
    4
    Views
    4,137

    Re: Microchip Chip Shortage

    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...
  16. Replies
    4
    Views
    4,137

    Microchip Chip Shortage

    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...
  17. Replies
    6
    Views
    36,807

    Re: USBSERVICE And SERIN2 Odd Behavior

    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...
  18. Replies
    6
    Views
    36,807

    Re: USBSERVICE And SERIN2 Odd Behavior

    Thanks, I haven't clean up the code yet. That makes sense about the unexpected issues.
  19. Replies
    6
    Views
    36,807

    Re: USBSERVICE And SERIN2 Odd Behavior

    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...
  20. Replies
    6
    Views
    36,807

    USBSERVICE And SERIN2 Odd Behavior

    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...
  21. Replies
    3
    Views
    17,016

    Re: DT Interrupts and HSERIN / HSEROUT

    Richard, thanks for the reply. I was concerned that the interrupt might interfere with the HSERIN and HSEROUT commands.
  22. Replies
    3
    Views
    17,016

    DT Interrupts and HSERIN / HSEROUT

    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...
  23. Replies
    9
    Views
    27,813

    Re: GOTO vs RETURN after a GOSUB

    Thank you guys.

    Robert
  24. Replies
    9
    Views
    27,813

    Re: GOTO vs RETURN after a GOSUB

    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...
  25. Replies
    9
    Views
    27,813

    GOTO vs RETURN after a GOSUB

    Hi, I have the following code,



    MainLoop:

    'DO SOME STUFF HERE.....

    FOR J = 0 TO 7
    GOSUB SearchForClockSignal
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4