I2C and Serout problems with 18F4525


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Australia
    Posts
    20


    Did you find this post helpful? Yes | No

    Default

    Dear Steve,

    I made it working as your suggestion although sometimes it doesn't go (seems no clock, it may be the circuit board problem). The following is the change of the code and cofiguration:

    code:
    ========================
    DEFINE OSC 8
    OSCCON = %01110111
    =======================

    cofiguration:
    ==============================================
    __CONFIG _CONFIG1H,_OSC_INTIO67_1H
    __CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_128_2H
    __CONFIG _CONFIG3H, _MCLRE_ON_3H & _PBADEN_OFF_3H
    __CONFIG _CONFIG4L, _LVP_OFF_4L & _ENHCPU_OFF_4L
    ==============================================

    Once again thank you very much.
    Yuantu Huang

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


    Did you find this post helpful? Yes | No

    Default

    Great. Try reprogram your PIC with the lowest Brown-Out-voltage treshold too. Power-Up timer have to bet set too.

    Of course noisy supply line and 'weird contact' on a board can do bad results. PIC18F series are really noise sensitive... use of external pull-ups instead of the internal seems to solve some problems. After some tests, Pull-ups lower than 4.7k give better result. i use 1K in all my apps. For sure sink a bit more current but... it works.
    Steve

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

Similar Threads

  1. Problem with I2C (24c32 eeprom)
    By lab310 in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 5th February 2008, 10:00
  2. I need help with i2c memory
    By -c3- in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 23rd June 2005, 20:57
  3. problems with I2C.... and ideas why dosent work?
    By snood in forum mel PIC BASIC Pro
    Replies: 25
    Last Post: - 26th April 2005, 13:54

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