feature article
Subscribe Now

Attack of the Tiny Terrors

Microchip’s Small, Cheap PIC16 MCUs Prove There’s Life in 8-bitters

Just when you thought it was safe to go back into the lab…

The chip designers at Microchip must have a lot of time on their hands. Either that, or the company keeps several design teams working in parallel. Whatever the process, these guys keep cranking out new microcontrollers faster than we can keep track of them.

Exhibit A is the new batch of 8-bit (sort of) MCUs called the PIC16something-or-other. There’s no point in trying to memorize Microchip’s part numbers because they never make any sense anyway. Like Mercedes-Benz, the company long ago passed the point where the naming system follows any rational progression. But if you’re doing a Google search, you’ll want to look up PIC16F1703 through PIC16F1719, or PIC16LF1703–19. Oh, never mind.

These are 8-bit MCUs (sort of), so don’t let the number 16 in the part number fool you. Oh, sure, Microchip also makes 16-bit MCUs, but they’re called PIC24 – obviously. The company also has other existing lines of 8-bitters, but they’re called PIC10, PIC12, and PIC18 – as you would expect. They even make other components in the PIC16 family, but they’re different. It’s the 16x17x combination that you’re looking for here. Perhaps it’s some elaborate form of cryptography meant to thwart corporate espionage.

The bits that we care about are the new configurable-logic elements, the new analog components, and the new (sort of) pin configurability. All of these goodies conspire to move the new PIC16(L)F17xx parts closer to the one-chip-does-it-all ideal. And they get pretty close. And did I mention that the price starts at just $0.59?

First up: The configurable logic. For all you FPGA aficionados out there… this isn’t an FPGA. Whereas Xilinx and Altera offer a “sea of gates” in their devices, this is more like a small puddle of gates. You can count them on one hand. Four, to be exact. Still, it is pretty nifty. Each of the four configurable logic cells (CLCs) can be configured to be a D-, RS-, or JK flip-flop (yes, one flop), or it can become a simple Boolean logic gate (AND, OR, etc.). That’s all it does. But speaking as someone who’s put a 50-cent logic gate right next to a $200 microprocessor because I needed that one extra gate, I can honestly say that this is a useful feature.

The CLC’s simplicity belies its effectiveness. Its best and highest use is in eliminating hardware interrupts to the processor. If all you want to do is toggle an LED or switch a pin output on some event, you can totally eliminate the (admittedly simple) code required to do this by handling it with the CLCs. That means no software, no interrupt, and no latency. It’s a back-to-basics approach to logic functions that many programmers have overlooked. The user-defined flip-flops and logic gates embodied in the PIC16Fwhatever will play an outsized role in their success, methinks.

Moving on to the analog stuff, the new chips include two op amps, a 10-bit ADC, a 5-bit DAC, an 8-bit DAC, and a new zero-cross-detection (ZCD) circuit. Like the CLC, the ZCD is a small bit of internal hardware that can save you a lot more external hardware. With nothing more than an external current-limiting resistor, you can hook up 220V AC directly to the chip and not destroy it. That lets you sense when the AC voltage crosses zero so you can switch triacs more efficiently, or just keep track of the time (assuming a regular 50/60-Hz input).

These new MCUs also sport something called a complementary output generator (COG), which is kind of like an inverter for analog signals, and a numerically controlled oscillator (NCO), which is sort of the opposite of a PWM. Whereas PWMs vary their duty cycle (pulse width) but keep a constant frequency, the NCO varies its frequency but maintains a constant 50% duty cycle. A simple frequency generator, then. In a 59-cent part.

Finally, there’s the pin configurability. Plenty of Microchip devices let you tweak the pin assignment on a few of their I/O pins, but the new PIC16Ffoobar parts let you reassign all the digital pins. If you’re unhappy with the default pinout, or just have an oops! on your circuit board, you can reassign the pins to suit your PCB layout.

As far as the normal stuff goes, the new PIC16blahblah chips have the now-familiar Microchip PIC16 processor core that has been around for a few years. It’s an 8-bit (sort of) design with a 14-bit instruction word but 8-bit registers. The PIC16 line isn’t new, so it’s well supported by Microchip’s software tools. And, as with most MCUs, the chips can be had with varying amounts of ROM and RAM, from 3500 bytes of the former and 256 bytes of the latter, to 28K/2K configurations. In its simplest form, the PIC16F1703 fits in a 14-pin package and lists for just $0.59 in 10K quantities.

That’s a lot of goodness in a small package, and with a small price tag. There are almost a dozen variations planned, with more probably on the way. Hurry up and pick yours before the company runs out of part numbers. 

3 thoughts on “Attack of the Tiny Terrors”

  1. Don’t worry – by the time Microchip gets anywhere near to running low on part numbers, they will have integrated a fractional part number converter circuit on-chip. 🙂

    The CLC is a nice addition, though they are hardly the first with something like that. The Cypress PSOC chips have had programmable peripheral logic cells (including analog capability) for a long time.

  2. Very true. And Actel (now Microsemi) has something similar. Farther back, Scenix did all of its peripherals in software; there were no “real” peripherals at all, just code.

  3. I will say I have appreciated some of the bits of “glue” microchip has included in some of the processors. Coupled with the relatively high output drive capability, and some PICs (the nnHVxxx flavors) with a built-in shunt regulator, it can really help keep parts count down – nice for a consumer hobby-oriented product I’m working on, with a downright tiny circuit board.

Leave a Reply

featured blogs
Apr 19, 2024
In today's rapidly evolving digital landscape, staying at the cutting edge is crucial to success. For MaxLinear, bridging the gap between firmware and hardware development has been pivotal. All of the company's products solve critical communication and high-frequency analysis...
Apr 18, 2024
Are you ready for a revolution in robotic technology (as opposed to a robotic revolution, of course)?...
Apr 18, 2024
See how Cisco accelerates library characterization and chip design with our cloud EDA tools, scaling access to SoC validation solutions and compute services.The post Cisco Accelerates Project Schedule by 66% Using Synopsys Cloud appeared first on Chip Design....

featured video

MaxLinear Integrates Analog & Digital Design in One Chip with Cadence 3D Solvers

Sponsored by Cadence Design Systems

MaxLinear has the unique capability of integrating analog and digital design on the same chip. Because of this, the team developed some interesting technology in the communication space. In the optical infrastructure domain, they created the first fully integrated 5nm CMOS PAM4 DSP. All their products solve critical communication and high-frequency analysis challenges.

Learn more about how MaxLinear is using Cadence’s Clarity 3D Solver and EMX Planar 3D Solver in their design process.

featured chalk talk

Achieving High Power Density with IGBT and SiC Power Modules
Sponsored by Mouser Electronics and Infineon
Recent trends in the inverter market have made high power density, scalability, and ease of assembly more important than ever before. In this episode of Chalk Talk, Amelia Dalton and Abraham Markose from Infineon examine how Easy & Econo power modules from Infineon can help solve common inverter design requirements. They explore the benefits and construction of these modules and how you can take advantage of them in your next design.
May 19, 2023
36,883 views