I believe PBP 2.60a needs an older MPASM to work properly. It needs MPLAB v8.15a as the latest to use.
Type: Posts; User: tasmod; Keyword(s):
I believe PBP 2.60a needs an older MPASM to work properly. It needs MPLAB v8.15a as the latest to use.
Ah no it isn't.
LED current limit resistor missing on that led, it overstretched the output capability. Fixed and works as wanted.
Sorry guys, no problem with code.
Duff track on protoboard !
Seems so simple I'm missing something ! Using a protoboard with leds on each output then Relay2 doesn't work.
;*****************************************************
; ...
Not used it before but according to PBP manual shouldn't the OWOUT mode be set as say %010 ? Send reset pulse after data.
OWOUT PORTB.2,%010 , [$CC, $4E, 0, 0, %01111111]
Hi Henrik,
I've been doing some more reading regarding the NMEA string from the Rockwell datasheets. (19 pages in one 142 in other !)
I've discovered two choice bits.
(1.) The string is...
Hi Henrik,
Quite a bit to digest there. Good food for thought. Thanks.
I missed the fact that the custom characters for the medium digits was constantly loading in the loop. I've moved that...
Hi Darrel,
Hmmm, looking at the various timings I don't see how this can be done.
The NMEA string is output at the same point, the epoch of the PPS pulse, so the code is executing the string...
LED CON 0 doesn't clearly map the LED to a pin.
LED VAR GPIO.0 does. Just easier to understand.
I like to put a pinout connection diagram for the chip as a reminder what is connected to...
This is the full code with the Ints active but it's just updating first character.
;
; GPS NMEA Display code with GPSDO monitoring
;
; PIC16F876A ...
Redesign completed. New board made where all pins are accessible and pads for option of pullups/down resistors.
I have altered the software to use HSERIN and HSEROUT and all is well at the moment....
Hmm, guess which pins are not catered for on pcb ?
Redesign methinks. :D
That was it.
Using "DEC4 latsecs/lonsecs" in the gps string and changing to Word size variables uses the 4 decimal places.
Interestingly using battery power for the unit, I got exactly the same...
It's between DEC4 in gps string and Aint in locator code.
I can get the display right but not the locator using DEC4 in the gps string and DIGs in the display LCDOUT.
I can get the locator...
Now this is interesting.
If I mess with the size of any 'secs' variables it screws everything up. I can get Lat to 4 decimal places but not Long, it still goes to zero.
Right now I put the...
Hmmm no. I screwed that up somehow.
I realised it was saving DEC2 in the gps string so it would not be any different, so I changed it to DEC4 for now.
I changed the DEC2 in display line to...
Again you come to my aid Darrel. :D
I had limited the output by declaring the lat/lon secs as byte. Changed them to word and it becomes much more stable now. Datasheet says the decimal part is...
Hi Demon,
It came from the Hints n Tips pdf in the other post here. Lots of good stuff in it.
That was it Darrel. I had aliased the wrong variables to save renaming.
Gives correct code at 'back yard' 90% of time. Why 90% ? Well, it faces North and the number of satellites it will lock...
Hmmm, I've transferred the code over into my program but I must have done something wrong as the locator is incorrect.
I'm getting 10 and kd instead of 03 and kh which is correct at back of house....
Wow, wow and WOW. What can I say? That is your usual brilliant stuff.
I use DT_Ints, Big Digits, ADC Average and now your Locator code.
Many many thanks. I tried but just can't follow it...
Following on from the other thread this is the source of much useful information and ingenious tips.
Microchip Tips Pdf
I found this app note from Microchip which may be of use to someone for battery operation.
7312
Hi Andy,
That's the doc I took the info post from :)
Regarding working satellites, I downloaded a Maidenhead Locator App for my Android phone. Gives lots of other info too.
Able to get 10...
Hi Darrel,
Many thanks for this.
I wondered about the variables. I did have a try at following the code through in the hope I could perhaps work it out.
As a test. I changed the string to 8...