16F630 and MCP3221 I2C


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Aug 2005
    Posts
    11


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by badcock
    I just tracked some information down on the Microchip website:


    I'll give the other code a try!

    Rod
    But the code I had originally used was correct - could there be something else I am missing?

    Rod

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Rod,

    Your comments show that the LED's are on PORTA.0 and PORTA.1

    But, PORTA.1 and PORTA.2 are being toggled after reading the ADC<br><br>
    DT

  3. #3
    Join Date
    Aug 2005
    Posts
    11


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor
    Rod,

    Your comments show that the LED's are on PORTA.0 and PORTA.1

    But, PORTA.1 and PORTA.2 are being toggled after reading the ADC<br><br>
    Not a problem - 16F630 is in the PicKit1 board - there are LEDS on RA1, RA2, RA4 and RA5. My comments are incorrect!

    Rod

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Is there a jumper installed in JP1 on the PICtail board?

    It connects the pot to the ADC.<br><br>
    DT

  5. #5
    Join Date
    Aug 2005
    Posts
    11


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor
    Is there a jumper installed in JP1 on the PICtail board?

    It connects the pot to the ADC.<br><br>
    Yep - and confirmed through DataView

    Thanks,

    Rod

  6. #6
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Well that's good news. If you can get dataview to work with it, at least we know the Pictail is working.

    So here's another question that you've probably already checked.

    When programming the F630 on the Pickit, did you check the "Device Power" checkbox?

    Without it, the PIC in the "Evaluation Socket", and the MCP3221 won't get power.

    Other than that, I think it's down to checking all the basic troubleshooting items, such as.

    Check continuity, from F630 pins 9 and 10 to the MCP3221 pins 4 and 5.

    Is there power getting to all the chips involved.

    Does Pin1 match up on the connectors between the 2 boards

    As you can tell, I'm focusing on the hardware, because the program looks fine.<br><br>
    Last edited by Darrel Taylor; - 19th August 2005 at 06:38.
    DT

  7. #7
    Join Date
    Aug 2005
    Posts
    11


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor
    When programming the F630 on the Pickit, did you check the "Device Power" checkbox?

    Without it, the PIC in the "Evaluation Socket", and the MCP3221 won't get power.
    Yep, the reason I know the reading is not being made is because the LED's are not changing (toggling)

    Quote Originally Posted by Darrel Taylor
    Other than that, I think it's down to checking all the basic troubleshooting items, such as.

    Check continuity, from F630 pins 9 and 10 to the MCP3221 pins 4 and 5.

    Is there power getting to all the chips involved.

    Does Pin1 match up on the connectors between the 2 boards

    As you can tell, I'm focusing on the hardware, because the program looks fine.<br><br>
    OK ... I'll do a hardware check on the i2c lines + the power lines from the PicKit - from what you are saying it does not look like software!

    Thanks,

    Rod

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