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.?
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?
finally it works.... i would like to ask how i can pass this code to microcode studio and execute the labels that i want(and interrupts)?
below is my sample fsk decoder similar to above code.i would like to ask how can i check if it is in phase or not and how i can read the bits that receiving in main programm? i upload also the specific assembly code for checking the phase.
thanks
in your asm code... ; if sample = inphase then donothing
think about it a little bit![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
I stack now. I know that one sitor bit is 10msec. so i use tmr0 to find if it is in phase with samples, but how i know if i am in the start of sitor bit or in 3 msec after? I say that 10 samples is 1 sitor bit ok but i don't know if i start from the begining.Can you explain it to me mister_e?
Bookmarks