Gpio ? Trisio ?


Results 1 to 6 of 6

Thread: Gpio ? Trisio ?

Threaded View

  1. #5
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink The truth ...

    Hi,

    The truth is always Here :

    Code:
    '****************************************************************
    '*  12F519.BAS                                                  *
    '*                                                              *
    '*  By        : Leonard Zerman, Jeff Schmoyer                   *
    '*  Notice    : Copyright (c) 2007 microEngineering Labs, Inc.  *
    '*              All Rights Reserved                             *
    '*  Date      : 06/26/07                                        *
    '*  Version   : 2.50                                            *
    '*  Notes     :                                                 *
    '****************************************************************
    
    BANK0   $0007, $001F
    BANK1   $0030, $003F
    EEPROM  $0400, $043F
    LIBRARY "PBPPIC12"
    DEFINE  CODE_SIZE 400h
    
            include "PIC12EXT.BAS"
    
    TRISB	VAR	BYTE BANK0 SYSTEM	' TRISB shadow register
    
    PORTL   VAR     PORTB
    PORTH   VAR     PORTB
    TRISL   VAR     TRISB
    TRISH   VAR     TRISB
    
            include "PBPPIC12.RAM"
    
    '*----------------------* EOF 12F519.BAS *----------------------*

    Have a look to the "1xYzzz".bas file in your PBP Directory. ( 1xYzzz = 12F519, here )

    You can modify it or add Other Aliases ... at your own risks !

    for 10F :

    Code:
    '****************************************************************
    '*  10F206.BAS                                                  *
    '*                                                              *
    '*  By        : Leonard Zerman, Jeff Schmoyer                   *
    '*  Notice    : Copyright (c) 2004 microEngineering Labs, Inc.  *
    '*              All Rights Reserved                             *
    '*  Date      : 06/04/04                                        *
    '*  Version   : 2.46                                            *
    '*  Notes     :                                                 *
    '****************************************************************
    
    BANK0   $0008, $001F
    LIBRARY "PBPPIC12"
    DEFINE  CODE_SIZE 200h
    
            include "PIC12EXT.BAS"
    
    TRISIO	VAR	BYTE BANK0 SYSTEM	' TRISIO shadow register
    
    PORTL   VAR     GPIO
    PORTH   VAR     GPIO
    TRISL   VAR     TRISIO
    TRISH   VAR     TRISIO
    
            include "PBPPIC12.RAM"
    
    '*----------------------* EOF 10F206.BAS *----------------------*
    Alain
    Last edited by Acetronics2; - 15th October 2008 at 14:20.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. Random output upon TRISIO setup on '683
    By picster in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 6th July 2009, 13:34
  2. 12F675 A/D and GPIO sleep interrupt
    By macinug in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 8th September 2008, 14:39
  3. Pic12f683, Trisio, High Z, A2d
    By jmbanales21485 in forum Schematics
    Replies: 9
    Last Post: - 5th July 2007, 19:34
  4. can't even flash an LED
    By bruno333 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 28th April 2005, 13:27
  5. 12c508 Gpio
    By oki_one in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th August 2003, 07:51

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