Reinventing Tech With Bytes

Semiconductor Hardware & Software Development

We design easy-to-use and industry standard solutions with semiconductor chips, enabling the adaption of new technologies emerging from them

video showcase
ADC Peripheral of S32K144 MCU
Rohan Singhal

ADC Peripheral in S32K144

Explore about ADC Peripheral of Automotive MCU S32K1xx using ElecronicsV3 Board (S32K144 MCU) || ADC Channels || ADC HW&SW Triggering || ADC Pre Triggers || ADC relation with PDB and TRGMUX

Read More »

UART Peripheral in S32K144

Introduction –> UART Peripheral is one of the most common communication modules present in every series of microcontrollers. For Crisp and Short UART understanding as a concept, redirect yourself to this BLOG, it might take a couple of minutes to have an overlayed understanding. Now, UART is used in GPS modules or other wireless modules like Bluetooth and WiFi. GPS Modules- Use UART to exchange NMEA strings for positioning data. Bluetooth (e.g., HC-05)- Employs UART for wireless data transfer and pairing. Wi-Fi Modules (e.g., ESP8266, ESP32)- Use UART for sending AT commands and receiving responses. –> In S32K144, we’ll be referring to the UART as LPUART because the UART supported in S32K144 is a low-power UART called LPUART(Low Power Universal Asynchronous Receiver/Transmitter). –> NOTE: A single instance of UART contains a pair of a TX pin and an RX pin.  –> Below are mentioned table of LPUART instances supported in different series with highlighted sections of our development board:  Features of UART > Full-Duplex, standard Non-Return-to-Zero (NRZ) format Full-duplex: Communication happens in both directions at the same time. One device can send data while receiving data simultaneously. Yes, as you might be thinking about Half-Duplex Communication and it also exists where the channel can either send or receive data, but not both at the same time. At the same time, there also exists a last type of this which you might not think, that is Simplex Communication where only one-way communication is possible.  Standard Non-Return-to-Zero (NRZ) Format: Data is represented as high (1) or low (0) voltage levels. Voltage doesn’t return to zero between bits, ensuring efficient use of the signal without gaps.  > Programmable baud rates (13-bit modulo divider) Baud Rate: The baud rate is the number of signal changes or symbols transmitted per second in a communication system. For example, a baud rate of 9600 means 9600 bits are sent every second. Baud Rate in LPUART: In LPUART, a 13-bit counter generates the baud rate by dividing the LPUART clock. The division factor is set using the BAUD[SBR] register, with values ranging from 1 to 8191. The baud rate generator is always active when the transmitter or receiver is enabled, and for the transmitter, each character aligns with the next edge of the transmit bit clock. This ensures continuous operation despite minor errors. But there’s a catch that you might see in development, our IDE only gives some preset group of baud rates like 4800, 9600, 19200, 38400, 57600, 115200, 230400, 460800, and 921600, then “what is the use of this baud-rate generator?”. The generator’s role is to provide flexibility to derive these preset baud rates from the main LPUART clock. While only specific baud rates may be officially supported (due to hardware limits or design constraints), the generator’s configuration ensures these values can be accurately achieved by adjusting the divisor (SBR) and oversampling ratio (OSR), which improves accuracy by sampling each bit multiple times. We’ll be discussing the sampling technique in a further section.   > Transmission Functionality Now, we’ll be learning how characters are sent over LPUART where we’ll also learn different other features of LPUART. Below mentioned is the Block Diagram of LPUART Transmission: No need to worry by viewing this block diagram, after this go-through you’ll be able to teach others about this block diagram seamlessly.  Idle State and Configuration: The transmitter output (TXD) is idle at a logic high by default. To invert this behavior, set the CTRL[TXINV] bit. The transmitter is enabled by setting CTRL[TE], which queues a preamble (idle state) character. Data Transmission: Data is written to the transmit buffer via the DATA register. The transmit shift register (9–13 bits long based on configuration) sends a start bit, data bits, and a stop bit. In 8-bit mode, the shift register handles 1 start bit, 8 data bits, and 1 stop bit. Operation Flow: When the shift register is free, it fetches data from the transmit buffer and synchronizes it with the baud rate clock. The STAT[TDRE] flag is set, indicating readiness for new data. If no new data is available after sending the stop bit, the transmitter enters idle mode (TXD high). Disabling the Transmitter: Writing 0  CTRL[TE] doesn’t stop the transmitter immediately. Current activity (data, idle, or break character) must finish first. Sending Break and Queued Idle in LPUART(Feature offered by LPUART)–> Sending break and queued idle refers to transmitting a break character (a full character of logic 0) or an idle character (logic 1) to manage communication flow, often to signal the end of a message or to wake up sleeping receivers. These actions can be queued by setting control bits in the LPUART, ensuring proper synchronization and transmission. Break Characters: A break character forces the TX line to logic 0 for a full character time (9–12 bits, including start and stop bits). For a longer 13-bit break, set STAT[BRK13]. To send a break: Wait for STAT[TDRE] (Transmit Data Register Empty) to ensure the last character has been shifted out. Set CTRL[SBK] to 1, then clear it to 0. This queues a break for transmission. If CTRL[SBK] remains 1, additional break characters will be queued automatically. Break characters received on RX are detected as all 0s with a framing error (STAT[FE] = 1). Alternative Break Transmission: Writing to DATA with bit 13 set and all data bits cleared can send a break as part of the data stream. This method also works with DMA to transmit a break character. Idle Characters: An idle character (logic 1 for a full character time) can wake up sleeping receivers during idle-line wakeup. To send an idle character: Wait for STAT[TDRE]. Clear and then set CTRL[TE]. This queues an idle character. The transmitter holds TXD high until the queued idle is sent. Alternative Idle Transmission: Writing to DATA with bit 13 and all data bits set can send an idle character as part of the data stream. DMA can also be used for idle transmission. Control Bits for Break Length: The length of break characters depends

