SERIN2 Question


Closed Thread
Results 1 to 8 of 8

Thread: SERIN2 Question

Hybrid View

  1. #1
    eoasap's Avatar
    eoasap Guest


    Did you find this post helpful? Yes | No

    Default

    DynamoBen, rate is 9600 baud. i'm communication (or trying to) with a FAT16 chip that for now, is supposed to simply reset and send back a string. this chip comes pre-programmed and transmits at 9600 baud.

    here is the relevent code i have:

    'PIC18F8722
    DEFINE OSC 16 'when actually its 14.7456mhz
    ASM
    __CONFIG _CONFIG1H, _OSC_HS_1H
    ENDASM

    gosub alfat_reset
    .... main code ....


    ALFAT_RESET:
    LCDOUT CMD, CLR 'Clear LCD Screen
    SEROUT2 ALFAT_RX,76, ["RS OK",13]
    ; SEND ALFAT RESET STRING
    READ2:
    LCDOUT CMD, CLR
    SERIN2 ALFAT_TX , 76, [BUFCHAR]
    LCDOUT BUFCHAR
    PAUSE 1000

    RETURN

  2. #2
    eoasap's Avatar
    eoasap Guest


    Did you find this post helpful? Yes | No

    Default

    after the first initial send "RS OK" and receive "BL" (both work fine), it seems like any command after that the first character is dropped and prints the 2nd char. I've tried speeding up the baud rate, but that doesn't work. any ideas ?

  3. #3
    eoasap's Avatar
    eoasap Guest


    Did you find this post helpful? Yes | No

    Default

    the baud rate is accurate according to the formula also (assuming the xtal is reported speed, haven't been able to check on a scope). could this be solved by adding a pullup resistor on the transmit lines ?

Similar Threads

  1. GPS $GPRMC to PIC16F684. Need help with SERIN2
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 27th November 2009, 10:47
  2. Getting SERIN2 to work?
    By BobPigford in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 22nd July 2009, 21:10
  3. Yet another SERIN2 question
    By ozarkshermit in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 31st March 2009, 21:11
  4. SERIN2 digit parsing
    By skimask in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 8th January 2007, 00:15
  5. serin2 question
    By Pedro Santos in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 3rd July 2006, 22:28

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts