Comunication between PIC16f877A and PIC16f877A ?


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Lightbulb

    thanks again for your gold idea 74LS164 which expanding our ports and not to need another PIC .
    oky here is the pins and ports are used
    - I use portc as data port for printer
    - I use RB0 and RB1 for barcode one for clock and other for data
    - I use RB3 for busy signal of printer
    - I use RB2 for strobe signal of printer
    - I use RB4,RB5,RB6 as buttons for registration and financial and cancel for student select

    here is what used for the first stage
    second stage I will control of 18 seven segments and need also 6 buttons for employes and one pin for indication sound

    But I have a strange problem when I add in some way an addition code in our programm , I notice that the intrrupt is not working well

    here is the code I added in the begining of our programm
    ;;;;;;;;;; check the availability of printer
    lcdout ins,clr,ins,line1,"Check Printer...."
    if busy=1 then
    while busy=1
    LCDout ins,line2,"Printer Problem"
    wend
    endif

    LCDout ins,line2,"Printer Online"
    pause 2000

    lcdout Ins,clr,INS,Line1,"Please Ins. ID card"
    ;;;;;;;;;;;;;;;;;;;;;;;;;
    I don't know what is the problem ???????????

  2. #2
    Join Date
    Oct 2004
    Location
    North Norfolk UK
    Posts
    146


    Did you find this post helpful? Yes | No

    Default

    so you have PORTA and PORTD completely free?

    why exactly have you run out of I/O's

    shortly about to leave to catch "the learning curve" by Libby Purves on Radio 4, tonight has a piece about the government OFSTED inspections that are due very soon, do you have the same sort of thing?

    Duncan

Similar Threads

  1. PIC16F877A for application in mobile robot...
    By mcbeasleyjr in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 30th January 2009, 14:47
  2. Replies: 11
    Last Post: - 6th November 2008, 10:27
  3. problem with pic16f877a !!!
    By ibra in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 14th December 2007, 06:38
  4. communicating pic18f452 with pic16f877a
    By tamersoss in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 13th July 2007, 19:54
  5. PIC16f877-20 to a PIC16f877A I/P Disaster
    By andyf in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 21st November 2005, 17:11

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