Shot meself in the foot again...


Results 1 to 12 of 12

Threaded View

  1. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Number or PORT real name or Alias to pin it has to work

    Have a look to section 4.11, or in MCS Help topics>>PICBASIC PRO Basics>>> Pins

    To me, real port name (PORTB.3) or aliases (DO) is more valuable than pin #.

    But... it's me
    Code:
        SS                   var PORTB.1 ' ISD4002 SS pin
        SCLK                 var PORTB.2 ' ISD4002 SCLK pin
        MOSI                 var PORTB.3 ' ISD4002 MOSI pin
        MISO                 var PORTB.4 ' ISD4002 MISO pin
        '
        '
        '
        '
        ss = 0
        shiftout MOSI,SCLK,LSBFIRST,[ISDword\16]
        ss = 1
        '
        '
        '
        '
        ss=0
        shiftin miso,sclk,lsbpre,[isdpointer\16]
        ss=1
    Last edited by mister_e; - 21st June 2007 at 14:39.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. One Shot Rising
    By MarcBergeron in forum General
    Replies: 1
    Last Post: - 27th September 2009, 21:55
  2. Re: Recommended PCB foot prints
    By Steve_88 in forum Off Topic
    Replies: 0
    Last Post: - 30th June 2007, 17:56

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