pin 12f683


Results 1 to 23 of 23

Thread: pin 12f683

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    How does it work with this?

    Code:
    @ DEVICE PIC12F675,MCLR_OFF,INTRC_OSC_NOCLKOUT,WDT_OFF,BOD_ON,PWRT_ON
    ANSEL = 0         
    CMCON = 7  
    OPTION_REG = 0    
    TRISIO = %00100011
    WPU = %00000011
    
    ' Example program from manual to blink an LED connected to gpio.4 about once
    ' a sec
    led var gpio.0
    
    loop:
       if  led = 1 then
           low 2
       else
           high 2
       endif
    
       HIGH gpio.4
       ' Turn on LED connected to gpio.4
       Pause 1000    ' Delay for .5 seconds
       LOW gpio.4
       ' Turn off LED connected to gpio.4
       Pause 500       ' Delay for .5 seconds 
       Goto loop       ' Go back to loop and blink LED forever
       End
    Last edited by Bruce; - 15th March 2007 at 16:06.
    Regards,

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

Similar Threads

  1. Is this a K Type sensor?
    By jessey in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 21st November 2009, 14:55
  2. What's the best way to output 30 to 40 kHz from a 12F683 pin?
    By fizyxman in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 1st June 2009, 01:08
  3. DS1820 with 16f688
    By jessey in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 23rd May 2009, 06:07
  4. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 18:27
  5. Another RTC, DS1287
    By DavidK in forum Code Examples
    Replies: 0
    Last Post: - 12th December 2006, 18:07

Members who have read this thread : 1

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