Skip to main content

SLG47004

Programmable Mixed-Signal Matrix with In-System Programmability and Advanced Analog Features

slg47004

AnalogPAK Programmable Mixed-Signal IC with Operational Amplifiers, Digital Rheostats, EEPROM and a Wide Set of Analog and Digital Macrocells

The SLG47004 builds upon the flexibility of the GreenPAK’s traditional mixed-signal solution by integrating a mix of advanced analog features including Op Amps with programmable bandwidth, 10-bit digital rheostats, analog switches, and a chopper analog comparator. The unique Auto-Trim feature highlights the ability of this GreenPAK device to periodically tune its rheostat value to either compensate for system error sources or reconfigure circuit parameters. The SLG47004 provides dynamic power down control for all analog and digital blocks to optimize power consumption performance. Common applications include sensor interfaces, ADC analog front-ends, configurable amplifiers, tunable filters, and a variety of other analog circuits. This multi-time programmable solution is built into a tiny 3 mm x 3 mm package.

Lifecycle status

● Active

Macrocells Overview

Two General Purpose Op Amps with Configurable Bandwidth

  • Instrumentation Amplifier Mode Including 3rd Internal Op Amp

Two 10-bit 100kΩ Digital Rheostats with Optional Potentiometer Mode

Two SPST Analog Switches

Three Analog Comparators

  • Two Low Power General Purpose Rail-to-Rail Analog Comparators (ACMPxL)
  • One Low Offset Chopper Comparator

Three Oscillators (OSC):

  • 2.048 kHz Oscillator;
  • 2.048 MHz Oscillator;
  • 25 MHz Oscilaltor;

Thirteen Combination Function Macrocells

  • Three Selectable DFF/LATCH or 2-bit LUTs
  • One Selectable Programmable Pattern Generator or 2-bit LUT
  • Seven Selectable DFF/LATCH or 3-bit LUTs
  • One Selectable Pipe Delay or Ripple Counter or 3-bit LUT
  • One Selectable DFF/LATCH or 4-bit LUT

Seven Multi-Function Macrocells

  • Six Selectable DFF/LATCH or 3-bit LUTs + 8-bit Delay/Counters
  • One Selectable DFF/LATCH or 4-bit LUT + 16-bit Delay/Counter

I2C Serial Communication Interface

Analog Temperature Sensor

2-kbit (256 x 8) I2C-Compatible (2-Wire) Serial EEPROM Emulation with Software Write Protection

Power On Reset (POR)

Features

User-defined Auto-Trim Procedure for Two Independent Analog Channels

Event-triggered Memory Self-programming Routine for Digital Rheostats

In System Programmability

Multiple Time Programmable Memory

Configurable Power Down Option for All Analog and Digital Macrocells

Wide Range Power Supply

2.5 V (±4%) to 5 V (±10%)

Low Current Consumption

Operating Temperature Range: -40°C to 85°C

RoHS Compliant / Halogen-Free

Applications

Pressure Sensor Interfaces

Photodetector Interfaces (Transimpedance Amplifiers, TIA)

FSR (Force Sensitive Resistor) Sensor Interface

PGA (Programmable Gain Amplifiers)

InAmp (Instrumentation Amplifiers)

Sample & Hold Circuits

Portable and Handheld Electronics

Home Appliances and IoT

Robotics

Other Consumer and Industrial Electronics

Packages and Ordering

SLG47004V: STQFN-24 (3.0 x 3.0 x 0.55 mm, 0.4 mm pitch)

The product ID suffix indicates the package style.

Stay connected

Get in touch with us directly through our worldwide sales offices, or contact one of our global distributors and representatives.

