DSP, Micros & Memory


A chameleon in the world of microcontrollers - Part I

16 July 2003 DSP, Micros & Memory Access Control & Identity Management

So, in a world where the leading manufacturers offer huge families of microcontrollers boasting every combination of peripheral options, bells and whistles, why do we need another one?

Cypress Microsystems has turned the tables on the whole process of choosing a microcontroller. Its PSoC (Programmable System on a Chip) microcontroller breaks away from the traditional menu-based micro world in that not only are the peripherals programmable, but the way in which they are used is re-configurable dynamically! The PSoC can change its personality and functionality on the fly.

With microcontrollers pervasive in our daily lives, the problem that confronts the engineer is clear: to choose a microcontroller that fits his/her particular requirements perfectly.

The most common solution by the semiconductor vendors is to provide the engineer an endless list of part numbers each of which describes a fixed set of peripherals, ie, timers, UARTs, ADCs etc. The typical solution is to choose a microcontroller that nearly fits the application. At the same time, there is the situation where a peripheral, such as a UART, is only used rarely during the lifetime of the product. An example of this is a UART that may only be used for field downloads. It would be efficient if the microcontroller had the ability to create a UART out of the resources that it has available, when needed. Once the field download was completed the micro could reconfigure itself and use the resources that it used to construct the UART for its day-to-day function.

This sounds too good to be true; a microcontroller that can 'morph' from one set of functions to another on the fly - but that is the basis of the Cypress Solution.

The 'morphing' micro

The PSoC microcontroller consists of a CPU, Flash memory, SRAM and a set of low-level analog and digital elements that can be interconnected to create a multitude of peripherals. The interconnections are configured via registers accessible by the CPU. This flexibility has the added bonus of dynamic configurability; changing the peripheral mix under the control of the firmware.

The PSoC core is an array of digital and analog PSoC Blocks. These blocks are the low level elements that can be connected together and configured to build User Modules. A User Module is the Cypress Microsystems terminology for a function analogous to an on-chip peripheral. The low level elements that make up User Modules consist of Digital Blocks and Analog Blocks.

Digital blocks

There are eight Digital PSoC Blocks in every microcontroller. Of the eight there are two types, the Basic Type A and the Communication Type A. Each type is an 8-bit wide digital resource. The blocks can be chained together to form wider bit widths and more complex peripherals such as timers, counters and pulse width modulators. Functions such as timers, counters, CRCs, and PRSs are available on Basic Type A blocks whereas UART and SPI communication functions are available on the digital Communications Type A blocks.

Analog blocks

There are 12 analog PSoC blocks in every microcontroller. Of the 12 there are three different types, the Analog Continuous Time Type A, the Analog Switched-Capacitor Type A and the Analog Switched-Capacitor Type B. These blocks are arranged in an array of three rows by four columns.

The continuous time type A analog block supports programmable gain or attenuation operational amplifier circuits, differential gain instrumentation amplifiers (using two continuous time blocks), continuous time high-frequency anti-aliasing filters and modest response-time analog comparators.

The Analog Switched-Capacitor Type A analog block supports delta-sigma successive approximation and incremental A/D conversion, capacitor DACs, and switched-capacitor filters. The block has three input arrays of binary-weighted switched-capacitors, allowing user programmability of the capacitor weights. This provides summing capability of two (CDAC) scaled inputs and a non-switched-capacitor input. Since the input of the switched-capacitor Block A has this additional switched-capacitor, it is configured for the input stage of a Switched-Capacitor Biquad filter. When followed by a switched-capacitor block B integrator, this combination of blocks can be used to provide a full switched-capacitor biquad.

The Analog Switched-Capacitor Type B analog block also supports delta sigma successive approximation and incremental A/D conversion, capacitor DACs, and switched-capacitor filters. It has two input arrays of switched-capacitors and a non-switched-capacitor feedback array from the output. When preceded by a switched-capacitor type A integrator, the combination can be used to provide a full Switched-Capacitor Biquad.

By combining the low level structures described above, Cypress provides the PSoC user with high-level peripherals called User Modules. These modules allow the user to simply drag and drop peripherals onto their PSoC system using the PSoC Designer Device Editor. The types of User Modules available are shown in Table 1.

