MLX16201 MelexisMicroelectronicSystems
MLX16201 MelexisMicroelectronicSystems
Figure 1
1. Features
VDD5 PR1
CPU and Interrupts PS2 VSS
16201-Jxx
• WORD- (16 Bit), BYTE- (8 Bit), and BIT- (1Bit) Operations possible KEY0 PR2
• 11 different user interrupt sources (including RESET)
KEY1 PWM
Memories
KEY2 TC2
• 8k*8 user ROM
• 256*8 RAM KEY3 KEY7
• 128*16 EEPROM KEY4 TC1
Periphery KEY5 KEY6
• 1 On-Chip-Timer
AD1 TST
• 1 Timer-Capture-Register (16 bits)
• 2 Timer-Compare-Register (16 bits) AD2 PS1
• Window watch dog (5ms/10ms)
• 1 PWM output 20.8 kHz, 7-Bit+1 (duty cycle from 0 to 100%)
• 1 A/D converter (8 bits, 16µs) internal and external reference possible
• 8 ADC-channels analogue multiplexer
• On-Chip-Temperature-Sensor
• 2 Relay driver outputs, integrated free wheel function
• 2 voltage outputs for driving external circuitry
• 8 bi-directional ports with different possible thresholds, 5V output
function
• 2 Interrupt inputs for timer capture
Additional features
• On-Chip-8 MHz-Oscillator (No external components)
• 4V to 26V voltage range, 80V load dump protected,
• typical 150 µA sleep mode current
• Small SO20 package
Development tools
• Development Environment available with the 10108xy:
• Assembler, Linker, Object-File-Generator, HEX-File Generator, C-
Compiler
• ROM-Emulator, In-Circuit-Emulator
• PLCC68 for external ROM-Possibility, ROM-Emulation and In-
Circuit-Emulation
• SO24 as OTP for SW development and SW evaluation
• MLX-Programmer for OTPs
The 16201-Jxx is a multiple purpose intelligent relay driver ASIC designed for automotive applications. It uses the
RX16000-16 Bit parallel µC of Melexis.
A lot of integrated analogue and digital features allow to design different automotive applications using only a few
external components.
10 different interrupts allow to act on real time events, 4 interrupts are accessible via the pins.
The circuit is load dump protected for a 80V load dump pulse.
Due to License agreements with Melexis customers, the 16201Jxx is not free to use in electronic window
lifter applications.
2. Table of contents
1. ..............................................................................................................................Features 1
2. ................................................................................................................ Table of contents 2
3. .............................................................................................................. Typical Application 3
4. .................................................................................................... Device coding encryption 3
5. ..................................................................................................................Mechanical data 4
6. ........................................................................................................ Pinout: SO20 package 6
7. ................................................................................................. Absolute maximum ratings 7
8. ..................................................................................................... Electrical characteristics 8
9. ....................................................................................................... Eeprom characteristics 12
10. ............................................................................................Quality and Reliability targets 12
11. ........................................................................................................CPU-core description 12
12. ....................................................................................................Description of Periphery 13
12.1........................................................................................................ Memory mapping 13
12.2............................................................................................................................ROM 14
12.2.1. .................................................................ROM-allocation table and Far-Pages 14
12.2.2. ......................................................... Interrupt vectors and Interrupt description 14
12.3.................................................................................................. Portsmap description 16
12.4............................................................................................Periphery access, Timing 18
12.5..................................................................Description of important peripheral blocks 20
12.5.1. ................................................................................................Eeprom interface 20
12.5.2. ............................................................................................Window Watch dog 20
12.5.3. ....................................................................... Clock monitor, oscillator concept 20
12.5.4. .....The configuration possibilities of the Key-Thresholds and the Key-Interrupt 21
13. ............................................................................................................. Special conditions 22
13.1.................................................................................................Reset of the periphery 22
13.2................................................................................................. Load dump protection 22
13.3.....................................................................................................................Trimming 22
13.4................................................................. Short circuit protection on application pins 24
14. ...........................................................................................................Debugging facilities 24
15. ....................................................................................................................History record 25
3. Typical Application
Figure 2 shows a typical application.
Figure 2
VDD5 PR1 RL
PS2 VSS
16201Jxx
KEY0 PR2
KEY1 PWM
KEY2 TC2
KEY3 KEY7
KEY4 TC1
KEY5 KEY6
SUPL SUPL
16202Jxx
with:
16201: Chip name
J: Hardware version, Melexis counts this letter up, in case of a major change in the chip design
xx: Internal SW- (ROM-) version, encryption is linked to a given application and to a given customer
5. Mechanical data
Package: P-DSO20 in accordance to the JEDEC MS-013.
8. Electrical characteristics
Following characteristics are valid over the full temperature range of T = -40°C to +105°C and a supply range of
26V ≥ VDD5 > 5V unless otherwise noted.
With 5V ≥ VDD5 > v3vreset the controller works correctly, analogue parameters can not be guaranteed.
RAM content is guaranteed till vpor < VDD5.
If several pins are charged with transients above VDD5 and below VSS, the summary of all substrate currents of
the influenced pins should not exceed 20mA for correct work of the device.
Parameter Symbol Conditions Limits Units
Min Typ Max
Global parameters
Working current during iddhvn VDD5=80V, all 20 40 mA
80V load dump pins are inputs
Normal working current iddn VDD5=13V, all 1.5 4 8 mA
pins are inputs,
trimmed
PLL to 8MHz
Sleep mode current idds VDD5=13V, all 150 200 µA
pins are inputs,
trimmed main
oscillator to
125kHz, T=25°C
Sleep mode current iddsht VDD5=13V, all 300 µA
pins are inputs,
trimmed main
oscillator to
125kHz
Frequencies
Frequency of the trimmed fmain main oscillator is 118.75 125 131.25 kHz
main oscillator trimmed
Frequency of the PLL fpll main oscillator is 7.6 8 8.4 MHz
trimmed
Frequency of the PWM fpwm main oscillator is 19.76 20.8 21.84 kHz
trimmed
ADC related parameters
relative error of DAC relerrdac -1/2 +1/2 LSB
relative monotonic error of monerrdac 0 0 LSB
DAC and ADC
Accuracy of temperature terr sensor is -10 0 +10 °C
measurement with calibrated on edge
internal sensor temperatures
Accuracy of ADC ad1err V(AD1) max. -7 0 7 % of full range
measurement on AD1 16.5V,
(22V range) ADC is trimmed on
AD1, ADC
correction factor at
4001h is used
Accuracy of ADC adc22verr V (channel) max. -10 0 10 % of full range
measurements on PS1, 16.5V, ADC is
PR1, PR2, SUPPLY trimmed on PR1,
level H => L
Digital input threshold vipnomhps1 VDD5>7V 3.75 4 4.25 V
level L => H
Hysteresis vhystnomps1 VDD5>7V 2.5 3 3.5 V
TST related parameters
Pull down resistance on rtst 0.5 1 2.5 kΩ
TST
TC[2:1] related parameters
Output voltage of TC[2:1] vtc[2:1] VDD5>7V 4.2 5 7 V
Pull up current of TC[2:1] itc[2:1] VDD5>7V 1.0 2.5 4.3 mA
TC[2:1] connected
to VSS
Digital input threshold vipnomltc[2:1] VDD5>7V 0.75 1 1.25 V
level H => L
Digital input threshold vipnomhtc[2:1] VDD5>7V 3.75 4 4.25 V
level L => H
Hysteresis vhystnomtc[2:1] VDD5>7V 2.5 3 3.5 V
PWM related parameters
Leakage current in PWM ileakpwm 2 µA
in case PWM is as input
Voltage on PWM in case vhpwm VDD5>7V 4 5.0 6.5 V
of H output PWM loaded with
5mA
Voltage on PWM in case vlpwm VDD5>7V, 0.5 V
of L output PWM loaded with
5mA
Digital input threshold vipnomlpwm VDD5>7V 0.75 1 1.25 V
level H => L
Digital input threshold vipnomhpwm VDD5>7V 3.75 4 4.25 V
level L => H
Hysteresis vhystnompwm VDD5>7V 2.5 3 3.5 V
KEY[7:0] related parameters
Leakage current in case ileakkey[7:0] 2 µA
KEY[7:0] are inputs
Voltage in case of H vhkey[6:0] VDD5>7V, 4 5.0 5.5 V
output KEY[6:0] loaded
with 1mA
Voltage in case of L vlkey[7:0] VDD5>7V, 0.5 V
output KEY[6:0] loaded
with 1mA,
KEY7 loaded with
20mA,
Nominal input threshold vipnomlkey[7:0] VDD5>7V 0.75 1 1.25 V
level H => L
Nominal input threshold vipnomhkey[7:0] VDD5>7V 3.75 4 4.25 V
level L => H
Nominal hysteresis vhystnomkey[7:0 VDD5>7V 2.5 3 3.5 V
]
Special threshold level vippdlkey[7:0] V(AD1)<18V 0.5* 0.63* 0.8* V
H => L in case of external V(AD1) V(AD1) V(AD1)
pull down
Special threshold level vippdhkey[7:0] V(AD1)<18V 0.5* 0.66* 0.8* V
9. Eeprom characteristics
Temperature Warranty
Max. cycles
25°C 100,000
105°C 10,000
Data retention
25°C 20 years
55°C 20 years
85°C 10 years
125°C 1 year
In order to reach these values, sensitive data has to be stored twice in the EEPROM with a CRC on each data field.
Software algorithms have to handle this, possible failure routines should correct and act on single bit failures.
EEPROM- Interface
RX-16000 uC-ROM
Load-Dump-
Voltage 125kHz- Clock Power-On- 3V-Reset- 7V-Interrupt- Temperature Voltage-
Regulator PLL Interupt-
References Oscillator Monitor Reset Trigger Trigger Sensor Drivers
Trigger
12.2. ROM
Absolute address
Can be disabled
Hard Priority(1)
Address(LSB)
Test Tracking
Reset Priority
Soft Priority
Far Page
Active
Type
Interrupts can be enabled or disabled by Flags, or changing priority. In case priority 0 is selected, only interrupts with
that priority will occur. Changing the priority to a value of N enables all interrupts with a priority <= N, in case they
are enabled with their enable flag.
The Key Interrupt can only be enabled/disabled with a change in the priority in user mode.
Attention:
1.)
In case interrupts are:
- enabled with the enable flag
- disabled by priority
the interrupt sources are still active! An interrupt is memorised only one time, and it will be performed, when CPU
runs on a priority again, which enables this interrupt. This is also valid for the sleep mode.
2.)
In case CPU is in an interrupt routine and a second enabled interrupt with a higher priority occurs, CPU jumps to
this new interrupt, performs the routine and jumps back to the 1st interrupt.
Conflict resolver determines, what interrupt is performed at first, in case two interrupts with the same priority levels
arrive at the same time.
3.)
If the chip is in sleep, all interrupts can wake up the chip, in case they are enabled.
4.)
In order to give Melexis the possibility to test the User Reset, the user software should have the following sequence:
SEGMENT 'Io'
.pb
.pb_l DS.B
.pb_h DS.B
This sequence generates for 10us a logic L on KEY7, which is used by Melexis for testing the user reset.
All other interrupts are tested by means of the Melexis test interrupt.
5.)
In order to give Melexis the possibility to test the user interrupts, the user software should have the following
sequence:
SEGMENT 'TimerComp1'
psp msw,2
nop
jumpf ITC1
The ports map consists of an input and an output section which are separated.
On one and the same address can be completely different devices, they are accessed and selected by reading and
writing to that certain address.
Outputs
Byte Access Word Byte Function
Address mode(0) Bit Bit Name Reseted by Bit cleared Bit set
2000 WBb 0 0
1 1
2 2 OIB_PWM CBB, WBB Pin PWM is a digital input Pin PWM is the PWM output
3 3
4 4
5 5 OIB_PS1 CBB, WBB, High current PS1 pin is input of port 01 bit 5 PS1 pin outputs PS1 voltage
PS1 pin is ADC input (channel 4)
6 6 OIB_PS2 CBB, WBB PS2 pin is input of port 01 bit 6 PS2 pin outputs PS2 voltage
PS2 pin is ADC input (channel 5)
7 7
2001 Bb 8 0 N0 CBB, WBB, EE access 00 01 10 11 Bank
9 1 N1 CBB, WBB, EE access Protected Protected Protected Opened 00-3F
10 2 Protected Protected Opened Opened 40-7F
11 3 Protected Opened Opened Opened 80-BF
12 4 Opened Opened Opened Opened C0-FF
13-15 5-7
Symbol Meaning
W Word accessible
B Byte accessible
b Bit accessible
Na Not Accessible
Nu Not Used
Outputs
Byte Access Word Byte Function
Address mode Bit Bit Name Reseted by Bit cleared Bit set
2002 WBb 0 0 O_PR1 CBB, WBB Relay 1 is OFF Relay 1 is ON
1 1 O_PR2 CBB, WBB Relay 2 is OFF Relay 2 is ON
2 2
3 3 CONTRV0 CBB DAC voltage control
4 4 CONTRV1 CBB 000 5.4V
5 5 CONTRV2 CBB 111 7.0V
6 6 CKTEST CBB Software Test Clock (1)
7 7 DRTEST CBB Timing Test Data or Reset (1)
2003 Bb 8 0 ENTCMPI1 CBB Disable Timer compare 1 interrupt Enable timer compare 1 interrupt
9 1 ENTCMPI2 CBB Disable Timer compare 2 interrupt Enable Timer compare 2 interrupt
10 2 ENEDGEI CBB Disable Edge detect interrupt Enable Edge detect interrupt
11 3 ENOVFLI CBB Disable Counter overflow interrupt Enable Counter overflow interrupt
12 4 ENLDI CBB Disable Load-dump interrupt Enable Load-dump interrupt
13 5 EN7VI CBB Disable 7V detection interrupt Enable 7V detection interrupt
14 6 ENEEI CBB Disable Eeprom Write end interrupt Enable Eeprom Write end interrupt
15 7
2004 WBb 0-7 0-7 OIB_P_B[7:0] CBB Pins KEY[7:0] (port B) are inputs Pins KEY[7:0] (port B) are outputs
2005 Bb 8-15 0-7 O_P_B[7:0] None Pins KEY[7:0] are port B data outputs
2006 W 0-7 0-7 NO_SPB_P_B[7:0] CBB Special Threshold for Port B inputs Normal Threshold for Port B inputs
2007 Na 8-15 0-7 UDB_P_B[7:0] CBB Port B uses external pull-downs Port B uses external pull-ups
Notes: (1) Only in test mode
Outputs
Byte Access Word Byte Function
Address mode Bit Bit Name Reseted by Bit cleared Bit set
2008 WBb 0 0 SOC CBB, Conversion started Idle ADC Start ADC conversion request
1 1 SEL2VREFB CBB ADC uses internal Ref ADC uses External Ref (From PS2)
2 2 SEL_ADC0 CBB Analog MUX for ADC
3 3 SEL_ADC1 CBB 000 : Internal power supply 100 : PS1
4 4 SEL_ADC2 CBB 001 : Temperature sensor 101 : PS2
010 : AD1 110 : PR1
011 : AD2 111 : PR2
5 5 AWD CBB, WBB A rising edge on AWD will acknowledge watch-dog if WDSETF is high
6 6 R_CBFB CBB A rising edge sets CBFB flag
7 7 R_WBFB CBB, WBB A rising edge sets WBFB flag
2009 Bb 8 0 EDSEL CBB Falling edge selection for capture Rising edge selection for capture
9 1 TC1CPTDIR CBB TC1 xor TC2 input for capture Direct TC1 input for capture
10 2 ENCM CBB Disable Clock monitor control Enable Clock monitor control
TP1=0 (4) TP1=1 (4)
- Clock monitor reset
11 3 EBE CBB Eeprom block erase disabled Eeprom block erase enabled (4)
12 4 EBW CBB Eeprom block write disabled Eeprom block write enabled (4)
13 5 VEE1 CBB 00 01 10 11 (4)
14 6 VEE2 CBB Read at predifined Read at predifined Read with external Read at predifined (4)
Internal normal level Internal low level Vs and Vcg levels Intenal high level
on KEY2, KEY6
15 7
200A-200B W 0-15 - TCMPXP[15:0] None Timer Compare 1 reference value
200C-200D W 0-15 - TCMPYP[15:0] None Timer Compare 2 reference value
200E B 0-6 0-6 OCONTR[6:0] CBB Oscillator control register
7 7
200F B 8-15 0-7 PWM[7:0] None For PWM from 0 to 127, duty cylce is PWM/128, then duty cycle is 1
Outputs
Byte Access Word Byte Function
Address mode Bit Bit Name Reseted by Bit cleared Bit set
2010 WB 0 0 DIV0 CBB Free running counter in normal mode Free running counter in SLEEP mode
0 1 0 1
1 MHz 250KHz 15.62Khz 7.813Khz
Nu 1-7 1-7
2011 Nu 8-15 0-7
2012 WB 0 0 TP1 CBB 00 01 10 11 (4)
125Khz on KEY3 8Mhz 7V interrupt voltage
1 1 TP2 CBB PLL on KEY4 DAC ref on KEY3
(5) (4)
SEL_ADC=xx0 Bandgap voltage on
Normal mode =>VDD1 on ADC DAC output on KEY4
KEY4
SEL_ADC=xx1 ADC input voltage on
=>VDD2 on ADC KEY5 (6)
2 2 TP3 CBB Normal mode Power down disabled (4)
3 3 IDDTEST CBB Normal mode Enable IDDQ acquisition (4)
I_AD2=0 I_AD2=1
Memories in
Normal precharge
IDDQ acquisition
TP3=0 TP3=1
Normal internal supply High internal supply
(Typicaly 5V) (Typicaly 7V)
4 4 TMTEST CBB,TEST Timing tests disabled Timing tests enabled (3, 4)
5 5 ELEXITPG1 CBB,TEST Elex Interrupt in FP0 Elex Interrupt in FP1 (4)
6 6 ENKEYITB CBB,TEST Key interrupts enabled Key interrupts disabled (4)
7 7 ABORTBUSY CBB,TEST Normal mode Abort Busy Eeprom (4)
Notes : (3) Timing Devices are : Free-running counter, Timer Compare 1 and 2, Timer Capture and PWM
(4) Melexis reserved for test purpose, only accessible in test mode
(5) Negative input of the comparator
(6) Positive input of the comparator
Inputs
Byte Access Word Byte Function
Address mode Bit Bit Name Reseted by Bit cleared Bit set
2000 WBb 0 0 EQUAL1 Not applicable Timer Compare1 equality not found Timer Compare1 equality found (6.1)
1 1 EQUAL2 Not applicable Timer Compare2 equality not found Timer Compare2 equality found (6.1)
2 2 DET Not applicable Capure not done Capture done (6.1)
3 3 OVF Not applicable No timer overflow Timer overflow (6.1)
4 4 7VTHRESHOLD Not applicable 7V threshold not found 7V threshold found (6.1),(7)
5 5 LDTHRESHOLD Not applicable Load Dump threshold not found Load Dump threshold found (6.1),(7)
6 6 KEYPRESSED Not applicable No key is pressed One or more keys are pressed (6.1),(8)
7 7 O_PWM Not applicable PWM output is LOW PWM output is HIGH (6.1),(9)
2001 Bb 8 0 I_TC1 Not applicable Data on TC1 pin
9 1 I_TC2 Not applicable Data on TC2 pin
10 2 I_PWM Not applicable PWM output used as digital input (if OIB_PWM is cleared)
11 3 I_AD1 Not applicable Data from external pin AD1
12 4 I_AD2 Not applicable Data from external pin AD2
13 5 I_PS1 Not applicable Data from external pin PS1
14 6 I_PS2 Not applicable Data from external pin PS2
15 7
2002 WBb 0-7 0-7 ADC[7:0] Not applicable ADC inputs
2003 Bb 8 0
9 1
10 2
11 3
12 4 LDIF CBB, Read of port 2003 Load-dump memory
13 5 7VIF CBB, Read of port 2003 7V threshold memory
14 6 COMPOUTB Not applicable ADC Comparator output (Inverted)
15 7 CMRES CBB, Read of port 2003 Clock monitor error detection (Valid even if ENCM flag is low)
2004 WBb 0-7 0-7 I_P_B[7:0] Not applicable Undebounced Port B inputs
2005 Bb 8-15 0-7 I_P_DB_B[7:0] Not applicable 2ms…3ms debounced Port B inputs
(6.1) Only for Melexis test purposes
Notes : (7) Undebounced input
(8) Debounced input
(9) Same as I_PWM
Inputs
Byte Access Word Byte Function
Address mode Bit Bit Name Reseted by Bit cleared Bit set
2008 WBb 0 0 EOC SOC End Of Conversion : Set by ADC when conversion is completed
1 1 TEST1 Not applicable 00 : Normal mode 10 : Test mode 2, external oscillator (6.1)
2 2 TEST2 Not applicable 01 : Test mode 1, internal oscillator 11 : Do not exist (6.1)
3 3 EEBUSY Not applicable Eeprom not busy Eeprom busy (write or erase)
4 4 CPTF CBB, Read of Port 200A Capture not done Capture done
5 5 WDSETF Automatic by watch-dog Watch-dog window not opened Watch-dog window opened
6 6 CBFB Set by R_CBFB A cold boot has occured No reset occured
7 7 WBFB Set by R_WBFB A warm or a cold boot has occured No reset occured
2009 Bb 8 0 LDPI Not possible No pending interrupt Pending interrupt (6.1),(10)
9 1 7VPI Not possible No pending interrupt Pending interrupt (6.1),(10)
10 2 TCOMP1PI Not possible No pending interrupt Pending interrupt (6.1),(10)
11 3 TCOMP2PI Not possible No pending interrupt Pending interrupt (6.1),(10)
12 4 TCAPTPI Not possible No pending interrupt Pending interrupt (6.1),(10)
13 5 TOVFPI Not possible No pending interrupt Pending interrupt (6.1),(10)
14 6 EERDYPI Not possible No pending interrupt Pending interrupt (6.1),(10)
15 7 KEYPI Not possible No pending interrupt Pending interrupt (6.1),(10)
200A-200B WBb 0-15 - CPT[15:0] None Capture register
200C-200D WBb 0-15 - CNT[15:0] CBB Free running counter
Notes : (10) Taken from Interrupt Controller
All devices addressable by the RX16000 are with a READY management. The CPU will wait, until an addressed
periphery device will have valid data. Because timing of peripheral devices is dependent on temperature and supply,
we can only give
the following typical access time (CPU at 8MHz):
Data in memory
Offset Data
0 AA
1 BB
2 CC
3 DD
4 EE
5 FF
Example: Example:
RAM start address = 0000 R0M start address = E000
mov a,dp:01 x = E002
result : a = BBCC mov a,[x]
result : a = CCDD
Example: Example:
RAM start address = 0000 R0M start address = E000
mov al,dp:01 x = E003
result : al = BB mov al,[x]
result : al = DD
Example : Example :
RAM start address = 0000 ROM start address = E000
Offset = 000A =(1010)b Offset = 0019 =(00011001)b
Bit 2 of address 0001 is read Bit 1 of address E003 is read.
Beside this:
- The limitations for bit addressing modes and additional addressing modes (i.g.:y:page), which are described in
the „16 Bits RISC RX16000 DATA BOOK“ of Melexis are valid.
- For word, byte and bit addressing modes of I/O the spec. of 8.3 are valid.
- CPU can run code from ROM and RAM.
12.5.1.Eeprom interface
The EEPROM is controlled by an interface logic, which takes care about the following:
In case writing data to an certain address of the EEPROM, this address has to be erased before.
Erasing is done by writing 0000h to a certain address.
While a write instruction is running and a sleep command is performed from the CPU, the chip will wait, until the
EEPROM write operation is finished. After that the chip will go in sleep mode.
Attention:
- Clock monitor should only be enabled by software, if the system is stable, means PLL is settled, clock monitor is
settled (complete settling time 240us+240us)
- Clock monitor has to be disabled in sleep mode.
V(KEY[7:0]) V(KEY[7:0])
I_P_B[7:0] I_P_B[7:0]
vipnomhkey vipnomhkey
[7:0] [7:0]
vipnomlkey vipnomlkey
[7:0] [7:0]
t t
The key interrupt is not defined during a change of The key interrupt is not defined during a change of
UDB_P_B[7:0]. UDB_P_B[7:0].
- Port NO_SPB_P_B[7:0]=00h - Port NO_SPB_P_B[7:0]=00h
- Port UDB_P_B[7:0]=00h - Port UDB_P_B[7:0]=FFh
- External pull down, KEY0 is high active - External pull up, Key is low active
- Key interrupt will be generated on a 1ms…2ms - Key interrupt will be generated on a 1ms…2ms
debounced L-H transient of I_P_B[7:0] debounced H-L transient of I_P_B[7:0]
- High ratiometric to V(AD1) input threshold level is - Low ratiometric to V(AD1) input threshold level is
used used
V(KEY[7:0]) V(KEY[7:0])
I_P_B[7:0] I_P_B[7:0]
vippdhkey
[7:0]
vippdlkey
[7:0] vippuhkey
[7:0]
vippulkey
[7:0]
t t
The key interrupt is not defined during a change of The key interrupt is not defined during a change of
UDB_P_B[7:0]. UDB_P_B[7:0].
13.3. Trimming
In the EEPROM there are the following parameters, when 16201J is delivered to the user:
EEPRO Contend scope
M
address
1000h Oscillator control word ocontrnom[6:0] only accessible in test
mode,
1001h ADC correction factor for AD1 eps(AD1) trimmed values
1002h Temperature sensor tmin
1003h Temperature sensor tmax
1004h ADC correction factor for PR1, PR2, PS1, SUPPLY eps(PR1)
1005h ADC correction factor for AD2, PS2, eps(AD2)
1006h Identity
1007h Identity
1008h 00
1009h 00
100Ah 00
100Bh 00
100Ch Lotnumber Security values, will not be
100Dh Lotnumber overwritten by the user
100Eh Difference between nominal and trimmed frequency as signed BYTE
freqdiff
100Fh Checksum for addresses 1000h...1007h as BYTE
1010h... 00
10FFh 00
Address 1000h to 1007h are write protected in normal user mode. The parameters should be used by the user
software in order to trim 16201J.
11
Checksum16 =( ∑ EE[I]+EE(100Eh ) modulo (2 )
I=1000h...1007h, 100Ch, 100Dh, 100Eh
Addresses 1000h...1007h, 100Ch, 100Dh, 100Eh are read and summed as unsigned BYTES and stored on 100Fh,
overflow is thrown away
The data of address 1000h has to be written to the oscillator control register at 200Eh.
After that the main oscillator is running at 125kHz, the PLL is at 8MHz.
ADC correction:
This trimming is used in order to get common mode errors out. The ADC correction values at address 1001h,
1004h, 1005h are calculated in the following way:
-idea: calibration is on CHANNEL, measurement on CHANNEL gives one result called adce,
which has an error.
In order to get the right value called adcr, the following equation has to be applied:
adcr=ratio*adce
-measuring eps: select CHANNEL with internal reference and give the
ADC value adc2[7:0] out, measure V(CHANNEL) with the internal ADC,
following equation is valid with vin (trimming voltage from above), CHANNEL connected
(in case CHANNEL=AD1 via 50k) to vin, range(AD1, PR1)=22V and range(AD2)=6V:
adcr=255*vin/range
ratio=adcr/adc2[7:0]
eps=hex(round[(ratio-0.75)*255/0.5]),
read eps from 1001h, 1004h or 1005h dependent on the selected channel x
ratio=0.5/255*[dez (eps)]+0.75
vadcx=adcx[7:0]*ratio*rangex/255
Temperature sensor:
The temperature sensor is calibrated on its edge temperatures -40°C and 105°C. These values are written into the
EEPROM.
Between these temperatures there is an linear interpolation.
On the PS2, PR[2:1] pins we have a short circuit protection, which is realised together with software. During a
certain time we allow a short circuit protection current, which is specified in 4.
These pins can be observed with via internal ADC-channels, if the voltage on these pins is out of range because of
a short circuit, software has to switch off this driver.
If the current exceeds on PS1 the maximum possible current specified in 4 during a time of 60us...120us, hardware
switches this driver off. It is up to the user to observe this channel with the internal ADC or the digital input on PS1 in
order to see this fault.
If driver was switched of du due a short circuit on that pin, software can switch it on again by setting OIB_PS1 to „1“.