Inquiries Distributors and Representatives Register for newsletters
GreenPAK Designer (included in Go Configure™Software Hub)
Name Date Version
Go Configure™Software Hub for Windows, macOS or Linux(7.58 KB)
Datasheets
Name Date Version
SLG47004 Datasheet (13.08 MB) 12/10/2021 2.5
Errata
Name Date Version
SLG47004 Errata (309.19 KB) 12/02/2021 1.1
Application notes
Name Date Version
AN-CM-307 Analog Front End for Heart Rate Monitor(967.14 KB) 03/11/2020 1.0
AN-CM-308 Analog Front End for a Pressure Sensor(1.21 MB) 03/11/2020 1.0
AN-CM-309 Tracking ADC(696.26 KB) 03/11/2020 1.0
AN-CM-310 Adjustable Analog Filter(631.76 KB) 18/11/2020 1.0
AN-CM-311 Low-Power Button Replacement with Force-Sensitive Resistor(1019.53 KB) 01/01/2021 1.0
AN-CM-320 Potentiometer Controlled by an Encoder(477.76 KB) 25/08/2021 1.0
AN-CM-324 Adjustable Analog Sine - Square Wave Oscillator(1.46 MB) 07/10/2021 1.0
AN-CM-326 Analog Front-End for Electrocardiogram Monitor(716.86 KB) 08/10/2021 1.0
AN-CM-328 16-bit Sigma-Delta ADC(511.79 KB) 23/11/2021 1.0
PCB libraries
Name Date Version
GreenPAK Altium Library (6.8 MB) 31/08/2021 4.0
GreenPAK Eagle Library (25.65 KB) 06/11/2020 012
GreenPAK OrCAD Library (319.31 KB) 06/11/2020 17.2
User guides and manuals
Name Date Version
GSD Quick Start Guide (181.06 KB) 23/10/2020 1.0
SLG47004 In-System Programming Guide (606.42 KB) 09/11/2020 1.0
SLG47004V DIP Proto Board Quick Start Guide (721.39 KB)
UM-GP-004: GreenPAK Serial Debugger (591.05 KB) 26/10/2020 1.0
UM-GP-005: Advanced Analog GreenPAK Evaluation Board (1.28 MB) 08/09/2021 1.1
RoHS and Reach
Name Date Version
Dialog Environmental Statement for IC Products (1.06 MB)
Webinars
Name Date Version
5 Configurable Mixed-Signal Webinar Presentation (1.87 MB) (Registered users only)
Video thumbnail, click to open and play

Analog GreenPAK™ Webinar

Video thumbnail, click to open and play

5 Configurable Mixed-Signal Webinar

Video thumbnail, click to open and play

GreenPAK Configurable Mixed-signal IC Introduction

Video thumbnail, click to open and play

GreenPAK Designer Software

Video thumbnail, click to open and play

GreenPAK Development Platform

Video thumbnail, click to open and play

Choosing the Right GreenPAK

View the full list of the GreenPAK videos in our Training Video Library.

This product is available in one package:

SLG47004V: STQFN-24 (3.0 x 3.0 x 0.55 mm, 0.4 mm pitch)


Development board selector

GreenPAK Development Board

Provides full programming, emulation and testing functions for GreenPAK devices. For use with SLG46xxxX-SKT sockets kits.

Working in tandem with the GreenPAK Designer software, GreenPAK Advanced Development Board allows designers to:

  • Program custom samples in minutes
  • Test GreenPAK projects in-circuit
  • Develop using any GreenPAK device
Suitable for:
  • Programming
  • Emulation
  • Signal and Logic Generators
Features:
  • USB interface
  • MacOS, Windows and Linux compatible
  • Programming and Emulation
  • Gated expansion header for connection to external test equipment
  • Integrated signal and logic generators
  • LEDs for visual indication
GreenPAK Advanced Development Board
This item is out of stock.
$99.00
Recommended add-ons:
SLG47004V-SKT
$35.00
SLG47004V Evaluation Board
$18.00
DIP

Perfect for breadboarding and fast prototypes.

Working in tandem with the GreenPAK Designer software, GreenPAK DIP Development Board allows designers to:

  • Program custom samples in minutes
  • Test GreenPAK projects in-circuit
Suitable for:
  • Programming
  • Emulation
Features:
  • USB interface
  • MacOS, Windows and Linux compatible
  • Programming and Emulation
  • Gated expansion header for connection to external test equipment
GreenPAK DIP Development Board
$29.99
Recommended add-on:
SLG47004V-DIP

maximum 2 DIPs per order

$1.25
SLG4DVKISP

GreenPAK Development Board for Serial Debugging and In-System Programmability.

  • Can support serial debugging for all GreenPAK parts with I²C
  • Serial programming for SLG46824, SLG46826, and SLG47004
  • Very helpful in late stages of development when doing debug on-board is easiest
GreenPAK Serial Debugger Board (GSD)
This item is out of stock.
$28.75
GreenPAK Development Board

GreenPAK Advanced Development Board

Provides full programming, emulation and testing functions for GreenPAK devices.
  • Programming
  • Emulation
  • Signal and Logic Generators
GreenPAK Advanced Development Board
This item is out of stock.
$99.00
Recommended add-on:
SLG46116V-SKT
$35.00
DIP

