74hc595 !!


Closed Thread
Results 1 to 3 of 3

Thread: 74hc595 !!

  1. #1
    Join Date
    Apr 2005
    Posts
    32

    Default 74hc595 !!

    I want to use 74HC595 shift register .
    I wote simple test code for it . it seems ok .. but with proteus simulation doesnt shows anything .
    where am i doing mistake!!

    here is my code..


    Include "modedefs.bas"
    DEFINE SHIFT_PAUSEUS 1000
    TxData var byte

    symbol HC_Data = PORTA.0
    SYMBOL HC_Clk = PORTA.1
    Symbol HC_latch= PORTA.2
    'symbol HC_Load = PORTA.3


    TRISA = 0
    PORTA = 0

    Main:

    TxData = $F0
    gosub Send_Data

    pause 1500

    TxData = $0F

    Gosub Send_Data

    pause 1500

    goto main
    end

    Send_Data :

    '
    shiftout HC_data, HC_Clk, MSBFIRST, [TxData]

    HC_Latch=1
    pauseus 5

    HC_Latch=0
    return
    Attached Images Attached Images  

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Set porta to digital by turning off A/D.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  3. #3
    Join Date
    Apr 2005
    Posts
    32


    Did you find this post helpful? Yes | No

    Default

    thx.

    i solved my problem by changing porta to portb :-)

Similar Threads

  1. Two 18F4550 and One 74HC595 line How to ?
    By pretourian in forum Serial
    Replies: 2
    Last Post: - 23rd January 2009, 00:40
  2. Newbie 74hc595 question
    By manjero in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 22nd January 2008, 23:22
  3. How to use 74HC595
    By darkman in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 2nd May 2005, 16:47
  4. Display Using Cascaded 74hc595
    By charudatt in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 7th December 2004, 07:05

Members who have read this thread : 1

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