Search Results - MEL PICBASIC Forum


Search:

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

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    1,767

    Re: Background Pulse Counter

    This turned out the be far easier than I thought it would be.
    I set T0CON for $E8
    TMR0ON = Enable Timer 0
    T08BIT = Timer0 8 bit
    T0CS = Transition on TOCK1
    T0SE = Low to High transition...
  2. Replies
    3
    Views
    1,767

    Re: Background Pulse Counter

    I should add that with the DT Interrupts, I am only using Timer 1 for an internal event timer.
    I would presume this would mean anything I use timer 2 or 3 for would leave DT Interrupts unaffected...
  3. Replies
    3
    Views
    1,767

    Background Pulse Counter

    I am creating an application which will need to count 2uS pulses while running a control loop.
    This will be implemented with the PIC18F4680
    The control loop uses DT Interrupts to control some pins...
  4. Replies
    2
    Views
    5,318

    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...
  5. Replies
    2
    Views
    5,318

    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...
  6. Replies
    4
    Views
    30,528

    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...
  7. Replies
    4
    Views
    30,528

    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....
  8. Replies
    4
    Views
    30,528

    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...
  9. 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...
  10. 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 =...
  11. 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...
  12. 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
  13. 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...
  14. 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....
  15. 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
  16. 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...
  17. 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 17 of 17