PIC508/9 Header


Closed Thread
Results 1 to 6 of 6

Thread: PIC508/9 Header

Hybrid View

  1. #1
    stay_aliveuk's Avatar
    stay_aliveuk Guest


    Did you find this post helpful? Yes | No

    Default

    Since writing the previous message I have looked into the 'F' range of IC's and you are spot on, these are what I should be playing with, top advice.

    Still could do with a pointer on what the first couple of lines should look like for say the 12F629, which is 8 pin device.

    For example I always start with (for the 16c84)

    ' Set Up PortB

    DIRS=%11111110 'set portb pins as input or output as necessary
    PINS=%00000000 'set all portb pins low (or as necessary for each application)

    ' End of PortB Set up

    'Main Program

    Best regards

  2. #2
    stay_aliveuk's Avatar
    stay_aliveuk Guest


    Did you find this post helpful? Yes | No

    Default

    I really should wait a while before posting a reply. Since writing the above I have come across the following which may be what I am looking for:-

    '************************************************* ***************
    '* 12F629.BAS *
    '* *
    '* By : Leonard Zerman, Jeff Schmoyer *
    '* Notice : Copyright (c) 2002 microEngineering Labs, Inc. *
    '* All Rights Reserved *
    '* Date : 06/04/02 *
    '* Version : 2.42 *
    '* Notes : *
    '************************************************* ***************

    BANK0 $0020, $005F
    EEPROM $2100, $217F
    LIBRARY "PBPPIC14"

    include "PIC14EXT.BAS"

    PORTL VAR GPIO
    PORTH VAR GPIO
    TRISL VAR TRISIO
    TRISH VAR TRISIO

    include "PBPPIC14.RAM"

    '*-----------------------* EOF 12F629.BAS *---------------------*

    It appears to be a generic header for the 12f629 afterwhich the main program is written. If so can you 'decifer' it for me, ie are the ports set up as ins or outs and are they set high or low to begin?

    Thanks

  3. #3
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

Similar Threads

  1. Replies: 17
    Last Post: - 12th April 2014, 02:17
  2. meLabs Program Header aid
    By boroko in forum General
    Replies: 0
    Last Post: - 13th November 2009, 09:37
  3. need help in Sony S.I.R.C at 20/40 mhz
    By ferds in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 24th February 2006, 06:02
  4. Replies: 2
    Last Post: - 13th December 2005, 00:11
  5. Select Case syntax
    By keithdoxey in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th September 2005, 19:19

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