Exploring Pic16F628a...


Results 1 to 12 of 12

Threaded View

  1. #6
    Join Date
    Oct 2008
    Posts
    65


    Did you find this post helpful? Yes | No

    Smile re: exploring pic16f628a

    Hello everyone!
    I appologized the late reply, my computer broke down, had to replace the hard drive. I appreciate to everyone who is helping me alot(specially joe). Anyway this is my updated code.

    [CODE]
    @ device pic16F628A, INTRC_OSC_NOCLKOUT, wdt_on, mclr_on, lvp_off
    VRCON = 0 ' A/D Voltage reference disabled
    PortA=0
    TRISA=0
    PortB = %00000000
    TRISB = %11110000
    Led1 var byte
    myvar var word

    begin:
    high PortB.0
    pause 100
    low PortB.0
    pause 100
    high PortB.1
    pause 100
    low PortB.1
    pause 100
    high PortB.2
    pause 100
    low PortB.2
    pause 100
    goto begin

    [\CODE]

    Joe, I followed your intruction to disable the line in the16f628.inc file. No errors when compiled. But before I disabled it, I add the line on top, compiled with no error also.

    thanks in advance,
    mbox
    Last edited by mbox; - 17th October 2008 at 00:49.

Similar Threads

  1. Instant Interrupts - Revisited
    By Darrel Taylor in forum Code Examples
    Replies: 772
    Last Post: - 17th February 2016, 22:14
  2. Do I need a pause?
    By tazntex in forum Serial
    Replies: 21
    Last Post: - 29th August 2008, 04:32
  3. Help Pic16f628a
    By gadelhas in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 26th August 2008, 23:22
  4. Changing bits in a byte for multiple output
    By tazntex in forum Serial
    Replies: 3
    Last Post: - 11th August 2008, 19:10
  5. Replies: 8
    Last Post: - 22nd July 2008, 20:31

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