Search found 11 matches

by archernater
20 Mar 2013 01:48
Forum: mikroC PRO for PIC General
Topic: UART interrupt problem
Replies: 16
Views: 10039

Re: UART interrupt problem

I'm pretty certain that I am getting characters from UART2 and the baud rate is correct I've checked the data sheet. Your right I did base my code on the MikroE GPS example and it has over complicated things. I not very familiar with using interrupts so I have decided to simplify my code my basing ...
by archernater
20 Mar 2013 01:36
Forum: mikroC PRO for PIC General
Topic: UART interrupt problem
Replies: 16
Views: 10039

Re: UART interrupt problem

In the GPSread loop I have tested each stage step by step by adding: PORTD=0xFF; //LED on delay_ms(100); This way I could observe if the PIC executes each stage in the GPSread loop. I found that the LED would flash on at every stage in the loop up until it got to count++ in the first dowhile, the co...
by archernater
20 Mar 2013 01:20
Forum: mikroC PRO for PIC General
Topic: UART interrupt problem
Replies: 16
Views: 10039

Re: UART interrupt problem

I would write an NMEA packet decode routine and test it as a stand alone function, write a simple test application... main...then some static NMEA strings and pass these to your NMEA decode function, that way you can validate it does everything it is supposed to do without worrying about the commun...
by archernater
19 Mar 2013 17:19
Forum: mikroC PRO for PIC General
Topic: UART interrupt problem
Replies: 16
Views: 10039

Re: UART interrupt problem

@ aCK0 I think I have addressed the problem of filling the text array quicker than I can display the result. I have now connected an LED to PORTD, which should light up When "$" is found in the text array "GPSin". However the LED does not light up, I know the LED works because I wrote some code to f...
by archernater
19 Mar 2013 00:19
Forum: mikroC PRO for PIC General
Topic: UART interrupt problem
Replies: 16
Views: 10039

Re: UART interrupt problem

Thanks my interrupt is now functioning :D but now I have another problem. I now know that the data is being received from the GPS module via URART2 and each character is being stored in the character array GPSin because the LCD indicates this. However when I use the strstr function to try and find t...
by archernater
18 Mar 2013 19:14
Forum: mikroC PRO for PIC General
Topic: UART interrupt problem
Replies: 16
Views: 10039

UART interrupt problem

I am using a ready for PIC board, and have connected a GPS receiver to UART2 (Rx-RB6). Every second the GPS receiver sends a string of characters to the PIC. I want to store the characters from the GPS module in a character array and then search for "$GPGGA" which is the start of the GPS data that I...
by archernater
13 Mar 2013 16:21
Forum: User Projects
Topic: GPS module problem
Replies: 1
Views: 1059

GPS module problem

Hi I have connected a GPS module to UART2 on my ready for PIC board. However when I run my program it is is evident that the data is not ready. To test weather the GPS module is working I have connected my GPS module to my PC via serial connection and observed that data is sent from the GPS module v...
by archernater
13 Mar 2013 13:38
Forum: mikroC PRO for PIC General
Topic: UART rs-232 communication
Replies: 5
Views: 1988

Re: UART rs-232 communication

One other question when using UART2, do I have to define the TRIS bits of RB6 and RB7 as input or output?
by archernater
13 Mar 2013 13:01
Forum: mikroC PRO for PIC General
Topic: UART rs-232 communication
Replies: 5
Views: 1988

Re: UART rs-232 communication

Thanks :-) that solves by problem yay!
by archernater
12 Mar 2013 18:22
Forum: mikroC PRO for PIC General
Topic: UART rs-232 communication
Replies: 5
Views: 1988

UART rs-232 communication

I'm trying to receive data from a GPS module however I am a confused about UARTx commands. How do I find out which I/0 pins are associated with UART1, UART2, ect? I'm using a ready for PIC board which has a PIC18F45K22 micro-controller. I have looked at the PIC18F45K22 data sheet and it is not clear...
by archernater
19 Feb 2013 19:37
Forum: User Projects
Topic: Storing data from a PORT
Replies: 1
Views: 1140

Storing data from a PORT

I have a device connected to my ready for pic board, this device sends a 8-bit number to the board. LSB is connected to RBO and MSB is connected to RB7. I want to convert the 8-bit number inputted at PORTB to a decimal number which is then displayed on a LCD display. I can write hello world message ...

Go to advanced search