need help with "hello world" in hyperterm


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612

    Default

    Hi,
    You don't say if you're using a MAX232-type-of-circuit but have you tried:
    Code:
    Serout2 portc.6,84,["Hello World",10,13]
    Make sure you use a X-tal or resonator for the osciallator as the internal oscillator may not be acurate enough.

    /Henrik Olsson.

  2. #2
    Join Date
    Oct 2007
    Posts
    4

    Default no dice: Hellow world->hyperterm

    Quote Originally Posted by HenrikOlsson View Post
    Hi,
    You don't say if you're using a MAX232-type-of-circuit but have you tried:
    Code:
    Serout2 portc.6,84,["Hello World",10,13]
    Make sure you use a X-tal or resonator for the osciallator as the internal oscillator may not be acurate enough.

    /Henrik Olsson.
    Thanks for the response:

    I'm not using a MAX232 device. Tried your the code, with the different logic->spits out different garbage. I am using a 4 Mhz x-tal external that has worked for me with this chip for several other non-serial comm applications. Though I've read that I can't use a 9600 baud rate with this x-tal, I've also tried the same code with different mode #s for 4800 (see below), and run it at 4800 baud in hyper term. It gives me the EXACT same garbage!

    switchVar var byte
    input portb.0


    Main:
    SwitchVar = portb.0
    if switchvar=1 then
    Serout2 portc.6,188,["Hello World A",10,13]
    pause 500
    Serout2 portc.6,16572,["Hello World B",10,13]
    endif
    goto main

    still hopeful,
    eric

  3. #3
    Join Date
    Oct 2007
    Posts
    4

    Default Got it.

    Thanks for the help.

    first time on the forum.

    My code/wiring were correct. But I switched from XT->HS for programming my PIC. It works perfectly now. The tip that the problem could be the oscillator was the tip to put my trouble shooting in the right direction.

    eric

Similar Threads

  1. "hello world" with 18f6680
    By dragons_fire in forum mel PIC BASIC Pro
    Replies: 91
    Last Post: - 6th February 2008, 06:06

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