Serout2 at 9600 problem


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Sep 2012
    Location
    Australia - Gold Coast
    Posts
    3


    Did you find this post helpful? Yes | No

    Default Re: Serout2 at 9600 problem

    Firstly, use TOGGLE Led_1.... as your LED will never go off

    Second, how are you verifying the rate is 2400? What terminal program are you using?

  2. #2
    Join Date
    May 2012
    Posts
    18


    Did you find this post helpful? Yes | No

    Default Re: Serout2 at 9600 problem

    Hello,

    Thank for your answers.

    I'm using a 18F2550. To verify the baud rate, i'm using the hyperterminal from windows.

    I think that my problem is in definition of the Pic, I not understand why we need to define the oscilator 2 times:

    DEFINE OSC 8
    __CONFIG _CONFIG1L, _PLLDIV_2_1L ; Divide by 2 (8 MHz oscillator input)

    Thanks,
    Nuno

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Serout2 at 9600 problem

    Try this

    Code:
    @   __CONFIG   _CONFIG1L, _PLLDIV_2_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L
    @   __CONFIG   _CONFIG1H, _FOSC_HSPLL_HS_1H
    
    DEFINE OSC 48
    Dave
    Always wear safety glasses while programming.

Members who have read this thread : 1

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