Datasheet · 2018
ams OSRAM AS5600 12-bit Magnetic Rotary Position Sensor — Datasheet (v1-06)
Contactless angle sensor for a mounted (positional) gun's axes.
- magnetic encoder
- rotary position
- positional gun
Datasheet · 2018
Contactless angle sensor for a mounted (positional) gun's axes.
Important notice on ams-OSRAM documents As part of the acquisition of the non-optical analog/mixed -signal sensor portfolio from amsOSRAM by Infineon, Infineon is in the process of rebranding all relevant documents. Due to the large volume of documents, this process will be completed in phases. In the interim, we are providing access to legacy ams-OSRAM documents under the terms of a trademark license agreement. The attached document is a legacy ams-OSRAM document and has not been rebranded to reflect the acquisition by Infineon. Please note that: Infineon Technologies AG is the owner and provider of th e document and the products/services described therein, effective from 1 Ju ly 2026, the date of “closing ”. All terms and conditions, including but not limited to warranties, liabilities, and intellectual property rights, are now governed by Infineon's policies and agreements. All products described in these documents retain their original qualifications and certifications. Infineon confirms that no changes will be made to the products that would affect their compliance with relevant standards, regulations, or certifications. Contact: Infineon Technologies AG Am Campeon 1 -15 85579 Neubiberg Germany © 2026 Infineon Technologies AG All Rights Reserved. Email: [email protected] Product Document Published by ams OSRAM Group AS5600 12-Bit Programmable Contactless Potentiometer General Description The AS5600 is an easy to program magnetic rotary position sensor with a high-resolution 12-bit analog or PWM output. This contactless system measures the absolute angle of a diametric magnetized on-axis magnet. This AS5600 is designed for contactless potentiometer applications and its robust design eliminates the influence of any homogenous external stray magnetic fields. The industry-standard I²C interface supports simple user programming of non-volatile parameters without requiring a dedicated programmer. By default the output represents a range from 0 to 360 degrees. It is also possible to define a smaller range to the output by programming a zero angle (start position) and a maximum angle (stop position). The AS5600 is also equipped with a smart low power mode feature to automatically reduce the power consumption. An input pin (DIR) selects the polarity of the output with regard to rotation direction. If DIR is connected to ground, the output value increases with clockwise rotation. If DIR is connected to VDD, the output value increases with counterclockwise rotation. Ordering Information and Content Guide appear at end of datasheet. Key Benefits & Features The benefits and features of AS5600, 12-bit Programmable Contactless Potentiometer are listed below: Figure 1: Added Value of Using AS5600 Benefits Features • Highest reliability and durability • Contactless angle measurement • Simple programming • Simple user-programmable start and stop positions over the I²C interface • Great flexibility on angular excursion • Maximum angle programmable from 18° up to 360° • High-resolution output signal • 12-bit DAC output resolution • Selectable output • Analog output ratiometric to VDD or PWM-encoded digital output ams Datasheet [v1-06] 2018-Jun-20 Page 1 Document Feedback AS5600 − General Description Benefits Features • Low-power consumption • Automatic entry into low-power mode • Easy setup • Automatic magnet detection • Small form factor • SOIC-8 package • Robust environmental tolerance • Wide temperature range: -40°C to 125°C Applications The AS5600 is ideally suited for contactless potentiometers, contactless knobs, pedals, RC servos and other angular position measurement solutions. Block Diagram The functional blocks of this device are shown below: Figure 2: Functional Blocks of AS5600 VDD3V3 SDA SCL DIR Register Setting VDD5V I²C LDO 3.3V PGO OTP Hall Sensors Analog Front-End AFE PWM 12-bit A/D ATAN (CORDIC) Digital Processing and Filtering Driver OUT 12-bit D/A AGC Magnetic Core AS5600 GND Page 2 Document Feedback ams Datasheet [v1-06] 2018-Jun-20 AS5600 − Pin Assignments Pin Assignments Figure 3: SOIC-8 Pin-Out 1 8 DIR VDD3V3 2 7 SCL OUT 3 6 SDA GND 4 5 PGO AS5600 VDD5V Figure 4: Pin Description Pin Number Name 1 VDD5V Supply Positive voltage supply in 5V mode (requires 100nF decoupling capacitor) 2 VDD3V3 Supply Positive voltage supply in 3.3V mode (requires an external 1-μF decoupling capacitor in 5V mode) 3 OUT Analog/digital output Analog/PWM output 4 GND Supply Ground 5 PGO Digital input Program option (internal pull-up, connected to GND = Programming Option B) 6 SDA Digital input/output I²C Data (consider external pull-up) 7 SCL Digital input I²C Clock (consider external pull-up) 8 DIR Digital input Direction polarity (GND = values increase clockwise, VDD = values increase counterclockwise) ams Datasheet [v1-06] 2018-Jun-20 Type Description Page 3 Document Feedback AS5600 − Absolute Maximum Ratings Absolute Maximum Ratings Stresses beyond those listed under Absolute Maximum Ratings may cause permanent damage to the device. These are stress ratings only. Functional operation of the device at these or any other conditions beyond those indicated under Operating Conditions is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability. Figure 5: Absolute Maximum Ratings Symbol Parameter Min Max Units Comments Electrical Parameters VDD5V DC Supply Voltage at VDD5V pin -0.3 6.1 V VDD3V3 DC Supply Voltage at VDD3V3 pin -0.3 4.0 V VIO DC Supply Voltage at all digital or analog pins -0.3 VDD+0.3 V ISCR Input current (latch-up immunity) -100 100 mA JESD78 Continuous Power Dissipation (TA = 70°C) PT Continuous power dissipation 50 mW Electrostatic Discharge ESDHBM Electrostatic discharge HBM ±1 kV MIL 883 E method 3015.7 Temperature Ranges and Storage Conditions TSTRG Storage temperature range TBODY Package body temperature RHNC Relative humidity (non-condensing) MSL Moisture sensitivity level Page 4 Document Feedback -55 125 5 3 °C 260 °C 85 % ICP/JEDEC J-STD-020 The reflow peak soldering temperature (body temperature) is specified according to IPC/JEDEC J-STD-020 “Moisture/Reflow Sensitivity Classification for Non-hermetic Solid State Surface Mount Devices.” The lead finish for Pb-free leaded packages is “Matte Tin” (100% Sn) ICP/JEDEC J-STD-033 ams Datasheet [v1-06] 2018-Jun-20 AS5600 − Electrical Characteristics Electrical Characteristics All limits are guaranteed. The parameters with minimum and maximum values are guaranteed with production tests or SQC (Statistical Quality Control) methods. Operating Conditions Figure 6: System Electrical Characteristics and Temperature Range Symbol Parameter VDD5V Positive supply voltage in 5.0V mode VDD3V3 Positive supply voltage in 3.3V mode Conditions Min Typ Max Units 4.5 5.0 5.5 V 3.3V operation mode 3.0 3.3 3.6 V During OTP burn procedure (2) 3.25 3.3 3.35 V 5.0V operation mode During OTP burn procedure (2) IDD Supply current in NOM (1) PM = 00 Always on 6.5 mA lDD_LPM1 Supply current in LPM1 (1) PM = 01 Polling time = 5ms 3.4 mA lDD_ LPM2 Supply current in LPM2 (1) PM = 10 Polling time = 20ms 1.8 mA lDD_ LPM3 Supply current in LPM3 (1) PM = 11 Polling time = 100ms 1.5 mA Supply current per bit for burn procedure Initial peak, 1 μs 100 mA IDD_BURN Steady burning,<30 μs 40 mA TA Operating temperature -40 125 °C TP Programming temperature 20 30 °C Note(s): 1. For typical magnetic field (60mT) excluding current delivered to the external load and tolerance on polling times. 2. For OTP burn procedure the supply line source resistance should not exceed 1Ohm. ams Datasheet [v1-06] 2018-Jun-20 Page 5 Document Feedback AS5600 − Electrical Characteristics Digital Inputs and Outputs Figure 7: Digital Input and Output Characteristics Conditions Min Typ Max Symbol Parameter V_IH High-level input voltage V_IL Low-level input voltage V_OH High-level output voltage V_OL Low-level output voltage 0.4 V I_LKG Leakage current ±1 μA Max Units 0.7 × VDD Units V 0.3 × VDD VDD - 0.5 V V Analog Output Figure 8: Analog Output Characteristics Symbol Parameter Conditions Min Typ INL_DAC DAC integral-non-linearity electrical specification ±5 LSB DNL_DAC DAC differential-non-linearity electrical specification ±1 LSB ROUT_FD Output resistive load 0 to VDD output 100 kΩ ROUT_PD Output resistive load 10% to 90% output 10 kΩ COUT Output capacitive load Page 6 Document Feedback 1 nF ams Datasheet [v1-06] 2018-Jun-20 AS5600 − Timing Characteristics PWM Output Figure 9: PWM Output Characteristics Symbol Parameter PWMf1 PWM frequency (1) PWMF = 00 115 Hz PWMf2 PWM frequency (1) PWMF = 01 230 Hz PWMf3 PWM frequency (1) PWMF = 10 460 Hz PWMf4 PWM frequency (1) PWMF = 11 920 Hz PWM_DC PWM duty cycle PWM_SR PWM slew rate I_O Output current for PWM output C_L Capacitive load for PWM output Conditions Cload = 1nF Min Typ Max Units 2.9 97.1 % 0.5 2 V/μs ±0.5 mA 1 nF Max Units Note(s): 1. Frequency is given as typical values, tolerance is ±5% Timing Characteristics Figure 10: Timing Conditions Symbol T_DETWD Parameter Watchdog detection time (1) Conditions WD = 1 Min Typ 1 minute T_PU Power-up time 10 ms F_S Sampling rate 150 μs T_SETTL1 Settling time SF = 00 2.2 ms T_SETTL2 Settling time SF = 01 1.1 ms T_SETTL3 Settling time SF = 10 0.55 ms T_SETTL4 Settling time SF = 11 0.286 ms Note(s): 1. Given as typical values, tolerance is ±5% ams Datasheet [v1-06] 2018-Jun-20 Page 7 Document Feedback AS5600 − Magnetic Characteristics Magnetic Characteristics Figure 11: Magnetic Characteristics Symbol Parameter Conditions Min Max Units Bz Orthogonal magnetic field strength, regular output noise ON_SLOW and ON_FAST Required orthogonal component of the magnetic field strength measured at the die's surface along a circle of 1mm 30 90 mT Bz_ERROR Minimum required orthogonal magnetic field strength, Magnet detection level 8 mT Max Units System Characteristics Figure 12: System Specifications Symbol RES Parameter Conditions Resolution Min Typ 12 bit System INL Deviation from best line fit; 360° maximum angle, no magnet displacement, no zero-programming performed (PWM, I²C) ±1 degree ON_SLOW RMS output noise (1 sigma) Orthogonal component for the magnetic field within the specified range (Bz), after 2.2 ms; SF = 00 0.015 degree ON_FAST RMS output noise (1 sigma) Orthogonal component for the magnetic field within the specified range (Bz), after 286 μs, SF=11 0.043 degree INL_BL Page 8 Document Feedback ams Datasheet [v1-06] 2018-Jun-20 AS5600 − Detailed Description Detailed Description The AS5600 is a Hall-based rotary magnetic position sensor using planar sensors that convert the magnetic field component perpendicular to the surface of the chip into a voltage. The signals coming from the Hall sensors are first amplified and filtered before being converted by the analog-to-digital converter (ADC). The output of the ADC is processed by the hardwired CORDIC block (Coordinate Rotation Digital Computer) to compute the angle and magnitude of the magnetic field vector. The intensity of the magnetic field is used by the automatic gain control (AGC) to adjust the amplification level to compensate for temperature and magnetic field variations. The angle value provided by the CORDIC algorithm is used by the output stage. The user can choose between an analog output and a PWM-encoded digital output. The former provides an output voltage which represents the angle as a ratiometric linear absolute value. The latter provides a digital output which represents the angle as the pulse width. The AS5600 is programmed through an industry-standard I²C interface to write an on-chip non-volatile memory. This interface can be used to program a zero angle (start position) and a maximum angle (stop position) which maps the full resolution of the output to a subset of the entire 0 to 360 degree range. IC Power Management The AS5600 be powered from a 5.0V supply using the on-chip LDO regulator, or it can be powered directly from a 3.3V supply. The internal LDO is not intended to power other external ICs and needs a 1 μF capacitor to ground, as shown in Figure 13. In 3.3V operation, the VDD5V and VDD3V3 pins must be tied together. VDD is the voltage level present at the VDD5V pin. Figure 13: 5.0V and 3.3V Power Supply Options 5.0V Operation 4.5 - 5.5V VDD5V LDO 100nF GND 3.3V Operation VDD3V3 3.0 – 3.6V* 1µF 100nF VDD5V VDD3V3 LDO 10µF** GND AS5600 AS5600 * 3.3-3.5V for OTP programming ** Required for OTP programming only ams Datasheet [v1-06] 2018-Jun-20 Page 9 Document Feedback AS5600 − Detailed Description I²C Interface The AS5600 supports the 2-wire Fast-mode Plus I²C-slave protocol in device mode, in compliance with the NXP Semiconductors (formerly Philips Semiconductors) specification UM10204. A device that sends data onto the bus is a transmitter and a device receiving data is a receiver. The device that controls the message is called a master. The devices that are controlled by the master are called slaves. A master device generates the serial clock (SCL), controls the bus access, and generates the START and STOP conditions that control the bus. The AS5600 always operates as a slave on the I²C bus. Connections to the bus are made through the open-drain I/O lines SDA and the input SCL. Clock stretching is not included. The host MCU (master) initiates data transfers. The 7-bit slave address of the AS5600 is 0x36 (0110110 in binary). Supported Modes • Random/Sequential read • Byte/Page write • Automatic increment (ANGLE register) • Standard-mode • Fast-mode • Fast–mode plus The SDA signal is the bidirectional data line. The SCL signal is the clock generated by the I²C bus master to synchronize sampling data from SDA. The maximum SCL frequency is 1 MHz. Data is sampled on the rising edge of SCL. I²C Interface Operation Figure 14: I²C Timing Diagram SDA tbuf tLOW tR tF tHD.STA SCL Stop Page 10 Document Feedback Start tHD.STA tHD.DAT tHIGH tSU.DAT tSU.STA Repeated Start tSU.STO ams Datasheet [v1-06] 2018-Jun-20 AS5600 − Detailed Description I²C Electrical Specification Figure 15: I²C Electrical Specifications Symbol Parameter Conditions Min Typ Max Unit VIL Logic low input voltage -0.3 0.3 x VDD V VIH Logic high input voltage 0.7 x VDD VDD + 0.3 V VHYS Hysteresis of Schmitt trigger inputs VDD > 2.5V VOL Logic low output voltage (open-drain or open-collector) at 3 mA sink current VDD > 2.5V IOL Logic low output current VOL = 0.4V tOF Output fall time from VIHmax to VILmax tSP Pulse width of spikes that must be suppressed by the input filter 0.05 x VDD 0.4 20 10 Input Voltage between 0.1 x VDD and 0.9 x VDD V V mA 120 (1) ns 50 (2) ns +10 (3) μA II Input current at each I/O Pin CB Total capacitive load for each bus line 550 pF CI/O I/O capacitance (SDA, SCL) (4) 10 pF -10 Note(s): 1. In Fast-mode Plus, fall time is specified the same for both output stage and bus timing. If series resistors are used this has to be considered for bus timing. 2. Input filters on the SDA and SCL inputs suppress noise spikes of less than 50 ns. 3. I/O pins of Fast-mode and Fast-mode Plus devices must not load or drive the SDA and SCL lines if VDD is switched OFF. 4. Special-purpose devices such as multiplexers and switches may exceed this capacitance because they connect multiple paths together. ams Datasheet [v1-06] 2018-Jun-20 Page 11 Document Feedback AS5600 − Detailed Description I²C Timing Figure 16: I²C Timing Symbol Parameter Min Max Unit 1.0 MHz fSCLK SCL clock frequency tBUF Bus free time (time between the STOP and START conditions) 0.5 μs tHD;STA Hold time; (Repeated) START condition (1) 0.26 μs tLOW Low phase of SCL clock 0.5 μs tHIGH High phase of SCL clock 0.26 μs tSU;STA Setup time for a Repeated START condition 0.26 μs tHD;DAT Data hold time (2) tSU;DAT Data setup time (3) 0.45 50 tR Rise time of SDA and SCL signals tF Fall time of SDA and SCL signals 10 tSU;STO Setup time for STOP condition 0.26 μs ns 120 ns 120 (4) ns μs Note(s): 1. After this time, the first clock is generated. 2. A device must internally provide a minimum hold time of 120 ns (Fast-mode Plus) for the SDA signal (referred to the V IHmin of SCL) to bridge the undefined region of the falling edge of SCL. 3. A Fast-mode device can be used in a standard-mode system, but the requirement tSU;DAT = 250 ns must be met. This is automatically if the device does not stretch the low phase of SCL. If such a device does stretch the low phase of SCL, it must drive the next data bit on SDA (t Rmax + tSU;DAT = 1000 + 250 = 1250 ns) before SCL is released. 4. In Fast-mode Plus, fall time is specified the same for both output stage and bus timing. If series resistors are used, this has to be considered for bus timing. Page 12 Document Feedback ams Datasheet [v1-06] 2018-Jun-20 AS5600 − Detailed Description I²C Modes Invalid Addresses There are two addresses used to access an AS5600 register. The first is the slave address used to select the AS5600. All I²C bus transactions include a slave address. The slave address of the AS5600 is 0x36 (0110110 in binary) The second address is a word address sent in the first byte transferred in a write transaction. The word address selects a register on the AS5600. The word address is loaded into the address pointer on the AS5600. During subsequent read transactions and subsequent bytes in the write transaction, the address pointer provides the address of the selected register. The address pointer is incremented after each byte is transferred, except for certain read transactions to special registers. If the user sets the address pointer to an invalid word address, the address byte is not acknowledged (the A bit is high). Nevertheless, a read or write cycle is possible. The address pointer is increased after each byte. Reading When reading from an invalid address, the AS5600 returns all zeros in the data bytes. The address pointer is incremented after each byte. Sequential reads over the whole address range are possible including address overflow. Automatic Increment of the Address Pointer for ANGLE, RAW ANGLE and MAGNITUDE Registers These are special registers which suppress the automatic increment of the address pointer on reads, so a re-read of these registers requires no I²C write command to reload the address pointer. This special treatment of the pointer is effective only if the address pointer is set to the high byte of the register. Writing A write to an invalid address is not acknowledged by the AS5600, although the address pointer is incremented. When the address pointer points to a valid address again, a successful write accessed is acknowledged. Page write over the whole address range is possible including address overflow. Supported Bus Protocol Data transfer may be initiated only when the bus is not busy. During data transfer, the data line must remain stable whenever SCL is high. Changes in the data line while SCL is high are interpreted as START or STOP conditions. ams Datasheet [v1-06] 2018-Jun-20 Page 13 Document Feedback AS5600 − Detailed Description Accordingly, the following bus conditions have been defined: Bus Not Busy Both SDA and SCL remain high. Start Data Transfer A change in the state of SDA from high to low while SCL is high defines the START condition. Stop Data Transfer A change in the state of SDA from low to high while SCL is high defines the STOP condition. Data Valid The state of the data line represents valid data when, after a START condition, SDA is stable for the duration of the high phase of SCL. The data on SDA must be changed during the low phase of SCL. There is one clock period per bit of data. Each I²C bus transaction is initiated with a START condition and terminated with a STOP condition. The number of data bytes transferred between START and STOP conditions is not limited, and is determined by the I²C bus master. The information is transferred byte-wise and each receiver acknowledges with a ninth bit. Acknowledge Each I²C slave device, when addressed, is obliged to generate an acknowledge after the reception of each byte. The I²C bus master device must generate an extra clock period for this acknowledge bit. A slave that acknowledges must pull down SDA during the acknowledge clock period in such a way that SDA is stable low during the high phase of the acknowledge clock period. Of course, setup and hold times must be taken into account. A master must signal an end of a read transaction by not generating an acknowledge bit on the last byte that has been clocked out of the slave. In this case, the slave must leave SDA high to enable the master to generate the STOP condition. Figure 17: Data Read Slave Address SDA MSB SCL 1 Start Condition Page 14 Document Feedback 2 ... Repeated if more Bytes are transferred 6 LSB R/W ACK 7 8 9 ACK 1 ... 7 8 9 Stop Condition or Repeated Start Condition ams Datasheet [v1-06] 2018-Jun-20 AS5600 − Detailed Description Depending on the state of the R/W bit, two types of data transfer are possible: Data Transfer from a Master Transmitter to a Slave Receiver The first byte transmitted by the master is the slave address, followed by R/W = 0. Next follows a number of data bytes. The slave returns an acknowledge bit after each received byte. If the slave does not understand the command or data it sends a not acknowledge (NACK). Data is transferred with the most significant bit (MSB) first. Data Transfer from a Slave Transmitter to a Master Receiver The master transmits the first byte (the slave address). The slave then returns an acknowledge bit, followed by the slave transmitting a number of data bytes. The master returns an acknowledge bit after all received bytes other than the last byte. At the end of the last received byte, a NACK is returned. The master generates all of the SCL clock periods and the START and STOP conditions. A transfer is ended with a STOP condition or with a repeated START condition. Because a repeated START condition is also the beginning of the next serial transfer, the bus is not released. Data is transferred with the most significant bit (MSB) first. AS5600 Slave Modes Slave Receiver Mode (Write Mode) Serial data and clock are received through SDA and SCL. Each byte is followed by an acknowledge bit or by a not acknowledge depending on whether the address-pointer selects a valid address. START and STOP conditions are recognized as the beginning and end of a bus transaction. The slave address byte is the first byte received after the START condition. The 7-bit AS5600 address is 0x36 (0110110 in binary). The 7-bit slave address is followed by the direction bit (R/W), which, for a write, is 0 (low). After receiving and decoding the slave address byte the slave device drives an acknowledge on SDA. After the AS5600 acknowledges the slave address and write bit, the master transmits a register address (word address) to the AS5600. This is loaded into the address pointer on the AS5600. If the address is a valid readable address, the AS5600 answers by sending an acknowledge (A bit low). If the address pointer selects an invalid address, a not acknowledge is sent (A bit high). The master may then transmit zero or more bytes of data. If the address pointer selects an invalid address, the received data are not stored. The address pointer will increment after each byte transferred whether or not the address is valid. If the address-pointer reaches a valid position again, the AS5600 answers with an acknowledge and stores the data. The master generates a STOP condition to terminate the write transaction. ams Datasheet [v1-06] 2018-Jun-20 Page 15 Document Feedback AS5600 − Detailed Description S <Slave address> <RW> Figure 18: Data Write (Slave Receiver Mode) 0110110 0 <Word address (n)> A XXXXXXXX <Data(n)> A <Data(n+1)> XXXXXXXX S – Start A – Acknowledge (ACK) P – Stop A XXXXXXXX <Data(n+X)> A XXXXXXXX A P Data transferred: X+1 Bytes + Acknowledge Slave Transmitter Mode (Read Mode) The first byte is received and handled as in the slave receiver mode. However, in this mode, the direction bit indicates that the AS5600 will drive data on SDA. START and STOP conditions are recognized as the beginning and end of a bus transaction. The slave address byte is the first byte received after the master generates a START condition. The slave address byte contains the 7-bit AS5600 address. The 7-bit slave address is followed by the direction bit (R/W), which, for a read, is 1 (high). After receiving and decoding the slave address byte, the slave device drives an acknowledge on the SDA line. The AS5600 then begins to transmit data starting with the register address pointed to by the address pointer. If the address pointer is not written before the initiation of a read transaction, the first address that is read is the last one stored in the address pointer. The AS5600 must receive a not acknowledge (NACK) to end a read transaction. S <Slave address> <RW> Figure 19: Data Read (Slave Transmitter Mode) 0110110 1 <Data(n)> A XXXXXXXX S – Start A – Acknowledge (ACK) NA – Not Acknowledge (NACK) P – Stop Page 16 Document Feedback <Data(n+1)> A <Data(n+2)> XXXXXXXX A XXXXXXXX <Data(n+X)> A XXXXXXXX NA P Data transferred: X+1 Bytes + Acknowledge Note: Last data byte is followed by NACK ams Datasheet [v1-06] 2018-Jun-20 AS5600 − Detailed Description 0110110 0 <Word Address (n)> A XXXXXXXX S – Start Sr – Repeated Start A – Acknowledge (ACK) NA – Not Acknowledge (NACK) P – Stop A Sr <Slave Address> <RW> S <Slave address> <RW> Figure 20: Data Read with Address Pointer Reload (Slave Transmitter Mode) 0110110 1 <Data(n)> A XXXXXXXX <Data(n+X)> <Data(n+1)> A XXXXXXXX A XXXXXXXX NA P Data transferred: X+1 Bytes + Acknowledge Note: Last data byte is followed by NACK SDA and SCL Input Filters Input filters for SDA and SCL inputs are included to suppress noise spikes of less than 50 ns. ams Datasheet [v1-06] 2018-Jun-20 Page 17 Document Feedback AS5600 − Register Description Register Description The following registers are accessible over the serial I²C interface. The 7-bit device address of the slave is 0x36 (0110110 in binary). To permanently program a configuration, a non-volatile memory (OTP) is provided. Figure 21: Register Map Address Name R/W Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Configuration Registers (1), (2) 0x00 ZMCO R ZPOS R/W/P ZMCO(1:0) 0x01 ZPOS(11:8) 0x02 ZPOS(7:0) 0x03 MPOS(11:8) MPOS R/W/P 0x04 MPOS(7:0) 0x05 MANG(11:8) MANG R/W/P 0x06 MANG(7:0) 0x07 WD CONF FTH(2:0) SF(1:0) R/W/P 0x08 PWMF(1:0) OUTS(1:0) HYST(1:0) PM(1:0) Output Registers 0x0C 0x0D RAW ANGLE 0x0E R RAW ANGLE(11:8) R RAW ANGLE(7:0) R ANGLE(11:8) ANGLE 0x0F R ANGLE(7:0) Status Registers 0x0B STATUS R 0x1A AGC R 0x1B MD ML MH AGC(7:0) R MAGNITUDE (11:8) MAGNITUDE 0x1C R MAGNITUDE(7:0) Burn Commands 0xFF BURN W Burn_Angle = 0x80; Burn_Setting = 0x40 Note(s): 1. To change a configuration, read out the register, modify only the desired bits and write the new configuration. Blank fields may contain factory settings. 2. During power-up, configuration registers are reset to the permanently programmed value. Not programmed bits are zero. Page 18 Document Feedback ams Datasheet [v1-06] 2018-Jun-20 AS5600 − Register Description ZPOS/MPOS/MANG Registers These registers are used to configure the start position (ZPOS) and a stop position (MPOS) or maximum angle (MANG) for a narrower angular range. The angular range must be greater than 18 degrees. In case of narrowed angular range, the resolution is not scaled to narrowed range (e.g. 0° to 360°(full-turn) → 4096dec; 0° to180°→2048dec). To configure the angular range, see Angle Programming. CONF Register The CONF register supports customizing the AS5600. Figure 22 shows the mapping of the CONF register. Figure 22: CONF Register Name Bit Position Description PM(1:0) 1:0 Power Mode 00 = NOM, 01 = LPM1, 10 = LPM2, 11 = LPM3 HYST(1:0) 3:2 Hysteresis 00 = OFF, 01 = 1 LSB, 10 = 2 LSBs, 11 = 3 LSBs OUTS(1:0) 5:4 Output Stage 00 = analog (full range from 0% to 100% between GND and VDD, 01 = analog (reduced range from 10% to 90% between GND and VDD, 10 = digital PWM PWMF (1:0) 7:6 PWM Frequency 00 = 115 Hz; 01 = 230 Hz; 10 = 460 Hz; 11 = 920 Hz SF(1:0) 9:8 Slow Filter 00 = 16x (1); 01 = 8x; 10 = 4x; 11 = 2x FTH(2:0) 12:10 Fast Filter Threshold 000 = slow filter only, 001 = 6 LSBs, 010 = 7 LSBs, 011 = 9 LSBs,100 = 18 LSBs, 101 = 21 LSBs, 110 = 24 LSBs, 111 = 10 LSBs WD 13 Watchdog 0 = OFF, 1 = ON Note(s): 1. Forced in Low Power Mode (LPM) ANGLE/RAW ANGLE Register The RAW ANGLE register contains the unscaled and unmodified angle. The scaled output value is available in the ANGLE register. Note(s): The ANGLE register has a 10-LSB hysteresis at the limit of the 360 degree range to avoid discontinuity points or toggling of the output within one rotation. ams Datasheet [v1-06] 2018-Jun-20 Page 19 Document Feedback AS5600 − Register Description STATUS Register The STATUS register provides bits that indicate the current state of the AS5600. Figure 23: STATUS Register Name State When Bit Is High MH AGC minimum gain overflow, magnet too strong ML AGC maximum gain overflow, magnet too weak MD Magnet was detected AGC Register The AS5600 uses Automatic Gain Control in a closed loop to compensate for variations of the magnetic field strength due to changes of temperature, airgap between IC and magnet, and magnet degradation. The AGC register indicates the gain. For the most robust performance, the gain value should be in the center of its range. The airgap of the physical system can be adjusted to achieve this value. In 5V operation, the AGC range is 0-255 counts. The AGC range is reduced to 0-128 counts in 3.3V mode. MAGNITUDE Register The MAGNITUDE register indicates the magnitude value of the internal CORDIC. Non-Volatile Memory (OTP) The non-volatile memory is used to permanently program the configuration. To program the non-volatile memory, the I²C interface is used (Option A, Option C). Alternatively, start and stop positions can be programmed through the output pin (Option B). The programming can be either performed in the 5V supply mode or in the 3.3V operation mode but using a minimum supply voltage of 3.3V and a 10 μF capacitor at the VDD3V3 pin to ground. This 10 μF capacitor is needed only during the programming of the device. Two different commands are used to permanently program the device: Page 20 Document Feedback ams Datasheet [v1-06] 2018-Jun-20 AS5600 − Register Description Burn_Angle Command (ZPOS, MPOS) The host microcontroller can perform a permanent programming of ZPOS and MPOS with a BURN_ANGLE command. To perform a BURN_ANGLE command, write the value 0x80 into register 0xFF. The BURN_ANGLE command can be executed up to 3 times. ZMCO shows how many times ZPOS and MPOS have been permanently written. This command may only be executed if the presence of the magnet is detected (MD = 1). Burn_Setting Command (MANG, CONFIG) The host microcontroller can perform a permanent writing of MANG and CONFIG with a BURN_SETTING command. To perform a BURN_SETTING command, write the value 0x40 into register 0xFF. MANG can be written only if ZPOS and MPOS have never been permanently written (ZMCO = 00). The BURN_ SETTING command can be performed only one time. Angle Programming For applications which do not use the full 0 to 360 degree angular range, the output resolution can be enhanced by programming the range which is actually used. In this case, the full resolution of the output is automatically scaled to the programmed angular range. The angular range must be greater than 18 degrees. The range is specified by programming a start position (ZPOS) and either a stop position (MPOS) or the size of the angular range (MANG). The BURN_ANGLE command can be executed up to 3 times. ams Datasheet [v1-06] 2018-Jun-20 Page 21 Document Feedback AS5600 − Register Description There are three recommended methods for programming the angular range: • Option A: Angle Programming Through the I²C Interface • Option B: Angle Programming Through the OUT Pin • Option C: Programming a Maximum Angular Range Through the I²C Interface Figure 24: Option A: Angle Programming Through the I²C Interface Use the correct hardware configuration shown in Figure 37 and Figure 38. Step 1 Power up the AS5600. Step 2 Turn the magnet to the start position. Step 3 Read the RAW ANGLE register. Write the RAW ANGLE value into the ZPOS register. Wait at least 1 ms. Step 4 Rotate the magnet in the direction defined by the level on the DIR pin (GND for clockwise, VDD for counterclockwise) to the stop position. The amount of rotation must be greater than 18 degrees. Step 5 Read the RAW ANGLE register. Write the RAW ANGLE value into the MPOS register. Wait at least 1 ms. Proceed with Step 6 to permanently program the configuration. Step 6 Perform a BURN_ANGLE command to permanently program the device. Wait at least 1 ms. Step 7 Verify the BURN_ANGLE command: Write the commands 0x01, 0x11 and 0x10 sequentially into the register 0xFF to load the actual OTP content. Read the ZPOS and MPOS registers to verify that the BURN_ANGLE command was successful. Step 8 Read and verify the ZPOS and MPOS registers again after a new power-up cycle. Note(s): 1. After each register command, the new setting is effective at the output at least 1 ms later. 2. It is highly recommended to perform a functional test after this procedure. Page 22 Document Feedback ams Datasheet [v1-06] 2018-Jun-20 AS5600 − Register Description Figure 25: Option B: Angle Programming Through the OUT Pin Use the correct hardware configuration shown in Figure 37 and Figure 38. The PGO pin is connected to GND and the OUT pin is pulled high by an internal resistor until the programming procedure is finished. Step 1 Power up the AS5600. Step 2 Position the magnet in the start position. Step 3 Pull the OUT pin to GND for at least 100 ms, then allow the pin to float. Step 4 Rotate the magnet in the same direction defined by the level on the DIR pin (GND for clockwise, VDD for counterclockwise) to the stop position. The amount of rotation must be greater than 18 degrees. Step 5 Pull the OUT pin to GND for at least 100 ms, then allow the pin to float. Step 6 Check if the OUT pin is permanently driven to GND. This indicates an error occurred during programming. If the voltage driven on the OUT pin corresponds to the magnet position, the procedure was performed successfully. Note(s): 1. After step 5 the new setting is effective at the output. 2. If step 3 is not followed by step 5 no permanent write will be performed. 3. It is highly recommended to perform a functional test after the procedure. 4. This procedure can be executed only one time; the zero position and maximum angle can be reprogrammed only through the I²C (Option A). 5. This procedure can be executed only if the presence of the magnet is detected (MD = 1). ams Datasheet [v1-06] 2018-Jun-20 Page 23 Document Feedback AS5600 − Register Description Figure 26: Option C: Programming a Maximum Angular Range Through the I²C Interface Use the correct hardware configuration shown in Figure 37 and Figure 38. Step 1 Power up the AS5600. Step 2 Use the I²C interface to write the maximum angular range into the MANG register. For example, if the maximum angular range is 90 degrees, write the MANG register with 0x400. Configure additional configuration settings by writing the CONFIG register. Wait at least 1 ms. Proceed with Step 3 to permanently program the configuration. Step 3 Perform a BURN_SETTINGS command to permanently program the device. Wait at least 1 ms. Step 4 Verify the BURN_SETTINGS command: Write the commands 0x01, 0x11 and 0x10 sequentially into the register 0xFF to load the actual OTP content. Read and verify the MANG and CONF registers to verify that the BURN_SETTINGS command was successful. Proceed with Step 5 to permanently program a zero position. If the OUT pin is used for this option, the PGO pin must be connected to GND. Step 5 Position the magnet in the start position (zero angle). Step 6 Pull the OUT pin to GND for at least 100 ms, then allow the pin to float. Alternatively, program the zero position through the I²C interface (Option A). Wait at least 1 ms. Step 7 Verify the permanent programming by I²C (Option A) or check if OUT is permanently driven to GND (Option B). Step 8 Read and verify the permanently programmed registers again after a new power-up cycle. Note(s): 1. After each register command, the new configuration is effective at the output at least 1 ms later. 2. It is recommended to perform a functional test after this procedure. Output Stage The OUTS bits in the CONF register are used to choose between an analog ratiometric output (default) and a digital PWM output. If PWM is selected, the DAC is powered down. Without regard to which output is enabled, an external unit can read the angle from the ANGLE register through I²C interface at any time. Page 24 Document Feedback ams Datasheet [v1-06] 2018-Jun-20 AS5600 − Register Description Analog Output Mode By default, the AS5600 output stage is configured as analog ratiometric output. The Digital to Analog Converter (DAC) has 12-bit resolution. In default mode, the lower reference voltage for the DAC is GND, while the upper reference voltage is VDD. The output voltage on the OUT pin is ratiometric between GND and VDD. The maximum angular range can be programmed from 18 degrees to 360 degrees. The default range is 360 degrees. As shown below, if the range is 360 degrees, to avoid discontinuity points exactly at the limit of the range, a 10-LSB hysteresis is applied. This hysteresis suppresses toggling the OUT pin when the magnet is close to zero or 360 degrees. Figure 27: Output Characteristic Over a 360° Full-Turn Revolution 10LSB Output Voltage AOUT[V] VDD 0 DEG 10LSB 360 DEG Angle (DEG) The AS5600 supports programming both a zero angle as well as the maximum angular range. As shown in Figure 28, reducing the maximum angular range pushes the non-discontinuity points to the edges, away from the 0 and θ max (where θ max is the maximum angle) by λ, where λ= (360 - θ max)/2. ams Datasheet [v1-06] 2018-Jun-20 Page 25 Document Feedback AS5600 − Register Description Figure 28: Output Characteristic Over a Range Smaller Than 360° Output Voltage AOUT[V] VDD 0 DEG λ θMAX Angle (DEG) λ 360 DEG If the maximum angular range is smaller than 360 degrees, the DAC resolution is automatically reduced. If θ max is the maximum angle, the number of steps N of the output signal OUT is: N = (θ max/360) × 4096 The AS5600 also allows selecting the output dynamic characteristics of the OUT signal with the OUTS bits in the CONF register. By default (OUTS = 00), the output can cover the full voltage range (0V to VDD), but a reduced range from 10% to 90% between GND and VDD may be programmed (OUTS = 01). Figure 29: Output Characteristics with Reduced Output Range (10%-90%) VDD Output Voltage AOUT[V] 90% VDD 10% VDD 0 DEG Page 26 Document Feedback Angle (DEG) θMAX ams Datasheet [v1-06] 2018-Jun-20 AS5600 − Register Description PWM Output Mode The AS5600 ou