Serin Problem with 12F629/PBP


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Posts
    2


    Did you find this post helpful? Yes | No

    Default

    I know little english.
    I also have problems 12f675 serout2.
    problem was solved by adding "define OSCCAL_1k 1".
    Will benefit from this example that would send.
    My my script below

    @ device pic12f675, intrc_osc, wdt_on, bod_on, cpd_off, pwrt_on, mclr_off, protect_off

    DEFINE OSCCAL_1k 1
    DEFINE ADC_BITS 8 ' Set number of bits in result
    DEFINE ADC_CLOCK 3 ' Set clock source (rc = 3)
    DEFINE ADC_SAMPLEUS 10 ' Set sampling time in

    CMCON = 7 ' Comparators OFF
    ANSEL = %00100001 ' AN0 enabled (last 4 bits are enable bits {AN3:AN0}
    ADCON0 = %11000001 ' VCC Vref / Turn On ADC Module
    trisio = %001011 ' 1 giriş 0 Çıkış

    SYMBOL AN_OKU = GPIO.0
    SYMBOL TX = GPIO.5
    VOLT VAR WORD

    BASLA:
    ADCIN AN_OKU, VOLT
    pause 10
    VOLT.highbyte = ADRESH
    VOLT.lowbyte = ADRESL
    SEROUT2 tx,16780 ,["volt : ", dec5 volt, ?10,?13 ]
    pause 1000
    GoTo basla
    Last edited by timurak; - 7th March 2009 at 21:33.

  2. #2
    Join Date
    Mar 2009
    Posts
    4


    Did you find this post helpful? Yes | No

    Default

    Thanks Timurak,

    I didnt initially post it, but my platform uses the external 4 MHz. oscillator, but thank you for answering my post. I did fix the input problem with a change in the resistor from 22k to 10k. Now Serin is working flawlessly.

    george

Similar Threads

  1. Serin Problem 16f819
    By jjohannson in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd March 2007, 22:50
  2. Serin serout problem
    By lerameur in forum mel PIC BASIC Pro
    Replies: 336
    Last Post: - 6th February 2007, 04:25
  3. Problem with PBP interrupt and Serin, please help
    By rgregor in forum mel PIC BASIC
    Replies: 0
    Last Post: - 22nd August 2006, 19:02
  4. serout and serin problem
    By nicolelawsc in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 11th April 2006, 19:44
  5. 16F877A serin problem with baud rate 19200
    By leemin in forum Serial
    Replies: 1
    Last Post: - 31st July 2005, 09:45

Members who have read this thread : 1

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts