E Amazings
  • Home
  • Automotive
  • Business
  • CBD
  • Crypto
  • Education
  • Entertainment
  • Fashion
  • Finance
  • Health
  • Home Improvement
  • Law \ Legal
  • News
  • Shopping
  • Sports
  • Technology
  • Travel

Subscribe to Updates

Get the latest creative news from FooBar about art, design and business.

What's Hot

SBI, ICICI Bank, Kotak Bank, AU Small Finance Bank can give up to 46% return; should you buy?

July 5, 2022

Core Scientific Sold Most of its Bitcoin Holdings in June

July 5, 2022

Wealth Guide: Real Estate – 5-point guide by expert for buying right home for your family

July 5, 2022
Facebook Twitter Instagram
E Amazings
  • Home
  • Automotive
  • Business
  • CBD
  • Crypto
  • Education
  • Entertainment
  • Fashion
  • Finance
  • Health
  • Home Improvement
  • Law \ Legal
  • News
  • Shopping
  • Sports
  • Technology
  • Travel
Facebook Twitter Instagram
E Amazings
You are at:Home»Technology»Animate Arcane Protocols With Interrupt-Backed Bitbanging
Technology

Animate Arcane Protocols With Interrupt-Backed Bitbanging

Paul EasterBy Paul EasterJune 19, 2022No Comments2 Mins Read
Facebook Twitter Pinterest LinkedIn Tumblr Email
Share
Facebook Twitter Pinterest WhatsApp Email


We often take our “SoftwareSerial” libraries for granted, and don’t investigate what goes on under the hood — until they fail us, at least. Would you like to learn how to harness the power of interrupt-driven bitbanging? [Jim Mack] teaches us how to make our protocol implementations fly using the LTC protocol as a springboard.

LTC (Linear/[Longitudinal] TimeCode) is a widely-used and beautifully-crafted protocol that tends to fly under our radar, and is one that hackers could learn plenty from. It’s used for synchronization of audio/video devices during media production and playback. LTC’s signal is almost digital but not quite: it doesn’t need a clock, and it has no polarity. Additionally, it mimics an audio signal really well, you can decode it at any playback speed, and many other benefits and quirks that [Jim] outlines. You do need to maintain the timings, though, and [Jim]’s article shows us how to keep them right while not inconveniencing your primary tasks.

Using interrupts means that your main loop gets to do other things, effectively letting you run different kinds of tasks in the background. [Jim] implements an LTC protocol transmitter using interrupts fired off at a defined frequency, doing LTC data processing in the main loop, and the time-critical GPIO wiggling from inside the interrupt handler code. He explains the code structure and the nuances along the way, and in the end, even provides us with source code of a highly capable and configurable LTC transmitter project for us to study and reuse. Be it RF transmitter bitbanging, IR remote signal reception, UART emulation, or any other protocols your MCU lacks peripherals for, this is where you learn to get it working.

In [Jim]’s previous article, he’s gone to great lengths explaining the fundamentals of precision and accuracy, then putting these theories into practice again, using an ATMega. In the next write-up of this series, he would like to create an LTC decoder, teaching us even more about properly using interrupts for timing-sensitive tasks. We can’t wait!



Source link

Paul Easter

Related Posts

The Warm Glow Of A Luminous Clock

By Paul EasterJuly 5, 2022

Hacker Camps Post-Pandemic, Electromagnetic Field 2022

By Paul EasterJuly 5, 2022

Tiny Berlin Clock Replica Also Counts Seconds

By Paul EasterJuly 5, 2022

Companies Rumored To Harvest Washing Machines For ICs

By Paul EasterJuly 5, 2022
Add A Comment

Comments are closed.

Our Picks

SBI, ICICI Bank, Kotak Bank, AU Small Finance Bank can give up to 46% return; should you buy?

By Paul EasterJuly 5, 2022

Core Scientific Sold Most of its Bitcoin Holdings in June

By Paul EasterJuly 5, 2022

Wealth Guide: Real Estate – 5-point guide by expert for buying right home for your family

By Paul EasterJuly 5, 2022
Recent Posts
  • SBI, ICICI Bank, Kotak Bank, AU Small Finance Bank can give up to 46% return; should you buy? July 5, 2022
  • Core Scientific Sold Most of its Bitcoin Holdings in June July 5, 2022
  • Wealth Guide: Real Estate – 5-point guide by expert for buying right home for your family July 5, 2022
  • The Warm Glow Of A Luminous Clock July 5, 2022
  • UP TGT, PGT Recruitment 2022: Last date of application for 4163 posts extended, check official notification and full details here July 5, 2022
  • Good news for Textile importers! Government extends exemption of import duty and agri cess till 31 October July 5, 2022
  • Videsh Mey Nivesh Ke Pathshala: Want to invest in foreign markets? Anil Singhvi explains how to do it July 5, 2022
Archives
  • July 2022
  • June 2022
Facebook Twitter Instagram Pinterest TikTok
  • Home
© 2022 E Amazings - All Rights Reserved.

Type above and press Enter to search. Press Esc to cancel.