Read More »
//Our Products: We Enable Semiconductor chips

for adapting different
technologies emerging from them

Unlock the power of semiconductor technology with us! Dive into our Semiconductor hardware kits, Semiconductor software tutorials, and engaging Embedded courses. Elevate your skills and drive innovation!

01

Explore and learn about Different Semiconductor chips based on different Semiconductor Companies

LEARN MORE
01

Semiconductor Chip Blogs

Semiconductor Chip Blogs
02

Explore and learn about Semiconductor chip technologies practically by engaging with our hardware kits based on different types of Semiconductor Hardware Solutions

LEARN MORE
02

Semiconductor Hardware Kits

Semiconductor Hardware Kits
03

Learn Semiconductor Chip technologies in a chronological and step by step tutorial manner to sharpen your skill sets

LEARN MORE
03

Semiconductor Software Courses

Semiconductor Software Courses

More Blogs

No more posts to show

NXP S32K344 MCU Chip Blogs

Automotive Protocols
Kunal Gupta

CAN Controller in Embedded

How does CAN Peripheral in Microcontroller work? In this blog get to know important concept of how CAN protocol is implemented in Microcontrollers

Read More »
CAN Bit TIming
Automotive Protocols
Rohan Singhal

CAN Bit Timing Explained

Discover how CAN bit timings are calculated for CAN Nodes while using CAN Technology. Knowledge of synchronization between ECU’s while doing Controller Area Network Communication.

Read More »
No more posts to show

Automotive Technologies

Automotive
Kunal Gupta

What is E/E Architecture in Automotive

Ever Though how electronics is implemented and arranged in a vehicle???? Explore this blog to get the Answer| ||| What is E/E Architectute || Domain Architecture || Zonal Architecture

Read More »

What is Autosar Technology?

All About Classic Autosar Technology at one place. From Its architecture layer to methodology to Companies and tools involved. All at one place

Read More »
No more posts to show
No more posts to show
About Company

Your one-stop platform for semiconductor chips

Welcome to Gettobyte!

Your all-in-one destination for understanding semiconductor chips. Explore our platform to learn how to use different chips effectively and effortlessly. Let’s dive into the world of semiconductors together!

Your Ultimate Semiconductor Hub! From eval kits to development boards, we’ve got you covered. Accelerate your product development with our industrial-grade solutions. Learn embedded software skills through our courses and blogs. Follow us on YouTube, Instagram, and Facebook for insightful chip knowledge!

Our Offerings

Check out our Portfolio

Discover our comprehensive portfolio, showcasing our services and products tailored for both newcomers in the semiconductor industry and established corporate entities seeking Embedded Solutions across various semiconductor chips and technologies.

Semiconductor Secrets

Master Semiconductors with Gettobyte!

Discover the Latest Technologies Enabled by Semiconductor Chips! Dive into our platform to uncover a wealth of content showcasing how to harness the power of semiconductor chips and build innovative solutions.

Industries and Technologies
That We Can Serve

Automotive
Automotive
Creating Robust Automotive ECUs with Autosaur Technology.
Edge AI
Edge AI
Add AI capbilities to your Embedded Products
Wireless and IoT
Wireless and IoT
Technologies to make your Embedded product Smart and connected.
Power and Energy
Power and Energy
Embedded Technologies that make this world sustainable to live in: Renewable Energy and Power
Medical Devices
Medical Devices
Embedded technologies that help us stay fit and monitor our health!
Avionics
Avionics
Explore Embedded technologies that make us fly on Air

For Expert Assistance and Learning, Subscribe to Us Today!

Learn with us

Stay Updated With Us

Error: Contact form not found.