Table 1
Table 1

The Table 1 list is simply those modules that are currently available with the PSoC Designer development tool that can be freely downloaded from the Web. User Modules can also be created by the user and added to the library. Once the User Module has been included in the PSoC design and compiled, the user is simply given the API (Application Programming Interface) calls to read or write to the module/peripheral. There are no registers to configure or any detailed set-up procedure - the User Module is ready for use.

As part of the compilation procedure, the firmware modules that are required to configure the PSoC to use the User Modules (peripherals) selected, are generated and are called on CPU boot up. These firmware calls are the key to the dynamic re-configurability of the PSoC in that, to change the peripherals of the PSoC, the user simply needs to call the relevant firmware module.

So how do we go about creating a real design with Cypress Microsystems' Programmable System on a Chip microcontroller? For that, you will have to wait for Part II of this article. If you cannot wait, contact the distributor on the details given below immediately.

For more information contact Simon Churches, Arrow Altech Distribution, 011 923 9600, [email protected]



Credit(s)



Share this article:
Share via emailShare via LinkedInPrint this page

Further reading:

Is your entrance security secure?
SMART Security Solutions Centurion Systems Technews Publishing News & Events Access Control & Identity Management Smart Home Automation
While Centurion Systems may be known as a leader in gate and door motors in 72 countries, the company has developed more than hardware and now offers an automation ecosystem for access control security.

Read more...
Converter power modules for 48 V networks
Altron Arrow Power Electronics / Power Management
The economic and quality-of-life benefits of electrification is driving the adoption of HV to 48 V DC-DC conversion across many markets with 48 V power modules becoming more common.

Read more...
How a vision AI platform and the STM32N6 can turn around an 80% failure rate for AI projects
Altron Arrow AI & ML
he vision AI platform, PerCV.ai, could be the secret weapon that enables a company to deploy an AI application when so many others fail.

Read more...
Memory for asset tracking
Altron Arrow DSP, Micros & Memory
The Page EEPROM, ST’s latest memory, has been designed for efficient datalogging and fast firmware upload/download in battery-operated devices.

Read more...
Engineered for high-reliability applications
Future Electronics DSP, Micros & Memory
The MCX E series of Arm Cortex-M4F and Arm Cortex-M7 microcontrollers from NXP are engineered for demanding industrial and IoT environments.

Read more...
NXP’s development platform guide
DSP, Micros & Memory
Choosing between the FRDM i.MX 93, FRDM i.MX 91 and FRDM i.MX 91S development platforms can be intimidating, but once designers understand how each platform aligns with their application’s requirements, the decision becomes straightforward.

Read more...
Continuum launches centralised access and identity management
News & Events Access Control & Identity Management Facilities & Building Management
Continuum Identity is a newly launched company in the identity management and access control sector, targeting the complexity of managing various Access and Identity Management (AIM) systems.

Read more...
Microchip and AVIVA Links collaboration
Altron Arrow News
Microchip and AVIVA Links have achieved groundbreaking ASA-ML interoperability, accelerating the shift to open standards for automotive connectivity.

Read more...
XJTAG launches two new Flash programmers
ASIC Design Services DSP, Micros & Memory
XJTAG has announced XJExpress and XJExpress-FPGA, a pair of Flash programmers perfect for development, debug and in-service applications.

Read more...
Expanded STM32WL3x line for IoT sensors
Altron Arrow Telecoms, Datacoms, Wireless, IoT
The STM32WL31x and STM32WL30x are more tailored versions of the STM32WL33x for designers who wish to focus on specific features, while lowering their bill of materials.

Read more...









While every effort has been made to ensure the accuracy of the information contained herein, the publisher and its agents cannot be held responsible for any errors contained, or any loss incurred as a result. Articles published do not necessarily reflect the views of the publishers. The editor reserves the right to alter or cut copy. Articles submitted are deemed to have been cleared for publication. Advertisements and company contact details are published as provided by the advertiser. Technews Publishing (Pty) Ltd cannot be held responsible for the accuracy or veracity of supplied material.




© Technews Publishing (Pty) Ltd | All Rights Reserved