I thought it was like riding a bike... Help please! 16f630 config


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Location
    New Hampshire
    Posts
    76


    Did you find this post helpful? Yes | No

    Default Re: I thought it was like riding a bike... Help please! 16f630 config

    I got it working. Here's the code I used:

    CMCON = 7
    TRISA = %111000
    TRISC = %111000
    porta = 0
    portc = 0

    Push var porta.4
    '************************************************* ***************
    Start: while Push = 1 ' Wait for button push
    wend



    Run: High porta.0 ' Turn on LED and leave it on
    Pause 2000
    High porta.1 ' Turn on LED and leave it on
    Pause 2000
    high porta.2 ' Turn on LED and leave it on
    pause 2000
    high portc.0 ' Turn on LED and leave it on
    pause 2000
    high portc.1 ' Turn on LED and leave it on

    End

    I thought I also had to set ANSEL but Microcode Studio balks at me for it. :-P I'm trying!

    Thank you!

    Ross
    Never enough knowledge to be called intelligent but just enough knowledge to be considered dangerous!

    I like that! :-)

  2. #2
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default Re: I thought it was like riding a bike... Help please! 16f630 config

    Quote Originally Posted by rossfree View Post
    I thought I also had to set ANSEL but Microcode Studio balks at me for it. :-P I'm trying!
    The PIC16F630 has no ADC, so no analog selections are available. That's why it was balking at you.
    http://www.scalerobotics.com

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