Newbie 74hc595 question


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Jan 2008
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    Hey DT.
    Thanks again - that was very informative!
    I changed my code to this:

    Include "modedefs.bas" ' Include shift modes

    CMCON0 = 7
    ANSEL = 0
    DPIN var PORTA.0 ' Shift data pin 1
    CPIN var PORTA.1 ' Shift clock pin 1
    LPIN var PORTA.2 ' Latch pin 1


    bvar var BYTE

    bvar = 255
    ' Shift out 8 bits of data onto other pins
    Shiftout DPIN, CPIN, MSBFIRST,[bvar, bvar, bvar, bvar]
    Low DPIN

    Main:
    pause 5980
    High CPIN
    pause 10
    'Shiftout D1PIN, C1PIN, MSBFIRST,[0]
    LOW CPIN
    Pulsout LPIN,10
    goto Main
    end

    Compiles OK so lets hope :-)

  2. #2
    Join Date
    Jan 2008
    Posts
    6


    Did you find this post helpful? Yes | No

    Default

    Hello manjero, I think that Darrel missed the fact that you're using an 'F84. You can drop the:-

    CMCON0 = 7
    ANSEL = 0

    The 'F84 doesn't have any analogue inputs to turn off or configure as digital IO. They're always digital IO. In fact, I have 16F84(A) selected, the compiler, (v 2.44), doesn't even recognise CMCON0.

    ... Steve (Yep, another one)

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by scarroll01 View Post
    In fact, I have 16F84(A) selected, the compiler, (v 2.44), doesn't even recognise CMCON0.
    ... Steve (Yep, another one)
    The upgrade covers that too, only $25.
    Get your now...hurry hurry hurry.

Similar Threads

  1. newbie with serial com question...
    By kevlar129bp in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 16th December 2006, 06:34
  2. Newbie Question - Info Please
    By ehoskins in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 2nd October 2006, 15:50
  3. Greetings from Newbie and a question
    By ChrisHelvey in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 24th July 2006, 16:52
  4. Newbie question
    By senojlr in forum General
    Replies: 7
    Last Post: - 11th April 2006, 22:23
  5. Replies: 4
    Last Post: - 8th September 2005, 16:42

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