Search found 8 matches

by rexp
12 Sep 2012 23:18
Forum: mikroBasic PRO for PIC General
Topic: Uart problem reading GPS GPGGA word
Replies: 5
Views: 3175

Re: Uart problem reading GPS GPGGA word

Hi srnet Thanks for the reply. Tried extending the buffer with no effect. Have included a copy of the data below, the data is a fixed length except when the number of satellites falls below 10 as can be seen on line 3. Any other ideas would be appreciated, as I am not getting anywhere in solving thi...
by rexp
10 Sep 2012 21:38
Forum: mikroBasic PRO for PIC General
Topic: Uart problem reading GPS GPGGA word
Replies: 5
Views: 3175

Re: Uart problem reading GPS GPGGA word

The GPS sentence is a fixed format and the $GPGGA is at the front of the sentence. What I suspect is happening and what you are alluding to is somehow the buffer is not being cleared correctly and in effect I have a rotating buffer which eventually is incorrect. Problem is I am not sure how to clear...
by rexp
10 Sep 2012 06:36
Forum: mikroBasic PRO for PIC General
Topic: Uart problem reading GPS GPGGA word
Replies: 5
Views: 3175

Uart problem reading GPS GPGGA word

Hi Am reading the GPGGA message from a Sure Electronics /Skylab SKG16B GPS unit. I have programmed the unit to only send the GPGGA message and at 4800Bd. The software also reads an analog and DS18B20. All works fine for around 40 seconds or so then the UTC time is corrupted. It comes good after a fe...
by rexp
03 Apr 2011 00:38
Forum: mikroBasic PRO for PIC General
Topic: DS18B20 alarm
Replies: 6
Views: 5309

Re: DS18B20 alarm

Hi Finally found out how to read an alarm. Below is the code used for the DS18B20 to set up an alarm between 25 and 85 degrees C. When the read alarm command (ECh) is sent and no alarm is present the data read looks like: 01111111 but when an alarm is present is data read looks like: 11111111 So if ...
by rexp
28 Mar 2011 02:24
Forum: mikroBasic PRO for PIC General
Topic: DS18B20 alarm
Replies: 6
Views: 5309

DS18B20 alarm

Does anyone know how to read the alarm from a DS18B20 after the "EC" command is sent.

The data sheet refers to the alarm but have not been able to find how to read it.

Thanks in advance

Rex
by rexp
21 Mar 2010 07:36
Forum: mikroBasic General
Topic: Help with SPI problem
Replies: 1
Views: 1374

Re: Help with SPI problem

Got it sorted out, turns out the 8Mhz crystal and the standard SPI1_Init was clocking the data too fast for the Poscope logic analyser to see. I used the SPI1_Init_Advanced with /64 and changed the crystal to 1Mhz - can see the data and the syntherizer is now also programming correctly. Thanks to an...
by rexp
21 Mar 2010 03:46
Forum: mikroBasic General
Topic: Help with SPI problem
Replies: 1
Views: 1374

Help with SPI problem

Hi Sample code is attached - I am not getting any clock signal on RC3 or data on RC5. I see the latch signal on RC1 ok and if I disable the spi1_init and spi commands and enable the set and clear commands for RC3 and RC5 I see the ports change state ok so the hardware seems to be functioning ok. Any...
by rexp
11 Dec 2007 06:02
Forum: mikroBasic General
Topic: MCP23S17 register addressing
Replies: 1
Views: 1513

MCP23S17 register addressing

Does anyone have an example of setting the registers in the 23S17 from Mikrobasic.

I need to set port A with interrupt capability and preset the DEFVAL register to 0.

Thanks

Rex

Go to advanced search