Menu

PIC 18F66J60 port arrangement

2016-04-17
2016-04-20
  • JOSH CARTER

    JOSH CARTER - 2016-04-17

    Hi im new in to pic programing and i am using a 18F66J60 experiment board the problem i have is it has 2 buttons onboard that go to pins 4 and 5 on the data sheet it is listed as RB1 and RB2 however on GCB there is no port assined to those pins?

    ASA

     
  • Anobium

    Anobium - 2016-04-17

    Welcome,

    Do you have part number or a link to your board? This may help us, help you. I am sure with the circuit board schematic we can walk you the first steps.

    again, welcome.

     
  • Anobium

    Anobium - 2016-04-18

    Can you share the source program you are using? I am not sure what you mean about the assignments.

     
  • JOSH CARTER

    JOSH CARTER - 2016-04-18

    Hi Anobium i have attached a screen shot of the pinout genererated by GCB for the metioned chip as you can see pins 4 and 5 are empty

    josh

     
  • Anobium

    Anobium - 2016-04-18

    Thank you.

    GCGB is showing a PDIP chip when your chip is a TQFP.

    So, physical pins 4 and 5 mapped to Portb.1 and portb.2. So, if you select those outputs all should be good.

    Have a look at the datasheet of the chip for lots of good information.

     
  • JOSH CARTER

    JOSH CARTER - 2016-04-18

    Hi Anobium

    tried that it did not seem to work could it be that portb1 and b2 are tied to pins 47 and 46 in GCB?

    ASA

     
  • Anobium

    Anobium - 2016-04-19

    Can you attached your source GCB file please? I want to make sure I understand what is going on.

    And, what version of the Great Cow BASIC please? Was this a very recent download and complete installation?

     
  • JOSH CARTER

    JOSH CARTER - 2016-04-19

    the version of GCB is 1.0 2015-07-12

    please find attached program

     
  • Anobium

    Anobium - 2016-04-19

    You seem to be missing the oscillator frequency from the #chip instruction.

    Set the oscillator frequency to correct value and all should be ok, but, more importantly you have no loop. The code will operate once and then exit... I do not think you would see the chip operate. Edit you code within GCGB to add a do - loop.

     
  • JOSH CARTER

    JOSH CARTER - 2016-04-20

    Hi Anobium

    thanks for the help it fixed my proplem

    asa

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.