That's only 40+ pages of assembly code...bit-banged serial routines, bit-banged LCD routines, and so on and so on...
I think it's time to put it in the round file and start from scratch...
That's only 40+ pages of assembly code...bit-banged serial routines, bit-banged LCD routines, and so on and so on...
I think it's time to put it in the round file and start from scratch...
thanks skimast for your reply. I know how many pages are and thats why i am comfused with the program(think also that i don't know assembly).don't give me code only the steps to start building it. take out lcd and serial commands. I can't understand also when the timer0 start.after capture interrupt? and also the receiver character is not ASCII he convert it but can't translate how.
when i compile the code with mplab and download it to the chip the chip doen't start. i measure with osciloscope the crystal and seems doesn't start.i face again this kind of problem and it was define different crystal value than i had in breadboard(in PBP).i am using 8 MHz crystal which working (i test it )and also i put in program that local is 8Mhz.i don't know how i can define in assembly that i am working with 8MHz crystal?
thanks
Set config to HS oscilator type. Aslo, using an o-scope probe on a crytal may load the crystal to the point where it quits. Use a spare port and slap it around to see if the PIC is running.
No, I'm not Superman, but I did stay at a Holiday Inn Express last night!
I did it but the programm is not running .I will also check with XT configuration.Is it possible to define the crystal frequency in assembly as we do in PBP.?
It's already done in your code...
syntax is syntax, seems to miss a space between _CP_OFF and the &... if you have any compilation error, it might just forget the config fuses?Code:__CONFIG _CP_OFF& _WDT_OFF & _PWRTE_ON & _HS_OSC & _LVP_OFF & _BODEN_ON
Which device programmer do you have?
With the same config line, did you tried a simple Led Blink program?
Is there any chance to have
- the schematic of it?
- A picture of your current Prototype?
If you're using an o-scope to monitor your crystal... make sure you set your probe to 10X or 100X, unless you'll just screw the poor osc signal.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
mister e i will explain you what i am doing. i download the above code from net and i compiled with mplab(succesfull). i burn the 16f876 and the chip doesn't start.in the same breadboard i made a sample program to test the lcd screen in pbp.it works like a charm.everything is the same exept the programm. If i understand correct my problem is with crystal config.the sample programm that i made has the same configuration bits and works(i didn't write the line a made it manualy from programmer).i am thinking to check now with XT config to see what happends. I use usb programmer from melabs and also i found from my friend the picstart plus and i tried it with mplab with no success.i put the navtex code in microcode studio but i had a lot of errors and i leave it .the diagramm is below if can be help you.i did't made it all ,only the digital circuit i build (pic ,lcd,max232,buttons), the receiver i don't want it now i want to check the decoder first and the lcd screen.Also i am not checking only the crystal with scope , by the programm must give my 500KHz in 12 pin.What else can i do?
Bookmarks