Shiftout question.


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Apr 2006
    Location
    New Hampshire USA
    Posts
    298


    Did you find this post helpful? Yes | No

    Post PicBasic Pro Compiler manual

    Check this out
    Quote Originally Posted by PicBasic Pro Compiler manual
    For compatibility with the BASIC Stamp, pins used in PicBasic Pro Compiler commands may also be referred to by a number, 0 - 15. This number references different physical pins on the PICmicro MCU hardware ports dependent on how many pins the microcontroller has.

    If a port does not have 8 pins, such as PORTA, only the pin numbers that exist may be used, i.e. 8 - 12. Using pin numbers 13 - 15 will have no discernable effect.

    This pin number, 0 - 15, has nothing to do with the physical pin number of a PICmicro MCU. Depending on the particular PICmicro MCU, pin number 0 could be physical pin 6, 21 or 33, but in each case it maps to PORTB.0 (or GPIO.0 for 8-pin devices, or PORTC.0 for a PIC14000).
    -Adam-
    Ohm it's not just a good idea... it's the LAW !

  2. #2
    Join Date
    Jun 2005
    Location
    Up the bush, Western Plains, NSW Au
    Posts
    216


    Did you find this post helpful? Yes | No

    Default

    Hmmmm..
    Yeah, I thought it was probably sumpthin' like that. Is there any documentation around for the pin numbering as mentioned and as to what port lines they refer to on different PICs??
    Peter Moritz.
    Up the bush, Western Plains,
    New South Wales,
    Australia.

  3. #3
    Join Date
    Apr 2006
    Location
    New Hampshire USA
    Posts
    298


    Did you find this post helpful? Yes | No

    Smile

    PicBasic Pro Compiler manual

    -Adam-
    Attached Images Attached Images  
    Ohm it's not just a good idea... it's the LAW !

Similar Threads

  1. 7 Segment Displays and MAX7219
    By Bill Legge in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 31st October 2010, 19:30
  2. Using MAX 7221 LED driver
    By Nick in forum mel PIC BASIC
    Replies: 15
    Last Post: - 21st October 2010, 20:31
  3. Smart Star (how to use shift registers)
    By mackrackit in forum Code Examples
    Replies: 3
    Last Post: - 30th November 2008, 21:06
  4. Shorter Subroutines for MAX7219
    By exelanoz in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 16th March 2007, 12:35
  5. Another Shiftout question
    By Srigopal007 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd September 2004, 00:07

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