Pic10f206


Closed Thread
Results 1 to 8 of 8

Thread: Pic10f206

Hybrid View

  1. #1
    Join Date
    Dec 2007
    Posts
    4


    Did you find this post helpful? Yes | No

    Default

    Thanks for the help. I figured it was something silly like that. I got the fuses figured out and GP3 now functions as an input like I want it to. However the GP2 pin is set by several registers. We disabled CMCON0 so that takes care of COUT, but leaves T0CKI, FOSC4 is set to 0 in the OSCAL0 register so that should be ok. So if I am correct I need to get T0CS=0. Yes?

    Thanks again,

    Mike

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


    Did you find this post helpful? Yes | No

    Default

    Yes yes yes
    Steve

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

  3. #3
    Join Date
    Dec 2007
    Posts
    4


    Did you find this post helpful? Yes | No

    Default

    Here is what I am trying do really do with this device:


    <code>

    @ __config _MCLRE_OFF & _WDT_ON & _CP_OFF

    Include "modedefs.bas"

    CMCON0=0

    SI var GPIO.0 'Define serial in pin
    WakePin var GPIO.1 'Define Wake Pin
    B0 var byte

    start:
    low wakepin 'Set the WakePin low
    serin SI,N9600,10,start,b0 'Wait for an interval
    high wakepin 'Set the WakePin High, we got our interval
    B0 = B0 * 60 'Convert the interval to seconds
    sleep b0 'Sleep for the interval specified
    goto start 'Go to "Start"
    </code>

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


    Did you find this post helpful? Yes | No

    Default

    Bear in mind it's a real nifty PIC, i'll suggest you to use DEBUGIN instead of SERIN. At least @9600 baud with internal OSC, better the chances are to work with DEBUG than SERIN. There's a warning about that in the manual.

    I never tried DEBUGIN/SERIN with 10F though...
    Last edited by mister_e; - 18th December 2007 at 17:05.
    Steve

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

  5. #5
    Join Date
    Dec 2007
    Posts
    4


    Did you find this post helpful? Yes | No

    Default

    So I have been trying to get T0CS=0 in the OPTION register but PBP doesn't seem to under stand "OPTION" as a register name.

    Any ideas?

  6. #6
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Default

    try OPTION_REG instead of OPTION
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

Similar Threads

  1. PIC10F206 - What is the LOWEST Power @ Rest or Sleep
    By rixtalbert in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 18th March 2007, 15:42
  2. Problem with Picbasic Pro and PIC10F202, PIC10F206
    By mikaljan in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 11th May 2005, 22:02

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