Navtex Receiver


Closed Thread
Results 1 to 18 of 18

Thread: Navtex Receiver

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    It's already done in your code...
    Code:
    __CONFIG _CP_OFF& _WDT_OFF & _PWRTE_ON & _HS_OSC & _LVP_OFF & _BODEN_ON
    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?

    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
    1. the schematic of it?
    2. 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.

  2. #2
    Join Date
    Feb 2005
    Posts
    44


    Did you find this post helpful? Yes | No

    Default

    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?
    Attached Images Attached Images  

  3. #3
    Join Date
    Feb 2005
    Posts
    44


    Did you find this post helpful? Yes | No

    Default

    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)?

  4. #4
    Join Date
    Feb 2005
    Posts
    44


    Did you find this post helpful? Yes | No

    Default

    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
    Attached Files Attached Files

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    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.

  6. #6
    Join Date
    Feb 2005
    Posts
    44


    Did you find this post helpful? Yes | No

    Default

    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?

  7. #7
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Here's a tips on how to mix ASM and PBP.
    Code:
            '    Using PIC16F88
            @ DEVICE INTRC_OSC, LVP_OFF, WDT_OFF, MCLR_OFF
            
            DEFINE OSC 4
            OSCCON=%01101000
            ANSEL=%00000000
            CMCON=%00000111
            
            trisa = %11111111
            trisb = %00000001
        
            DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
            DEFINE HSER_TXSTA 24h ' Enable transmit, BRGH = 1
            DEFINE HSER_SPBRG 25  ' 9600 Baud @ 4MHz, 0.16%
            DEFINE HSER_CLROERR 1 ' Clear overflow automatically
                
            CounterA    var byte BANK0
            CLEAR
            
    Start:
            asm
                    CHK?RP PORTB
                    BTFSC   PORTB,0
                    GOTO $-1
                    INCF _CounterA,F
            ENDASM                
            HSEROUT ["CounterA=",DEC CounterA,13,10]
            PAUSE 200
            GOTO START
    You define your variable in PBP, then you access them in ASM. Possible to use the other way... BUT not 100% sure if this is safe though... sure it isn't 'cause you can't know for sure where PBP will place it's own variables.
    Last edited by mister_e; - 1st April 2008 at 20:49.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Replies: 17
    Last Post: - 12th April 2014, 02:17
  2. 433 Mhz Data Receiver
    By Pesticida in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 29th November 2010, 02:26
  3. RC Servo Receiver
    By Ioannis in forum General
    Replies: 2
    Last Post: - 23rd October 2007, 06:56
  4. PIC16F877 with GPS receiver
    By rocketqueen in forum GPS
    Replies: 10
    Last Post: - 15th November 2006, 21:56
  5. interfacing gps receiver with 16f877a
    By sakhyvava in forum GPS
    Replies: 1
    Last Post: - 27th September 2006, 09:13

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