trick with Serin


+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    84

    Default trick with Serin

    Hi all,
    I'm running a PIC18F67K22 at 4MHz (define OSC 4) and using this command to read serial data at 9600bps

    Code:
    Serin2 Gps_tx, T9600,4000,cnerr,[.........


    no problems at all, but in some situation I activate the PLL (so running at 16MHz) because I need to run faster for some particular tasks ("Pause xxx" here and there take account of this).
    In this situation, I would expect that using this other Serin parameters would work same way to read at 9600 with the same 4 sec timeout, but it does not work ...


    Code:
    Serin2 Gps_tx, T2400,16000,cnerr


    Where is my mistake ?

  2. #2
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    84


    Did you find this post helpful? Yes | No

    Default Re: trick with Serin

    No mistake, it works, sorry (you can delete the post eventually)

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,993


    Did you find this post helpful? Yes | No

    Default Re: trick with Serin

    By the way, why don't you use the USART and Hserin/Hserout commands?

    Ioannis

Similar Threads

  1. DT’s Elapsed Timer Magic Trick
    By Art in forum General
    Replies: 21
    Last Post: - 3rd April 2015, 09:39
  2. Replies: 0
    Last Post: - 16th February 2015, 18:29
  3. Digital pot, voltage regulator or can software do the trick?
    By Christopher4187 in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 24th December 2012, 07:42
  4. Serin
    By jonas2 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 6th June 2006, 14:11
  5. serin
    By Sphere in forum Serial
    Replies: 2
    Last Post: - 28th August 2005, 19:43

Members who have read this thread : 13

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