Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Gizmo

  • Rank
  • Birthday 04/15/1954

Contact Methods

  • Website URL
  • ICQ

Profile Information

  • Gender
  • Location
    Knoxville, TN
  1. mityeltuI'd like an answer to this myself. The forums seem to be getting gray with cobwebs.
  2. Perhaps I have misread your problem but how about something like: if (UTC_hour < offset) local_time = (UTC_hour + 24) - offset; else local_time = UTC_hour - offset; Regards davidb Perfect! Very eloquent. Thank you David.
  3. Does anyone have C code that converts the hour portion of UTC to the local time's hour (offset -5 hours for EST, -4 hours for EDT, in my case)? The answer would seem obvious (UTC minus the offset), but this equation falls apart when UTC is between 00 and 05 hours. Any suggestions please?
  4. bit_time = FOSC / 4 / BAUDRATE Where FOSC is the crystal frequency of the PIC PIC Baud Rate Calculator http://www.micromagicsystems.com/#/pic-baud/4523812801
  5. Pavel, Thanks for the info. That helped me understand some other parts of the example code too. What is the purpose of the High Priority interrupt and its port D Data Latch?
  6. I thank everyone for taking their time to help me solve my problem. Although I don't have the answer yet, I have a lot of data to read and study, and for that I am thankful. Gizmo
  7. Pavel, Thanks for the link. I had already downloaded and printed this code and "The SourceBoost UART Driver Reference Manual," unsuccessfully studied them, then I started this thread. As a person just starting to learn about serial communications, I don't know what parts in the sample code (not including the pragma) may be specific to the PIC18 target (I'm using PIC16s), I don't understand the helper defines, and having the TX and RX UARTS in the same code is confusing to me. I fell like I'm at an awkward in-the-middle stage where I'm already familiar with the material presented i
  8. Gentlemen, thank you for your response. TFcroft4, I've got a copy of another example source code that uses the PPS for timing, although your approach seems to be more straight-forward. I'll definitely give it a try once I get to that point. Scotty, The link you provided is Jon's update to one of his existing projects, but he moved up to a PIC18-family chip and I don't think I'm ready to tackle PIC18s yet. However, I did find a GPS compass project on his website that uses a 16F628a and may provide some insight. Me My biggest problem is I don't understand how to set up the USART
  9. Hi, Does anyone have source code for using the hardware USART of a PIC16 family chip to extract data from a GPS receiver module that they would like to share with me please? I've spent the last several months surfing the web, printing and studying pertinent data, but I'm not much closer to understanding the process than when I started. I've got several non-commercial, future project ideas in mind using GPS, and I'm pretty sure that I know what to do with the received data once I get past this hurdle. I'm a retired EE (almost exclusively in RF and analog), and I started working
  10. Does anyone have C2C-compatible code that will test all of the characters of standard 16x2 LCD modules using a 16F628A (or similar) PIC? I've tried modifying some of the sample code included with SourceBoost, but without much success. Actually, with no success. Any help would be greatly appreciated. Giz
  11. Does anyone have experience with interfacing an optical rotary encoder to a 16F628 or 16F877 using C2C? Thanks!
  12. Hi all, I'm looking for an intermediate level book(s) about PICs that emphasizes programming in C. Any recommendations please? Thanks, Gizmo
  • Create New...