Search Results - MEL PICBASIC Forum


Search:

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

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    3,570

    Re: SPI vs UART efficiency for wireless comms

    Sorry, yes SPI. I understand the uC interface has nothing to do with range but I am hoping someone out there has used one of these devices and may be familiar with them.

    As it relates to...
  2. Replies
    2
    Views
    3,570

    SDI vs UART efficiency for wireless comms

    I am developing a wireless solution which will communicate at a lower data rate, 9600 or 19200. I see that Microchip has a nice module, MRF24J40MA with an SDI interface and STMicroelectronics has a...
  3. Replies
    4
    Views
    8,261

    Re: Parity & Stop Bits settings and results

    Defining HSER2_TXSTA made all the difference. I thought the compiler would set this register according to the defines for the BITS and the EVEN, but apparently not. It also explains why I got poor...
  4. Replies
    4
    Views
    8,261

    Re: Parity & Stop Bits settings and results

    I do want to also ask how does the compiler set the values for baud and parity?
    If I set the TXSTA2 register manually, I think with a 24 then I setting the BAUDCON register can set the baud rate....
  5. Replies
    4
    Views
    8,261

    Parity & Stop Bits settings and results

    In my serial application I am setting the second port to 9600 8E1.

    define HSER2_BAUD 9600
    DEFINE HSER2_BITS 9
    define HSER2_EVEN 1
    DEFINE HSER2_CLROERR 1

    These are the only DEFINEs I am...
  6. Re: Dual USART, Second USART sends but not receives, PIC18F24K22

    It is now working. It was the issue of sending bytes and data mismatch. I had HSERIN2 100, main, [HEX char2] with char2 defined as a byte. When I dropped the HEX modifier, it worked properly and...
  7. Re: Dual USART, Second USART sends but not receives, PIC18F24K22

    Something happened in the cut and paste, all 8 TRIS bits are set.
    I did change the bits to inputs and it didn't resolve the issue:
    TRISA = %11111111 ' Setup TRIS
    TRISB = %11110000
    TRISC =...
  8. Dual USART, Second USART sends but not receives, PIC18F24K22

    My application is utilizing both USARTs for this chip. The primary USART is working fine. The second USART will transmit but will not receive. I sususpect I have an issue with the configuration. I...
  9. Re: hserin buffer fills before all characters can be read

    Thank you. I wasn't aware that you could combine the Wait with the timeout. That works very well.

    Thanks
    George
  10. hserin buffer fills before all characters can be read

    I am interfacing to an Elo touch screen for a custom solution. The elo messages are suppose to always be 10 characters long and start with the character U. I want to be able to capture all 10...
  11. Re: hserin 100, main [flag] causing 18f24k22 to become unstabloe

    Not sure why this posted a second time, but thank you and yes the nested gosub is the issue. I went back and it is documented in the manual. I changed the gosub to goto and it works as intended....
  12. Re: hserin 100, main [flag] causing 18f24k22 to become unstabloe

    Thank you and I changed the gosub to simply goto which works. I would ask, where is the maximum number of nested gosub routines documented?

    Again, thanks

    George
  13. hserin 100, main [flag] causing 18f24k22 to become unstabloe

    I have a simple program shown below which works fine for about 27 loops, then i notice one of the variables, X is reset to zero for an unknown reason. After that, it will run for about another 27...
  14. What memory is used for DATA @X, LONG $XXXXXX

    If one uses the DATA command to write to EEPROM at program time and are writing a LONG variable, how many bytes are used in memory and what locations are used. The memory is organized in bytes and...
Results 1 to 14 of 14