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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Anobium the board was a Ebay job and the link is to down load the info provided as seen the pins go to pins 4 and 5 are the push buttons however in GCB the pins have not been assined to a port my program to date is to flash a led (which works) is there a possability the che chip file is incomplete?
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.
Hi Anobium the board was a Ebay job and the link is to down load the info provided as seen the pins go to pins 4 and 5 are the push buttons however in GCB the pins have not been assined to a port my program to date is to flash a led (which works) is there a possability the che chip file is incomplete?
http://en.mail.qq.com/cgi-bin/ftnExs_download?t=exs_ftn_download&k=2c3833630104ebca30671f051538071e010e0a52040d0d07485b06550b150107515d1e5b0b0b011c5c59555b575b5054075a0453332c35612c7b025b750e037b53081e277815761f175941630e&code=e83c3851
ASA
Can you share the source program you are using? I am not sure what you mean about the assignments.
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
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.
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
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?
the version of GCB is 1.0 2015-07-12
please find attached program
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.
Hi Anobium
thanks for the help it fixed my proplem
asa