12f629 vs ATtiny 11L


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Code:
    @ DEVICE MCLR_OFF, INTRC_OSC, WDT_OFF, BOD_ON, PWRT_ON, PROTECT_OFF
    
    DEFINE OSCCAL_1K 1 ' calibrate internal osc
    
    CMCON = 7
    GPIO = 0
    TRISIO = 0
    
    Main:
        GPIO.0 = 1  ; 1uS ON
        @ GOTO $+1  ; 2uS ||
        @ GOTO $+1  ; 2uS ||
        @ GOTO $+1  ; 2uS ||
        GPIO.0 = 0  ; 1uS OFF
        GOTO Main   ; 2uS || (10uS total)
    That should give you around 100kHz with 7uS ON with 3uS OFF.
    Attached Images Attached Images  
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. Input problems with 12F629?
    By achilles03 in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 24th April 2018, 06:25
  2. 12F629 LDR - Light Dependant Resistor
    By Dennis in forum Schematics
    Replies: 15
    Last Post: - 18th February 2010, 22:33
  3. 12f629 config settings
    By Dennis in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 1st December 2009, 22:39
  4. Basic help for 12F629
    By Gene Choin in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd September 2009, 04:06
  5. Servo control with 12F629
    By achilles03 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd June 2005, 23:34

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