{"id":167,"date":"2023-11-24T12:44:59","date_gmt":"2023-11-24T12:44:59","guid":{"rendered":"http:\/\/karlsblog.bigmight.com\/blog\/?p=167"},"modified":"2023-11-25T13:54:46","modified_gmt":"2023-11-25T13:54:46","slug":"high-precision-frequency-counter-using-gps-part2","status":"publish","type":"post","link":"https:\/\/karlsblog.bigmight.com\/blog\/2023\/11\/24\/high-precision-frequency-counter-using-gps-part2\/","title":{"rendered":"High Precision Frequency Counter using GPS (Part2)"},"content":{"rendered":"\n<p>Following from <a href=\"http:\/\/karlsblog.bigmight.com\/blog\/2022\/03\/04\/high-precision-frequency-counter-using-gps\/\" title=\"High Precision Frequency Counter using GPS\">previous posting<\/a> I have connected a STM32F429i-DISC1 board to us UBLOX  NEO-6M GPS module (see <a href=\"https:\/\/www.ebay.co.uk\/itm\/313603433572\">https:\/\/www.ebay.co.uk\/itm\/313603433572<\/a>) and programmed a 32 bit counter in capture compare mode running at 80MHz.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/karlsblog.bigmight.com\/blog\/wp-content\/uploads\/2023\/11\/stm32f429_with_neo_gps.jpg\"><img loading=\"lazy\" width=\"1024\" height=\"921\" src=\"https:\/\/karlsblog.bigmight.com\/blog\/wp-content\/uploads\/2023\/11\/stm32f429_with_neo_gps-1024x921.jpg\" alt=\"STD32f429i-Disc1 with NEO-6M GPS as timer\" class=\"wp-image-170\" srcset=\"https:\/\/karlsblog.bigmight.com\/blog\/wp-content\/uploads\/2023\/11\/stm32f429_with_neo_gps-1024x921.jpg 1024w, https:\/\/karlsblog.bigmight.com\/blog\/wp-content\/uploads\/2023\/11\/stm32f429_with_neo_gps-300x270.jpg 300w, https:\/\/karlsblog.bigmight.com\/blog\/wp-content\/uploads\/2023\/11\/stm32f429_with_neo_gps-768x691.jpg 768w, https:\/\/karlsblog.bigmight.com\/blog\/wp-content\/uploads\/2023\/11\/stm32f429_with_neo_gps-1536x1381.jpg 1536w, https:\/\/karlsblog.bigmight.com\/blog\/wp-content\/uploads\/2023\/11\/stm32f429_with_neo_gps-1200x1079.jpg 1200w, https:\/\/karlsblog.bigmight.com\/blog\/wp-content\/uploads\/2023\/11\/stm32f429_with_neo_gps.jpg 1998w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><figcaption>NEO-6M GPS with PPS triggering counter<\/figcaption><\/figure>\n\n\n\n<p>After the GPS settled I recorded a number of counts varying by +-200 using the inbuilt 8MHz crystal.<\/p>\n\n\n\n<p>This is far too much jitter, at present i t is uncertain if the reason is<\/p>\n\n\n\n<ol><li>Crystal frequency variation due to quality of crystal<\/li><li>Crystal frequency variation due to supply voltage<\/li><li>STM32 PLL stability.<\/li><\/ol>\n\n\n\n<p>I will first attempt to attach a better crystal. The STM32F429 accepts an external input from 4MHz to 26MHz. From RS components I considered a 24Mhz TCXO <a href=\"https:\/\/uk.rs-online.com\/web\/p\/tcxo-oscillators\/2499379\">https:\/\/uk.rs-online.com\/web\/p\/tcxo-oscillators\/2499379<\/a> but I only wanted one, so ended up buying o e of these from ebay <a href=\"https:\/\/www.iqdfrequencyproducts.com\/products\/pn\/LFTCXO075797Reel.pdf\">https:\/\/www.iqdfrequencyproducts.com\/products\/pn\/LFTCXO075797Reel.pdf<\/a>.<\/p>\n\n\n\n<p>I&#8217;ll update on stability when it arrives.<\/p>\n\n\n\n<p>I will provide the eclipse project for the board firmware. It includes UI, GPS serial communications and timer programming. All running under FreeRTOS.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Following from previous posting I have connected a STM32F429i-DISC1 board to us UBLOX NEO-6M GPS module (see https:\/\/www.ebay.co.uk\/itm\/313603433572) and programmed a 32 bit counter in capture compare mode running at 80MHz. After the GPS settled I recorded a number of counts varying by +-200 using the inbuilt 8MHz crystal. This is far too much jitter, &hellip; <a href=\"https:\/\/karlsblog.bigmight.com\/blog\/2023\/11\/24\/high-precision-frequency-counter-using-gps-part2\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;High Precision Frequency Counter using GPS (Part2)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/karlsblog.bigmight.com\/blog\/wp-json\/wp\/v2\/posts\/167"}],"collection":[{"href":"https:\/\/karlsblog.bigmight.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/karlsblog.bigmight.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/karlsblog.bigmight.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/karlsblog.bigmight.com\/blog\/wp-json\/wp\/v2\/comments?post=167"}],"version-history":[{"count":8,"href":"https:\/\/karlsblog.bigmight.com\/blog\/wp-json\/wp\/v2\/posts\/167\/revisions"}],"predecessor-version":[{"id":181,"href":"https:\/\/karlsblog.bigmight.com\/blog\/wp-json\/wp\/v2\/posts\/167\/revisions\/181"}],"wp:attachment":[{"href":"https:\/\/karlsblog.bigmight.com\/blog\/wp-json\/wp\/v2\/media?parent=167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/karlsblog.bigmight.com\/blog\/wp-json\/wp\/v2\/categories?post=167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/karlsblog.bigmight.com\/blog\/wp-json\/wp\/v2\/tags?post=167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}