SEROUT is not working!


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Dec 2007
    Posts
    34


    Did you find this post helpful? Yes | No

    Default

    Hey Skimask,
    I am using MicroCode Studio Compiler and WinPIC PIC Programmer.
    I have just changed that statement to <code>@ DEVICE PIC12f629, INTRC_OSC_NOCLKOUT</code> which is what i wanted but it still does not work.

    Thanks,
    Jeremy
    Last edited by jhorsburgh; - 3rd September 2008 at 01:02.

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


    Did you find this post helpful? Yes | No

    Default

    The program makes it to thr HIT: label and turns on the LED? correct?

    Are you using hyperterminal at the PC? And it is not receiving anything or is it receiving junk.

    If junk, it may be the internal OSC is not good enough.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Dec 2007
    Posts
    34


    Did you find this post helpful? Yes | No

    Default

    Hi Dave,
    The program makes it to the HIT routine and turns the LED on, it even sends a pulse out GPIO.2 but Hyperterminal doesn't receive anything. I'll try an external oscillator to see if that helps.

    Thanks Guys,
    Jeremy

  4. #4
    Join Date
    Dec 2007
    Posts
    34


    Did you find this post helpful? Yes | No

    Default

    Hi Guys,
    The external oscillator has fixed the problem! Thanks a bunch guys.

    Jeremy

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by jhorsburgh View Post
    Hi Guys,
    The external oscillator has fixed the problem! Thanks a bunch guys.
    Jeremy
    Just a thought for you...
    Since you know it works with an external oscillator and NOT with the internal one which likely needs to be calibrated...Now might be the time to learn how to calibrate it to work correctly for future uses in this arena...since you've got a working example that is...

    And I don't know about the WINPIC programmer, but the PICKIT2 from Microchip has an option to get the CAL value back on these types of PICs...something else to think about...

  6. #6
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Here is the link to an00250 from microchip, regarding how to recover the missing number:
    http://ww1.microchip.com/downloads/e...tes/00250a.pdf
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  7. #7
    Join Date
    Dec 2007
    Posts
    34


    Did you find this post helpful? Yes | No

    Default

    Thanks guys, i didn't realise you could calibrate the internal oscillator, ill definitely have a look into it.

    Jeremy

Similar Threads

  1. A Serial GLCD 128x64 Simple Project
    By Oldspring in forum Off Topic
    Replies: 0
    Last Post: - 8th March 2010, 20:58
  2. Serout to serial servo
    By azmax100 in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 12th August 2009, 16:46
  3. Advice-scrutiny for my serial controller
    By kevlar129bp in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 13th December 2008, 17:11
  4. Keypad unlock (as in garage door possibly)
    By Fred in forum Code Examples
    Replies: 5
    Last Post: - 2nd April 2006, 04:26
  5. Replies: 11
    Last Post: - 13th July 2005, 19:26

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