Programming a PIC 12F1822 Issues


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1
    Join Date
    Sep 2010
    Location
    Las Vegas, NV
    Posts
    305


    Did you find this post helpful? Yes | No

    Default Re: Programming a PIC 12F1822 Issues

    Easy one here. I can't find a datasheet for an 18F1822. Correct number, code, schematic and what you've done in the attempt to correct issue might help us help you.

  2. #2
    Join Date
    Jul 2013
    Posts
    7


    Did you find this post helpful? Yes | No

    Default Re: Programming a PIC 12F1822 Issues

    Sorry about that. The part is right in one part of the post! It is a 12F1822.

    The code is below - I am just trying to get a blinking light at this point(code from this forum). Thanks for your kindness is responding. As far as a schematic, I have 5 Volts, Ground and a connection to an LED on Port A.1 through a 1K resistor.

    #CONFIG
    _CONFIG _CONFIG1, _CLKOUTEN_OFF & _FOSC_INTOSC & _WDTE_OFF & _PWRTE_ON & _MCLRE_OFF & _BOREN_ON & _IESO_OFF & _FCMEN_OFF
    _CONFIG _CONFIG2, _PLLEN_OFF & _LVP_OFF & _STVREN_ON & _BORV_19
    #ENDCONFIG
    PORTA = 0 ' LED Off
    TRISA = 0 ' all outputs
    OSCCON = %01101000 ' 4MHz internal
    ANSELA = 0 ' all digital

    Here:
    HIGH PORTA.1
    PAUSE 500
    LOW PORTA.1
    PAUSE 500
    GOTO Here

    END

Similar Threads

  1. 12F1822 troubles
    By Charlie in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 24th June 2012, 12:53
  2. Replies: 19
    Last Post: - 26th April 2012, 20:23
  3. MIBAM and 12F1822...
    By alesniak in forum mel PIC BASIC Pro
    Replies: 27
    Last Post: - 17th September 2011, 06:45
  4. Programming Issues
    By mitchf14 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 7th July 2009, 19:25
  5. New to PIC Programming
    By Keiou in forum General
    Replies: 3
    Last Post: - 29th October 2003, 19:13

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