GreenPAK DIP Development Board

Perfect for breadboarding and fast prototypes.

Working in tandem with the GreenPAK Designer software, GreenPAK DIP Development Board allows designers to:

  • Program custom samples in minutes
  • Test GreenPAK projects in-circuit
  • Programming
  • Emulation
GreenPAK DIP Development Board
$29.99
Recommended add-on:
SLG46116V-DIP
$1.25
SLG4DVKISP

GreenPAK Serial Debugger Board (GSD)

GreenPAK Development Board for Serial Debugging and In-System Programmability.

  • Can support serial debugging for all GreenPAK parts with I²C
  • Serial programming for SLG46824, SLG46826, and SLG47004
  • Very helpful in late stages of development when doing debug on-board is easiest
GreenPAK Serial Debugger Board (GSD)
This item is out of stock.
$28.75

Other components

SLG47004

GreenPAKTM Programmable Mixed-signal Matrix with In System Programmability. 2 Op Amps (In Amp mode including internal Op Amp), 2 100k 10-bit digital rheostats, 8 GPIO, 3 ACMPs, 2 SPST analog switches, 20 LUTs (max.), 7 CNT/DLY (max.), 18 DFF/LATCH (max.), EEPROM, I2C, and other Macrocells. Package: STQFN-24.

SLG47004V (un-programmed)
$0.75
SLG47004

GreenPAKTM Programmable Mixed-signal Matrix with In System Programmability. 2 Op Amps (In Amp mode including internal Op Amp), 2 100k 10-bit digital rheostats, 8 GPIO, 3 ACMPs, 2 SPST analog switches, 20 LUTs (max.), 7 CNT/DLY (max.), 18 DFF/LATCH (max.), EEPROM, I2C, and other Macrocells. Package: STQFN-24.

SLG47004V (programmed)
$0.80
SLG47004V-SKT

Included: SLG4SA24AA-30x30 socket adapter, 20 SLG47004V samples.

SLG47004V-SKT
$35.00
SLG47004V-DIP

20-pin DIP Proto Board*. Perfect for breadboarding and fast prototypes.

*requires the GreenPAK DIP Adapter (SLG4SA-DIP) to use it with the GreenPAK Advanced Development Board.

SLG47004V-DIP

maximum 2 DIPs per order

$1.25
SLG4SA-DIP

GreenPAK DIP Adapter for GreenPAK Advanced Development Board. Allows the use of the SLG46xxxV-DIP Proto boards with the GreenPAK Advanced Development Board. Acts as the bridge between Advanced and DIP Development Platforms.

SLG4SA-DIP
$2.00
SLG47004V Evaluation Board

Evaluation Board for SLG47004. Designed to prototype basic analog configurations of SLG47004 with user-defined parameters.

SLG47004V Evaluation Board
$18.00
Back to results

GreenPAK and GreenFET

2 months ago

I2C to control pin as GPIO

Posted by devgit 130 points 10 replies
0 upvotes

Hello, I using a SLG46536 to output to I2C to 8 output pins, which leaves a spare input pin and a spare IO pin. I can use I2C to read the spare pins, but can the IO pin be made into a GPIO pin?

I have tried connecting the pins OE and IN to an LUT2, which can be programmed as NOR/OR, but I am not sure if the unconnected LUT inputs are logic 0 or floating? or can the LUT inputs be connected to ground or VDD?

Is this feasible? or is there a better way to do this?

Regards

John.

2 months ago

olehs

Hi devgit, 

Could help me to understand do you want to read the state of input PINs? If yes, then, you can do it using I2C, use register 0xF0, 0xF6, 0xF7 to read the PINs. 

If LUT is unconnected visually to any block it means that it has an internal connection to GND, there is not floating state inside the GreenPAK.

There are several ways, either you can reconfigure the LUT's truth table, or write the connection from LUT to PIN. Using NVM viewer in GPD you can check which bits were changed, hope it will help you to move on. 

Best regards, 

Oleh Sapiha

2 months ago

Hi Oleh,

 

Thanks for your help. I am just looking to make these parts as flexible useful as possible in our design for potential uses or upgrades, so yes reading pins and I have done that sucessfully.

I have connected two LUT to the OE and IN of one unused pin and then changed the LUT truth table to OR or NOR to toggle the pin between output and input, and the output logic level.

