Hey guys
I've got a PICBASIC code here... but I somehow cant run MPLAB IDE (v8.36)in a way that is compatible with PICBASIC. So I'm wondering if you guys know how to convert this into C, or assembly language to load it into the chip (PIC16F877A), it is pretty short.
//basically taking in periodic serial data at 1 rate (extracting certain data, i.e. 12 words after detecting the word GPGGA)and outputting it at a diff rate, thats all this code is supposed to do - looping forever
DEFINE OSC 20
TRISB = %00000010
TX_PIN VAR PORTB.1 //define I/O pins
RX_PIN VAR PORTB.2
Loop:
SERIN 1, T4800, ("GPGGA"), W0, W1, W2, W3, W4, W5, W6, W7, W8, W9, W10, W11, W12,
SEROUT 2, T2400, W0, W1, W2, W3, W4, W5, W6, W7, W8, W9, W10, W11, W12
goto Loop
Help is greatly appreciated!!!
I've got a PICBASIC code here... but I somehow cant run MPLAB IDE (v8.36)in a way that is compatible with PICBASIC. So I'm wondering if you guys know how to convert this into C, or assembly language to load it into the chip (PIC16F877A), it is pretty short.
//basically taking in periodic serial data at 1 rate (extracting certain data, i.e. 12 words after detecting the word GPGGA)and outputting it at a diff rate, thats all this code is supposed to do - looping forever
DEFINE OSC 20
TRISB = %00000010
TX_PIN VAR PORTB.1 //define I/O pins
RX_PIN VAR PORTB.2
Loop:
SERIN 1, T4800, ("GPGGA"), W0, W1, W2, W3, W4, W5, W6, W7, W8, W9, W10, W11, W12,
SEROUT 2, T2400, W0, W1, W2, W3, W4, W5, W6, W7, W8, W9, W10, W11, W12
goto Loop
Help is greatly appreciated!!!