12f675 Serout Int_Osc problem


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1

    Default 12f675 Serout Int_Osc problem

    Hi all ,

    I'm suffering in converting a working code from a 16f628 to a 12f675

    I noticed a problem in the serial communication during debug

    Can anyone help me with configuring the fuses for this device

    I have:

    GPIO.0 as 10bit ADC
    GPIO.1 & GPIO.2 as output
    GPIO.3 RXD
    GPIO.4 TXD both inverted driven direct to a com port via resistors
    GPIO.5 input

    This is the start of the code where i want to test serout but i got
    rubbish


    @ DEVICE INTRC_OSC_NOCLKOUT
    @ DEVICE MCLR_OFF

    DEFINE OSC 4
    DEFINE adc_bits 10
    DEFINE adc_clock 3
    DEFINE adc_sampleus 50
    CMCON = 7 'TURN COMPARITORS OFF
    TRISIO = %101001 ' Set GPIO 0,3 & 5 TO INPUTS, others to OUTPUT
    ANSEL = %00110001 ' Set GSIO 0 TO ANALOG A/D IN W/Frc
    ADCON0.7 = 1 ' Right Justify for 10-bit

    TXD var gpio.4
    RXD var GPIO.3
    adcresult VAR WORD
    dummy var word



    test:

    SerOut txd,5,["Serial test",10,13]
    pause 500
    goto test

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by RFsolution View Post
    Hi all ,
    This is the start of the code where i want to test serout but i got
    rubbish
    @ DEVICE INTRC_OSC_NOCLKOUT
    Is your internal 4Mhz clock actually running at 4Mhz or is it running off frequency?

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    maybe Define OSCCAL_1k 1 could help, Software calibration could be done ... but.. serial com and int osc are poor bedfellow.
    Last edited by mister_e; - 30th April 2007 at 05:31.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4


    Did you find this post helpful? Yes | No

    Default Re

    Thanks SKymask and ofcourse Mister-E (the forum reference hihihi)

    Well i tried even 1200bd without succes

    I will add the Osc-Cal define this evening and give it a try

    Thanks

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. Strange SerOut Problem
    By masosi in forum mel PIC BASIC Pro
    Replies: 39
    Last Post: - 23rd April 2007, 06:06
  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