But maybe I can just change the output pin function by changing the pin function register, and route VDD/GND to the IN to set the pins logic level. I can see that can be done graphically, so I am currently investigating how that routing works. Do you have any tips on where that information is in the documentation?

 

Regards

 

John.

 

 

2 months ago

Hi Oleh,

 

I think I have this figured out now. But I am concerned that so much is re-configurable by command (including the I2C pins) that there is a possibility that data corruption could accidentally lock out the device from further I2C commands. If the I2C macrocell/pins configution remains entact, then a reset command could be issued. But what if the I2C pins have been reconfigured in error? Is there a way to read only protect just the I2C?

The only way I can see to protect I2C but still allow an LUT to be written, is to choose an LUT (address) that is located in bank 3, and then make banks 0/1/2 read only, although this would not allow any pins to be reconfigured. Would you agree with that?

 

Regards

 

John.

 

 

2 months ago

olehs

Hi devgit, 

You should be careful when using I2C since by rewriting the registers you can change almost anything, even damage the chip. 

If you choose "Locked for write bits <1535:0>" you will be able to write some LUTs as specified in Bank3, but the bank 0-2 be only read.

Best regards, 

Oleh Sapiha

2 months ago

Hi Oleh,

Thanks, that makes sense. Just tried it and it seems to work fine with bank0/1/2 locked.

Just a couple of final queries on this chip :-

On the datasheet for SLG46536 for register E6 1847:1840 it says "16-bit Pattern ID Byte 0 (From NVM): ID[23:16]", but this is only 8 bits? is there an ID Byte 1 to go with this ?

Also, on the GreenPAK Designer (6.27, build 001) the rule checker shows some warning messages I cant understand (see photo.

The warning are correct, as the LUT inputs are not connected (I toggle the truth table by I2C command). But I dont understand the Fail, they are configured as OR on Greenpak Designed and they have valid logic tables.

The "notes" refers to the 2-bit LUTs that are not used anymore in the project (I removed them). So I dont know what "settings different from default" means? (photo shows 2-bit LUTs not selected)

 

Regards

John.

 

Attachment Size
GreenPAK components list.png 15.79 KB
GreenPAK designer rule checker.png 27.65 KB

2 months ago

olehs

devgit, 

The rest bits of Pattern ID corresponds to other service bits like metal hard code, metal revision, base die, and so on. They are internal bits that give the information about the silicon and it is not possible to change them. 

When the component with a non-default setting is hidden from the workspace or present on the workspace but unused, the Rule Checker warns you about that. Reset these blocks by clicking the right button → Reset macrocell → Reset all. In your case, it is not critical, but sometimes the hidden blocks (like counters) can Force On the OSC which leads to increased current consumption. That's why we recommend resetting those blocks to default. Also when the block is unconfigured or has some strange settings the Rule checker can remind you about that. 

 

 

2 months ago

Hi Olehs,

Thanks, I have done that and the warnings have gone.

So, what sort of (incorrect) reconfigure could destroy the chip? Is there anything in the bank 3 that coud be so catastrophic? or do you think it should be safe with just that bank alone as writable?

Regards

John.

 

2 months ago

olehs

devgit, 

It's hard to say which combination changed by I2C can destroy the chip. If you use I2C write command carefully everything must be ok. Just don't write anything to unknown resisters. 

Best regards, 

Oleh Sapiha

 

 

2 months ago

Hi Olehs,

Yes I know what you mean, I am just thinking if the bits going over I2C get corrupted, then its out of our hands what data goes to the Greenpak chip.

But I guess the chance of any random data being destructive is very low. I have set the SDA and SCK for schmitt trigger to make them more noise tolerant, but I wondered why that was not set as default for the I2C lines on this macro?

 

My company Watchgas have asked if you have the data for thermal resistance R(ja) junction to ambient for this chip as this information is not in the data sheet. We need this data for our product compliance as we are in the gas safety industry.

Also, do you have data on the power consumption of the I2C macro cell?

 

Regards

John.

2 months ago

olehs

devgit, 

Taken into account regarding DI with ST. Thanks for the suggestion. 

You are right that there is no info about R(ja) for this chip. You could use R(ja)=99°C/W, it was taken from a chip that has a similar package, so the value should be very close. 

If you go to the DS you'll see that chip quiescent current consumption will be equal 0.45uA at 1.8V VDD, 0.75uA at 3.3V VDD, 1.12uA at 5.0V VDD, including I2C macrocell current consumption.

Best regards, 

Oleh Sapiha