A single LIN controller that is master or slave, chosen at run time
The Zen LIN controller is a LIN 2.x / ISO 17987 / SAE J2602 body-bus controller for automotive and vehicle-adjacent SoCs. One instance does both jobs: as a master it drives the frame schedule; as a slave/responder it auto-bauds to the master and publishes or subscribes per frame ID — the role is a run-time setting, not two separate blocks. It is for integrators building door, seat, climate, lighting and sensor sub-buses who want a verified digital controller and a standard off-chip transceiver. Every value below is from the product datasheet or marked TBC.
1. The LIN controller in one paragraph
A LIN frame is a header (break + sync + PID) sourced by the bus master, followed by a response (1 to 8 data bytes plus a checksum) sourced by whichever node owns that frame. The Zen LIN controller implements both ends of that exchange in one block. As master it generates the header, then either sends the response itself or listens for a slave's response and checks it — and a built-in schedule table walks a programmed sequence of frames autonomously, no per-frame software. As slave/responder it detects the break, auto-bauds from the sync field to learn the master's exact rate, checks the PID parity, and per a small per-ID table either publishes a pre-loaded response or subscribes and stores the received one. The single-wire 12 V LIN physical layer lives off-chip: the controller presents a clean tx / rx pair to a standard LIN transceiver.
- Zen LIN controller
- host SoC / LIN bus
- schedule + slot tables
2. What it is, at a glance
| Feature | Detail | Status |
|---|---|---|
| Master role | generates break + sync + PID; sends or listens for the response | exists |
| Slave / responder role | auto-bauds, checks PID, publishes or subscribes per ID | exists |
| Run-time role select | master vs slave is a control-register setting | exists |
| Slave auto-baud | learns the master's bit rate from the sync field | exists |
| Response payload | 1 to 8 data bytes + checksum byte | exists |
| Checksum | classic (data) and enhanced (PID + data, LIN 2.x), selectable | exists |
| Master schedule table | 4 entries, walked one-pass or looping, autonomous | exists |
| Per-ID slave slots | 4 publish/subscribe slots; unconfigured IDs ignored | exists |
| Error detection | bit, checksum, framing, no-response-timeout, PID-parity | exists |
| Interrupt | one aggregated, maskable interrupt line | exists |
| LIN bit rate | 1–20 kbps, typically 19.2 kbps | exists |
| Diagnostic frames (ISO-TP) | slow 0x3C / 0x3D transport | roadmap |
| Max bit rate at a given clock | set by core clock ÷ divider | TBC |
Sources: Zen LIN product datasheet; as-built RTL.
3. How a client uses it
- Instantiate the controller and connect its register interface to your on-chip bus; wire its transmit/receive pair to a standard off-chip LIN transceiver.
- Pick the role — set master or slave in the control register, choose the checksum type, and set the bit rate (master) or let the slave auto-baud.
- As master, drive frames — issue headers and responses directly, or load the schedule table and let it walk a frame sequence on its own.
- As slave, respond per ID — load the publish/subscribe slots; the controller answers the IDs it owns, stores subscribed responses, and ignores the rest.
- Watch status and interrupts — one aggregated interrupt flags header-received, frame-complete and the error conditions for your handler.
4. Verification & provenance
- Compliance-checked on the wire: 14 of 14 assertion-based tests pass (9 master, 5 slave/schedule), including break length, sync value, PID parity across IDs, both checksum types, auto-baud from a deliberately-wrong divider, subscribe checksum errors, and schedule ordering.
- Two signoff gates: functional verification and synthesis both clean (no inferred latches, no multi-driver), with an independent re-run on a fresh testbench copy.
- Standards: LIN 2.x, ISO 17987 and SAE J2602 frame structure, PID parity and both checksum variants are implemented; the digital data-link layer is in-scope and the single-wire physical layer is off-chip.
Sources: Zen LIN product datasheet; as-built RTL.