| The Datasheet Archive - 100 Million Datasheets from 7500 Manufacturers. |
PMA51xx PMA71xx itte Microcontroller, 125kHz Receiver FSK/ASK 315
Top Searches for this datasheeteliminar Libr Guide, V1.1 June 2008 PMA51xx PMA71xx itte Microcontroller, 125kHz Receiver FSK/ASK 315/434/868/915 Transmitter Sense Control Edition 2008-06-18 Published Infineon Technologies Campeon 1-12 85579 Neubiberg, Germany Infineon Technologies 2008-06-18. Rights Reserved. Attention please! information herein given describe certain components shall considered guarantee characteristics. Terms delivery rights technical change reserved. hereby disclaim warranties, including limited warranties non-infringement, regarding circuits, descriptions charts stated herein. Information further information technology, delivery terms conditions prices please contact your nearest Infineon Technologies Office Germany Infineon Technologies Companies Infineon Technologies Representatives worldwide (www.infineon.com). Warnings technical requirements components contain dangerous substances. information types question please contact your nearest Infineon Technologies Office. Infineon Technologies Components only used life-support devices systems with express written approval Infineon Technologies, failure such components reasonably expected cause failure that life-support device system, affect safety effectiveness that device system. Life support devices systems intended implanted human body, support and/or maintain sustain and/or protect human life. they fail, reasonable assume that health user other persons endangered. eliminar Libr Guide, V1.1 June 2008 PMA51xx PMA71xx itte Microcontroller, 125kHz Receiver FSK/ASK 315/434/868/915 Transmitter Sense Control PMA5110 PMA5110 Revision History:2008-06-18 Previous Version: -Page Subject (major changes since previous version) V1.1 Listen Your Comments information within this document that feel wrong, unclear missing all? Your feedback will help continuously improve quality this document. Please send your proposal (including reference this document) sensors@infineon.com Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 1.4.1 1.4.2 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 Introduction General Considerations Type definitions Wakeup Handler Restricted FLASH areas Restricted areas Restricted FLASH areas Library Functions Meas_Temperature() Description Actions Prototype Inputs Outputs Resource Usage Charge Consumption Execution Time MeasureSupplyVoltage() Description Actions Prototype Inputs Outputs Resource Usage Charge Consumption Execution Time StartSupplyVoltage() Description Actions Prototype Inputs Outputs Resource Usage Execution Information TriggerSupplyVoltage() Description Actions Prototype Inputs Outputs Resource Usage Execution Information Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.6.1 2.6.2 2.6.3 2.6.4 2.6.5 2.6.6 2.6.7 2.7.1 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.9.1 2.9.2 2.9.3 2.9.4 2.9.5 2.9.6 2.9.7 2.10 2.10.1 GetSupplyVoltage() Description Actions Prototype Inputs Outputs Resource Usage Execution Information PowerDown() Description Actions Prototype Inputs Outputs Resource Usage Execution Information ThermalShutdown() Description Actions Prototype Inputs Outputs Resource Usage Execution Information Switch2XTAL() Description Actions Prototype Inputs Outputs Resource Usage Charge Consumption Execution Time Switch2RC() Description Actions Prototype Inputs Outputs Resource Usage Execution Information VCOTuning() Description Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 2.10.2 2.10.3 2.10.4 2.10.5 2.10.6 2.10.7 2.10.8 2.11 2.11.1 2.11.2 2.11.3 2.11.4 2.11.5 2.11.6 2.11.7 2.11.8 2.12 2.12.1 2.12.2 2.12.3 2.12.4 2.12.5 2.12.6 2.12.7 2.12.8 2.13 2.13.1 2.13.2 2.13.3 2.13.4 2.13.5 2.13.6 2.13.7 2.13.8 2.14 2.14.1 2.14.2 2.14.3 2.14.4 2.14.5 2.14.6 2.14.7 2.15 Actions Prototype Inputs Outputs Resource Usage Charge Consumption Execution Time VCOTuningLong() Description Actions Prototype Inputs Outputs Resource Usage Charge Consumption Execution Time CalibrateIntervalTimer() Description Actions Prototype Inputs Outputs Resource Usage Charge Consumption Execution Time LFBaudrateCalibration() Description Actions Prototype Inputs Outputs Resource Usage Charge Consumption Execution Time ULongDivision() (32Bit 32Bit) Description Actions Prototype Inputs Outputs Resource Usage Execution Information UIntDivision() (16Bit 16Bit) Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 2.15.1 2.15.2 2.15.3 2.15.4 2.15.5 2.15.6 2.15.7 2.16 2.16.1 2.16.2 2.16.3 2.16.4 2.16.5 2.16.6 2.16.7 2.17 2.17.1 2.17.2 2.17.3 2.17.4 2.17.5 2.17.6 2.17.7 2.18 2.18.1 2.18.2 2.18.3 2.18.4 2.18.5 2.18.6 2.18.7 2.19 2.19.1 2.19.2 2.19.3 2.19.4 2.19.5 2.19.6 2.19.7 2.20 2.20.1 2.20.2 2.20.3 Description Actions Prototype Inputs Outputs Resource Usage Execution Information CRC8Calculation() Description Actions Prototype Inputs Outputs Resource Usage Execution Information CRC8_410() Description Actions Prototype Inputs Outputs Resource Usage Execution Information ReadManufacturerRevNum() Description Actions Prototype Inputs Outputs Resource Usage Execution Information ReadCustomerRevNum() Description Actions Prototype Inputs Outputs Resource Usage Execution Information EraseUserConfigSector() Description Actions Prototype Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 2.20.4 2.20.5 2.20.6 2.20.7 2.21 2.21.1 2.21.2 2.21.3 2.21.4 2.21.5 2.21.6 2.21.7 2.22 2.22.1 2.22.2 2.22.3 2.22.4 2.22.5 2.22.6 2.22.7 2.23 2.23.1 2.23.2 2.23.3 2.23.4 2.23.5 2.23.6 2.23.7 2.24 2.24.1 2.24.2 2.24.3 2.24.4 2.24.5 2.24.6 2.24.7 2.25 2.25.1 2.25.2 2.25.3 2.25.4 2.25.5 2.25.6 Inputs Outputs Resource Usage Execution Information WriteUserConfigSectorLine() Description Actions Prototype Inputs Outputs Resource Usage Execution Information SetLockbyte3() Description Actions Prototype Inputs Outputs Resource Usage Execution Information InitRF() Description Actions Prototype Inputs Outputs Resource Usage Execution Information TransmitRF() Description Actions Prototype Inputs Outputs Resource Usage Execution Information AES128Encrypt() Description Actions Prototype Inputs Outputs Resource Usage Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 2.25.7 2.26 2.26.1 2.26.2 2.26.3 2.26.4 2.26.5 2.26.6 2.26.7 2.27 2.27.1 2.27.2 2.27.3 2.27.4 2.27.5 2.27.6 2.27.7 2.28 2.28.1 2.28.2 2.28.3 2.28.4 2.28.5 2.28.6 2.28.7 2.29 2.29.1 2.29.2 2.29.3 2.29.4 2.29.5 2.29.6 2.29.7 2.30 2.30.1 2.30.2 2.30.3 2.30.4 2.30.5 2.30.6 2.30.7 2.31 2.31.1 Execution Information AES128Decrypt() Description Actions Prototype Inputs Outputs Resource Usage Execution Information Wr_EEByte() Description Actions Prototype Inputs Outputs Resource Usage Execution Information Wr_EEInt() Description Actions Prototype Inputs Outputs Resource Usage Execution Information Wr_EELong() Description Actions Prototype Inputs Outputs Resource Usage Execution Information Wr_EEString() Description Actions Prototype Inputs Outputs Resource Usage Execution Information Get_EEByte() Description Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 2.31.2 2.31.3 2.31.4 2.31.5 2.31.6 2.31.7 2.32 2.32.1 2.32.2 2.32.3 2.32.4 2.32.5 2.32.6 2.32.7 2.33 2.33.1 2.33.2 2.33.3 2.33.4 2.33.5 2.33.6 2.33.7 2.34 2.34.1 2.34.2 2.34.3 2.34.4 2.34.5 2.34.6 2.34.7 Actions Prototype Inputs Outputs Resource Usage Execution Information Get_EEInt() Description Actions Prototype Inputs Outputs Resource Usage Execution Information Get_EELong() Description Actions Prototype Inputs Outputs Resource Usage Execution Information Get_EEString() Description Actions Prototype Inputs Outputs Resource Usage Execution Information Reference Documents Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Introduction Introduction General Considerations This document describes Library functions which available PMA5110 PMA7110. other products PMA51xx PMA71xx family, please only take relevante features functions into account. PMA5110_ROMLibrary.h (the header file including function prototypes) PMA5110_ROMLibrary.lib (the precompiled Library functions) Note: charge consumptions execution times stated throughout this document target values measured with samples VBAT 3.0V TAmbient 25°C. Table Type Type definitions Definition types Description value without sign value with sign value without sign value with sign value without sign value with sign Range minimum maximum 65535 32767 4294967296 2147483647 -128 -32768 -2147483648 following table defines parameter types used throughout this document. unsigned char signed char unsigned signed unsigned long signed long Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Introduction Wakeup Handler Wakeup-Handler executed every time device wakes from POWER DOWN state. Possible wakeup sources listed "Reference Documents" Page Table Value Wakeup from POWER DOWN state (independent Wakeup source) Wakeup Handler Unit Conditions Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Introduction Restricted FLASH areas Library functions certain address areas FLASH. They must changed application proper operation. 1.4.1 Restricted areas area through (upper Bytes) Bytes used Library functions this area overwritten Library functions. 1.4.2 Restricted FLASH areas FLASH area 57FAH through 0x57FCH reserved used crystal frequency. crystal frequency (divided two) written that location during FLASH programming production order provide Library functions with correct timebase calibration purposes. applications 19.6875 crystal used crystal frequency divided half into that location. 19687500 9843750 0x963426 values FLASH have written following way: Flash address 57FAH: Flash address 57FBH: Flash address 57FCH: 433.92 applications 18.0800 crystal used crystal frequency divided half into that location. 18080000 9040000 0x89F080 values FLASH have written following way: Flash address 57FAH: Flash address 57FBH: Flash address 57FCH: applications 18.089583 crystal used crystal frequency divided half into that location. 18089583 9044792 0x8A0338 values FLASH have written following way: Flash address 57FAH: Flash address 57FBH: Flash address 57FCH: Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Introduction applications 19.0625 crystal used crystal frequency divided half into that location. 19062500 9531250 0x916F72 values FLASH have written following way: Flash address 57FAH: Flash address 57FBH: Flash address 57FCH: FLASH address 57FFH reserved Lockbyte This value must changed application otherwise might result unintentionally locked FLASH User Configuration Sector. Locking this sector irreversibly shall only done either programming Lockbyte together with writing locking FLASH Code Sector dedicated Library function SetLockbyte3(). Note: EraseUserConfigSector() WriteUserConfigSectorLine() used application ensured that these restricted Flash addresses overwritten unintentionally. Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions Table Library Functions Library functions Description Returns ambient temperature Returns battery voltage Page Page Page following library functions available application usage: Library function MeasureTemperature() MeasureSupplyVoltage() StartSupplyVoltage() TriggerSupplyVoltage() GetSupplyVoltage() PowerDown() ThermalShutdown() Switch2XTAL() Switch2RC() VCOTuning() VCOTuningLong() CalibrateIntervalTimer() LFBaudrateCalibration() ULongDivision() UIntDivision() CRC8Calculation() CRC8_410() ReadManufacturerRevNum() ReadCustomerRevNum() EraseUserConfigSector() WriteUserConfigSectorLine() SetLockbyte3() InitRF() TransmitRF These three functions perform Battery Volt- Page measurement during Page Transmission. Page Forces device POWER DOWN state Forces device THERMAL SHUTDOWN state Switches systemclock crystal prepares device Transmission Switches systemclock Oscillator Tunes frequency (stops after lock) Tunes frequency (full range scan) Calibrates Interval Timer precounter Calibrates baudrate divider Divides unsigned values bit) Divides unsigned values bit) Calculates (x^8+x^2+x^1+x^0) Calculates (x^8+x^4+x^1+x^0) Returns device revision number Erases FLASH user configuration sector Writes FLASH line Bytes) FLASH user configuration sector Page Page Page Page Page Page Page Page Page Page Page Page Page Page Page Returns customers revision number Page Sets Lockbyte protect User Config- Page uration sector Initializes Transmission Performs Transmission Page Page Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions Library function AES128Encrypt() AES128Decrypt() Wr_EEByte() Wr_EEInt() Wr_EELong() Wr_EEString() Get_EEByte() Get_EEInt() Get_EELong() Get_EEString() Description Performs 128-Bit encryption Performs 128-Bit decryption Writes byte EEPROM Emulation Writes EEPROM Emulation Writes long EEPROM Emulation Writes string EEPROM Emulation Reads byte EEPROM Emulation Reads EEPROM Emulation Reads long EEPROM Emulation Reads string EEPROM Emulation Page Page Page Page Page Page Page Page Page Page Page Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.1.1 Meas_Temperature() Description This function performs temperature measurement. result calibrated compensated sensitivity offset. 2.1.2 Actions Measures temperature sensor Compensate using calibration data stored FLASH. 2.1.3 Prototype unsigned char Meas_Temperature signed idata Temp_Result 2.1.4 Table Inputs Meas_Temperature: Input Parameters Type signed idata* Name Temp_Result Description iData pointer integer array containing measurement result Register Address 2.1.5 Table Outputs Meas_Temperature: Output values Name StatusByte Register/ Address Type unsigned char Description 0000.0000b: Success xxxx.xxx1b: Underflow Result xxxx.xx1xb: Overflow Result xxx1.xxxxb: VMIN warning *Temp_Result+0 signed Compensated Tem- 0x8000 -256.0 perature 0x0000 0x7FFF 255.9921875 where 1/128 Temperature 0x8000 -256.0 0x0000 0x7FFF 255.9921875 where 1/128 *Temp_Result+1 signed Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.1.6 Table Type Registers Stack Resource Usage Meas_Temperature: Resources used modified PSW, ADCOFF, ADCC0, ADCC1, ADCDL, ADCDH, ADCM, ADCS, CFG1, CFG2, DIVIC, DPL, DPH, Bytes 2.1.7 Table Value Charge Consumption Meas_Temperature: Charge Consumption 1.695 Unit Conditions systemclock= Oscillator, DIVIC 0x00 Charge Consumption 2.1.8 Table Value Execution Time Meas_Temperature: Execution Time Unit Conditions systemclock= Oscillator, DIVIC 0x00 Execution Time Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.2.1 MeasureSupplyVoltage() Description This function performs battery voltage measurement. result calibrated compensated offset. 2.2.2 Actions Measures supply voltage sensor Compensate using calibration data stored FLASH 2.2.3 Prototype unsigned char MeasureSupplyVoltage signed idata Batt_Result 2.2.4 Table Inputs MeasureSupplyVoltage: Input Parameters Type unsigned idata* Name Batt_Result Description iData pointer integer array containing measurement result Register Address 2.2.5 Table Outputs MeasureSupplyVoltage: Output values Name StatusByte Register/ Address Type unsigned char Description 0000.0000b: Success xxxx.xxx1b: Underflow Result xxxx.xx1xb: Overflow Result 0x8000 -4096.0 (Only theoretical number) 0x0000 0x7FFF 4095.875 4096 where *Batt_Result+0 signed Compensated battery voltage *Batt_Result+1 signed battery voltage 10Bit Result Value: 0000.00xx.xxxx.xxxxb Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.2.6 Table Type Registers Stack Resource Usage MeasureSupplyVoltage: Resources used modified PSW, ADCOFF, ADCC0, ADCC1, ADCDL, ADCDH, ADCM, ADCS, CFG1, CFG2, DPL, DPH, DIVIC, Bytes 2.2.7 Table Value Charge Consumption MeasureSupplyVoltage: Charge Consumption Unit Conditions systemclock= Oscillator, DIVIC 0x00 Charge Consumption 2.2.8 Table Value Execution Time MeasureSupplyVoltage: Execution Time Unit Conditions systemclock= Oscillator, DIVIC 0x00 Execution Time Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.3.1 StartSupplyVoltage() Description This function prepares Supply Voltage Sensor battery measurement. StartSupplyVoltage(), TriggerSupplyVoltage() GetSupplyVoltage() used measure battery voltage during Transmission. This function called application before Transmission takes place. 2.3.2 Actions Prepare Supply Voltage Sensor measurement 2.3.3 Prototype unsigned char StartSupplyVoltage void 2.3.4 Table none Inputs StartSupplyVoltage: Input Parameters Type -Name -Description Register Address 2.3.5 Table Outputs StartSupplyVoltage: Output values Name Status Byte Register/ Address Type unsigned char Description always returns 2.3.6 Table Type Registers Stack Resource Usage StartSupplyVoltage: Resources used modified PSW, DPH, DPL, ADCM, ADCC0, ADCC1, ADCOFF, CFG1, CFG2, Bytes Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.3.7 Table Value Execution Information StartSupplyVoltage: Execution Information Unit Conditions Instruction Cycles Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.4.1 TriggerSupplyVoltage() Description This function triggers measure Supply Voltage Sensor battery measurement. StartSupplyVoltage(), TriggerSupplyVoltage() GetSupplyVoltage() used measure battery voltage during Transmission. This function called application after last byte datagram shifted into RFD. 2.4.2 Actions Trigger Supply Voltage measurement 2.4.3 Prototype void TriggerSupplyVoltage void 2.4.4 Table none Inputs TriggerSupplyVoltage: Input Parameters Type -Name -Description Register Address 2.4.5 Table Outputs TriggerSupplyVoltage: Output values Name Register/ Address Type none Description 2.4.6 Table Type Registers Stack Resource Usage TriggerSupplyVoltage: Resources used modified -ADCM Bytes Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.4.7 Table Value Execution Information TriggerSupplyVoltage: Execution Information Unit Conditions Instruction Cycles Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.5.1 GetSupplyVoltage() Description This function reads Supply Voltage measurement result. StartSupplyVoltage(), TriggerSupplyVoltage() GetSupplyVoltage() used measure battery voltage during Transmission. This function called application after transmission finished. 2.5.2 Actions Read Supply Voltage measurement result 2.5.3 Prototype unsigned char GetSupplyVoltage signed idata Batt_Result 2.5.4 Table Inputs GetSupplyVoltage: Input Parameters Type unsigned idata* Name Batt_Result Description iData pointer integer array containing measurement result Register Address 2.5.5 Table Outputs GetSupplyVoltage: Output values Name StatusByte Register/ Address Type unsigned char Description 0000.0000b: Success xxxx.xxx1b: Underflow Result xxxx.xx1xb: Overflow Result 0x8000 -4096.0 (Only theoretical number) 0x0000 0x7FFF 4095.875 4096 where 10Bit Result Value: 0000.00xx.xxxx.xxxxb *Batt_Result+0 signed Compensated battery voltage *Batt_Result+1 signed battery voltage Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.5.6 Table Type Registers Stack Resource Usage GetSupplyVoltage: Resources used modified PSW, DPH, DHL, ADCS, ADCDL, ADCDH, CFG1, CFG2, Bytes 2.5.7 Table Value Execution Information GetSupplyVoltage: Execution Information Unit Conditions Instruction Cycles Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.6.1 PowerDown() Description This function forces device POWER DOWN state. 2.6.2 Actions Waits until peripherals Transmission Interval Timer value storing) have completed their ongoing operations Enter POWER DOWN state 2.6.3 Prototype void PowerDown(void) 2.6.4 Table none Inputs PowerDown: Input Parameters Type -Name -Description Register Address 2.6.5 Table Outputs PowerDown: Output values Name Register/ Address Type none Description 2.6.6 Table Type Registers Stack Resource Usage PowerDown: Resources used modified none PSW, FCS, CFG0, Bytes 2.6.7 Table Value Execution Information PowerDown: Execution Information Unit Conditions ITinit RFSE before entering PDWN Instruction Cycles Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.7.1 ThermalShutdown() Description This function forces device THERMAL SHUTDOWN state. application should call this function whenever ambient temperature close maximum operating range (this detected using Meas_Temperature()) protect device while ambient temperature above specified operating conditions. this function called when temperature below TMAX threshold function will return without action application program will continue uninterrupted, temperature above TMAX threshold THERMAL SHUTDOWN state entered. 2.7.2 Actions Turn TMAX Detector Enter THERMAL SHUTDOWN state TMAX Detector set. 2.7.3 Prototype void ThermalShutdown(void) 2.7.4 Table none Inputs ThermalShutdown: Input Parameters Type -Name -Description Register Address 2.7.5 Table Outputs ThermalShutdown: Output values Name Register/ Address Type none Description 2.7.6 Table Type Registers Stack Resource Usage ThermalShutdown: Resources used modified PSW, DPL, DPH, TMAX, CFG0, Bytes Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.7.7 Table Value Execution Information ThermalShutdown: Execution Information Unit Conditions Temp. TMAX: function will return without action Temp. TMAX: function will enter THERMAL SHUTDOWN state Instruction Cycles Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.8.1 Switch2XTAL() Description This function switches system clock from Oscillator crystal oscillator, tunes enables PLL. 2.8.2 Actions Switch system clock crystal oscillator (Delay time speficied XTCFG) Call library function VCOTuning() tune enable transmission. 2.8.3 Prototype signed char Switch2XTAL(void) 2.8.4 Table none Inputs Switch2XTAL: Input Parameters Type -Name -Description Register Address 2.8.5 Table Outputs Switch2XTAL: Output values Name StatusByte Register/Address Type signed char Description StatusByte: Success Tuning Tuning successful, mean tuning curve selected Wrong clock source selected (crystal required) 2.8.6 Table Type Registers Stack Resource Usage Switch2XTAL: Resources used modified PSW, RFFSLD, RFC, RFVCO, DIVIC, CFG0, Bytes Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.8.7 Table Value Charge Consumption Switch2XTAL: Charge Consumption 13.4 Unit Conditions typ: using reduced tuning curves (retuning) max: perform tuning curves (first tuning after RESET) XTCFG=0x03, DIVIC 0x00 systemclock= Oscillator Charge Consumption 2.8.8 Table Value Execution Time Switch2XTAL: Execution Time 2393 4473 Unit Conditions typ: using reduced tuning curves (retuning) max: perform tuning curves (first tuning after RESET) XTCFG=0x03, DIVIC 0x00 systemclock= Oscillator Execution Time Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.9.1 Switch2RC() Description This function switches system clock from crystal oscillator back Oscillator. Note: transmission performed before this function called, recommended disable clearing RFC.1[ENFSYN] reduce current consumption. 2.9.2 Actions Switch system clock Oscillator 2.9.3 Prototype void Switch2RC(void) 2.9.4 Table none Inputs Switch2RC: Input Parameters Type -Name -Description Register Address 2.9.5 Table Outputs Switch2RC: Output values Name Register/ Address Type none Description 2.9.6 Table Type Registers Stack Resource Usage Switch2RC: Resources used modified none CFG0, TCON, LFDIV1, DSR, Bytes Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.9.7 Table Value Execution Information Switch2RC: Execution Information Unit Conditions Instruction Cycles Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.10 2.10.1 VCOTuning() Description This function selects appropriate tuning curve enables PLL. does scan complete tuning curve range returns soon locks. Note: transmission performed immediately after this function called, recommended disable clearing RFC.1[ENFSYN] reduce current consumption. 2.10.2 Actions Select appropriate tuning curve enable rapid transmission 2.10.3 Prototype signed char VCOTuning(void) 2.10.4 Table none Inputs VCOTuning: Input Parameters Type -Name -Description Register Address 2.10.5 Table Outputs VCOTuning: Output values Name StatusByte Register/ Address Type signed char Description StatusByte: Success Tuning Tuning successful, mean tuning curve selected Wrong clock source selected (crystal required) 2.10.6 Table Type Registers Stack Resource Usage VCOTuning: Resources used modified PSW, RFFSLD, RFC, RFVCO, DIVIC, Bytes Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.10.7 Table Value Charge Consumption VCOTuning: Charge Consumption Unit Conditions typ: using reduced tuning curves (retuning) max: perform tuning curves (first tuning after RESET) DIVIC 0x00 systemclock XTAL Charge Consumption 2.10.8 Table Value Execution Time VCOTuning: Execution Time 1032 2624 Unit Conditions typ: using reduced tuning curves (retuning) max: perform tuning curves (first tuning after RESET) DIVIC 0x00 systemclock XTAL Execution Time Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.11 2.11.1 VCOTuningLong() Description This function selects appropriate tuning curve enables PLL. contrast VCOTuning function, this routine scans complete curve range. Note: transmission performed immediately after this function called, recommended disable clearing RFC.1[ENFSYN] reduce current consumption. 2.11.2 Actions Select appropriate tuning curve Enable rapid transmission 2.11.3 Prototype signed char VCOTuningLong(void) 2.11.4 Table none Inputs VCOTuningLong: Input Parameters Type -Name -Description Register Address 2.11.5 Table Outputs VCOTuningLong: Output values Name StatusByte Register/ Address Type signed char Description StatusByte: Success Tuning Tuning successful, mean tuning curve selected Wrong clock source selected (crystal required) 2.11.6 Table Type Registers Stack Resource Usage VCOTuningLong: Resources used modified PSW, RFFSLD, RFC, RFVCO, DIVIC, Bytes Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.11.7 Table Value Charge Consumption VCOTuningLong: Charge Consumption Unit Conditions typ: using reduced tuning curves (retuning) max: perform tuning curves (first tuning after RESET) DIVIC 0x00 systemclock XTAL Charge Consumption 2.11.8 Table Value Execution Time VCOTuningLong: Execution Time 1032 2624 Unit Conditions typ: using reduced tuning curves (retuning) max: perform tuning curves (first tuning after RESET) DIVIC 0x00 systemclock XTAL Execution Time Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.12 2.12.1 CalibrateIntervalTimer() Description This function initiates calibration interval timer precounter (ITPL ITPH). function work with both clock sources (12MHz Clock Crystal clock), utilizing special timer mode. Note: accuracy reasons recommended call this function with crystal oscillator selected system clock. case crystal oscillator used crystal frequency divided stored FLASH user configuration sector address 57FAH (MSByte) 57FCH (LSByte). value found this FLASH location within range default clock frequency assumed tuning. This function automatically calibrates addition interval timer On/Off Timer precounter (SFR LFOOTP) 2.12.2 Actions Calibrate interval timer precounter (SFR ITPL, ITPH) Calibrate On/Off timer precounter (SFR LFOOTP) 2.12.3 Prototype signed char CalibrateIntervalTimer(unsigned char WU_Frequency) 2.12.4 Table Inputs CalibrateIntervalTimer: Input Parameters Type Name Description base frequency interval timer precounter [Hz] 1dec: (precounter time ~1000 2dec: (precounter time ~500 19dec: (precounter time 20dec: (precounter time unsigned char WU_Frequency Register Address Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.12.5 Table Outputs CalibrateIntervalTimer: Output values Name StatusByte Register/ Address Type signed char Description StatusByte: Success valid crystal frequency found FLASH Input parameter range 2.12.6 Table Type Registers Stack Resource Usage CalibrateIntervalTimer: Resources used modified PSW, DPL, DPH, TCON, TMOD, TH0, TL0, CFG0, ITPL, ITPH, LFOOTP, DIVIC, Bytes 2.12.7 Table Value Charge Consumption CalibrateIntervalTimer: Charge Consumption Unit Conditions DIVIC 0x00 systemclock XTAL Charge Consumption 2.12.8 Table Value Execution Time CalibrateIntervalTimer: Execution Time 1820 Unit Conditions DIVIC 0x00 systemclock XTAL Execution Time Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.13 2.13.1 LFBaudrateCalibration() Description Calling this function calibrates baudrate divider towards crystal oscillator, thus eliminating impact drift offset Oscillator baudrate accuracy. Oscillator LFDIV1/0 baudrate crystal frequency divided stored FLASH user configuration sector address 57FAH (MSByte) 57FCH (LSByte). value found this FLASH location within range this function returns error StatusByte sets LFDIV1 LFDIV0 following nominal value: 12000000 LFDIV1/0 baudrate 2.13.2 Actions LFDIV1 LFDIV0 according current frequency Oscillator Switch from Oscillator XTAL 2.13.3 Prototype signed char LFBaudrateCalibration(unsigned baudrate) 2.13.4 Table Inputs LFBaudrateCalibration: Input Parameters Type unsigned Name baudrate Description baudrate 2000dec: 2000 baud 3900dec: 3900 baud 4000dec: 4000 baud Register Address Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.13.5 Table Register/ Address Outputs LFBaudrateCalibration: Output values Type signed char Name StatusByte Description StatusByte: Success valid crystal frequency found FLASH Input parameter range 2.13.6 Table Type Registers Stack Resource Usage LFBaudrateCalibration: Resources used modified R0,R1,R2,R3,R4,R5,R6,R7 DPH, DPL, PSW,CFG0,LFDIV0,LFDIV1, TH0,TL0,TMOD, TCON, Bytes 2.13.7 Table Value Charge Consumption LFBaudrateCalibration: Charge Consumption Unit Conditions Baudrate 4000 DIVIC 0x00 systemclock XTAL Charge Consumption 2.13.8 Table Value Execution Time LFBaudrateCalibration: Execution Time Unit Conditions Baudrate 4000 DIVIC 0x00 systemclock XTAL Execution Time Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.14 2.14.1 ULongDivision() (32Bit 32Bit) Description This function divides unsigned long value (32bit) Dividend unsigned long value (32bit) Divisor. 2.14.2 Actions Perform division 2.14.3 Prototype unsigned long ULongDivision(unsigned long idata Dividend, unsigned long idata Divisor) 2.14.4 Table Inputs ULongDivision: Input Parameters Type unsigned long idata* unsigned long idata* Name Dividend Divisor Description iData Pointer Dividend iData Pointer Divisor Register Address 2.14.5 Table Outputs ULongDivision: Output values Name Quotient Register/ Address Type R4(MSB), R7(LSB) unsigned long Description Quotient division (Dividend Divisor) 2.14.6 Table Type Registers Stack Resource Usage ULongDivision: Resources used modified PSW, DPL, DPH, Bytes Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.14.7 Table Value Execution Information ULongDivision: Execution Information Unit Conditions Instruction Cycles Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.15 2.15.1 UIntDivision() (16Bit 16Bit) Description This function divides unsigned value (16bit) Dividend unsigned value (16bit) Divisor. 2.15.2 Actions Perform division 2.15.3 Prototype unsigned Divisor) unsigned UIntDivision(unsigned Dividend, 2.15.4 Table R6(MSB) R7(LSB) R4(MSB) R5(LSB) Inputs UIntDivision: Input Parameters Type unsigned unsigned Name Dividend Divisor Description Dividend Divisor Register Address 2.15.5 Table Outputs UIntDivision: Output values Name Description Quotient division (Dividend Divisor) Register/ Address Type R6(MSB), R7(LSB) unsigned Quotient 2.15.6 Table Type Registers Stack Resource Usage UIntDivision: Resources used modified PSW, Bytes Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.15.7 Table Value Execution Information UIntDivision: Execution Information Unit Conditions Instruction Cycles Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.16 2.16.1 CRC8Calculation() Description This function calculates CRC-8 checksum memory area using fixed polynomial (x8+x2+x+1). 2.16.2 Actions Calculate CRC-8 2.16.3 Prototype unsigned char idata BlockStart, unsigned char BlockLength) unsigned char CRC8Calculation(unsigned char Preload, 2.16.4 Table Inputs CRC8Calculation: Input Parameters Type unsigned char unsigned char idata* unsigned char Name Preload BlockStart BlockLength Description Preload Value Calculation. Usually 0xFF iData Pointer first Byte Data that used calculating checksum Length Block that used calculation checksum, starting with *BlockStart. Register Address 2.16.5 Table Outputs CRC8Calculation: Output values Name CRC_Result Register/ Address Type unsigned char Description calculated CRC8 checksum 2.16.6 Table Type Registers Stack Resource Usage CRC8Calculation: Resources used modified PSW, Bytes Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.16.7 Table Value Execution Information CRC8Calculation: Execution Information 3+x*17 Unit Conditions Number Bytes Instruction Cycles Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.17 2.17.1 CRC8_410() Description This function calculates CRC-8 checksum memory area using fixed polynomial (x8+x4+x+1). 2.17.2 Actions Calculate CRC-8 2.17.3 Prototype unsigned char idata BlockStart, unsigned char BlockLength) unsigned char CRC8_410(unsigned char Preload, 2.17.4 Table Inputs CRC8_410: Input Parameters Type unsigned char unsigned char idata* unsigned char Name Preload BlockStart BlockLength Description Preload Value Calculation. Usually 0xFF iData Pointer first Byte Data that used calculating checksum Length Block that used calculation checksum, starting with *BlockStart. Register Address 2.17.5 Table Outputs CRC8_410: Output values Name CRC_Result Register/ Address Type unsigned char Description calculated CRC8 checksum 2.17.6 Table Type Registers Stack Resource Usage CRC8_410: Resources used modified PSW, Bytes Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.17.7 Table Value Execution Information CRC8_410: Execution Information 10+x*20 Unit Conditions Number Bytes Instruction Cycles Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.18 2.18.1 ReadManufacturerRevNum() Description This function returns PMA5110 revision number 2.18.2 Actions Read 2-byte Revision Number 2.18.3 Prototype signed ReadManufacturerRevNum (void) 2.18.4 Table none Inputs ReadManufacturerRevNum: Input Parameters Type -Name -Description Register Address 2.18.5 Table Outputs ReadManufacturerRevNum: Output values Name Firmware Revision Register/ Address Type R6(MSB), R7(LSB) signed Description 0x00A1: Design Step 2.18.6 Table Type Registers Stack Resource Usage ReadManufacturerRevNum: Resources used modified Bytes 2.18.7 Table Value Execution Information ReadManufacturerRevNum: Execution Information Unit Conditions Instruction Cycles Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.19 2.19.1 ReadCustomerRevNum() Description This function returns Customer Library revision number. 2.19.2 Actions Read 2-byte Revision Number 2.19.3 Prototype signed ReadCustomerRevNum (void) 2.19.4 Table none Inputs ReadCustomerRevNum: Input Parameters Type -Name -Description Register Address 2.19.5 Table Outputs ReadCustomerRevNum: Output values Name Revision Register/ Address Type R6(MSB), R7(LSB) signed Description 0xCxxx: Customer Code (defined IFX) Customer defined Rev. Number 2.19.6 Table Type Registers Stack Resource Usage ReadCustomerRevNum: Resources used modified A,PSW, DPL, DPH, Bytes 2.19.7 Table Value Execution Information ReadCustomerRevNum: Execution Information Unit Conditions Instruction Cycles Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.20 2.20.1 EraseUserConfigSector() Description This function erases FLASH user configuration sector located FLASH address 5780H 57FFH Lockbyte set. Lockbyte this function will return without action. Note: application software ensure that FLASH only programmed erased when required environmental conditions fulfilled. Special care taken that ambient temperature TFL, supply voltage VbatFL Endurance EnFL within specified range (see "Reference Documents" Page 80.) This function returns effect executed DEBUG mode. 2.20.2 Actions Erase FLASH user configuration sector 2.20.3 Prototype signed char EraseUserConfigSector (void) 2.20.4 Table none Inputs EraseUserConfigSector: Input Parameters Type -Name -Description Register Address 2.20.5 Table Outputs EraseUserConfigSector: Output values Name Statusbyte Register/ Address Type signed char Description success failed 2.20.6 Table Type Registers Stack Resource Usage EraseUserConfigSector: Resources used modified PSW, DPL, DPH, CRC0, CRC1, CRCC, CRCD, DIVIC, TCON, TH1, TL1, FCS, FCSERM, FCPP0, FCTKAS, FCSP, Bytes Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.20.7 Table Value Execution Information EraseUserConfigSector: Execution Information 204000 Unit Conditions Instruction Cycles Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.21 2.21.1 WriteUserConfigSectorLine() Description This function writes line FLASH user configuration sectors located FLASH address 5780H 587FH Lockbyte set. Lockbyte this function will return without action. written data verified after programming. case verification fails this function will return Note: application software ensure that FLASH only programmed erased when required environmental conditions fulfilled. Special care taken that ambient temperature TFL, supply voltage VbatFL Endurance EnFL within specified range (see "Reference Documents" Page 80.) This function returns effect executed DEBUG mode. 2.21.2 Actions Write Byte FLASH Line FLASH user configuration sectors 2.21.3 Prototype unsigned char idata WrData) signed char (unsigned Startaddress, 2.21.4 Table Inputs Input Parameters Type unsigned Name Stadtaddress Description Startaddress 0x5780: FLASH Line 0x57A0: FLASH Line 0x57C0: FLASH Line 0x57E0: FLASH Line 0x5800: FLASH Line 0x5820: FLASH Line 0x5840: FLASH Line 0x5860: FLASH Line iData Pointer first Byte Byte Data array that going written FLASH Line. Register Address unsigned char WrData idata* Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.21.5 Table Outputs Output values Name Statusbyte Register/ Address Type signed char Description success failed 2.21.6 Table Type Registers Stack Resource Usage Resources used modified A,CFG2,DIVIC,CRCD, Bytes 2.21.7 Table Value Execution Information Execution Information 4400 Unit Conditions Instruction Cycles Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.22 2.22.1 SetLockbyte3() Description This function sets Lockbyte which protects User Configuration sectors. Attention: This function shows only effect Lockbyte that protects Code Sector set. Note: application software ensure that FLASH only programmed erased when required environmental conditions fulfilled. Special care taken that ambient temperature TFL, supply voltage VbatFL Endurance EnFL within specified range (see "Reference Documents" Page 80.) This function returns effect executed DEBUG mode. 2.22.2 Actions Lockbyte protecting User Configuration sectors 2.22.3 Prototype signed char SetLockbyte3(void) 2.22.4 Table none Inputs SetLockbyte3: Input Parameters Type -Name -Description Register Address 2.22.5 Table Outputs SetLockbyte3: Output values Name Statusbyte Register/ Address Type signed char Description success failed 2.22.6 Table Type Registers Stack Resource Usage SetLockbyte3: Resources used modified Bytes Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.22.7 Table Value Execution Information SetLockbyte3: Execution Information 235500 Unit Conditions Instruction Cycles Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.23 2.23.1 InitRF() Description This function prepares RF-Transmission configuring corresponding Special Function Registers (SFR). 2.23.2 Actions correspondig SRFs RF-transmission according user input structrue. 2.23.3 Prototype void InitRF(struct RF_Config idata idata RFConfig) 2.23.4 Table Inputs InitRF: Input Parameters Type idata Name RF_Config Description Pointer struct with following definition: struct RF_Config ENCODING Encoding; unsigned char dataLength; QUIESCENT Quiescent; INTMASK IntMask; DUTYCONTROL DutyControl; DUTYCYCLE DutyCycle; MODULATION Modulation; INVERSION Invert; FREQUENCY Frequency; OUTSTAGES OutStages; XCAPSHORT XcapShort; unsigned char xtal0; unsigned char xtal1; unsigned baudrate; Remark: Enum variables defined file PMA5110_ROMLibrary.h. Register Address 2.23.5 Table Outputs InitRF: Output values Name Register/ Address Type none Description Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.23.6 Table Type Registers Stack Resource Usage InitRF: Resources used modified PSW, RFENC, RFTX, RFFSPLL, XTAL0, XTAL1, TMOD2, TCON2, TH3, TL3, TH2, TL2, Bytes 2.23.7 Table Value Execution Information InitRF: Execution Information 1020 Unit Conditions Instruction Cycles Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.24 2.24.1 TransmitRF() Description This function transmits given data packet according preset corresponding SFRs. 2.24.2 Actions Transmit given data packet 2.24.3 Prototype signed char TransmitRF(unsigned char idata *DataArray, unsigned char BlockLength) 2.24.4 Table Inputs TransmitRF: Input Parameters Type Name Description Pointer data block that will transmitted Length data block bytes unsigend char DataArray idata unsigend char BlockLength Register Address 2.24.5 Table Outputs TransmitRF: Output values Name Statusbyte Register/ Address Type signed char Description success BlockLength 2.24.6 Table Type Registers Stack Resource Usage TransmitRF: Resources used modified PSW, TCON2, RFS, RFD, Bytes Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.24.7 Table Value Execution Information TransmitRF: Execution Information 13+X(10 Unit Conditions BlockLength Y.Time sending byte (baudrate dep.) Instruction Cycles Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.25 2.25.1 AES128Encrypt() Description This function performs Encryption with 128-Bit data 128-Bit key. 2.25.2 Actions Prepare data encryption Encrypt 128-Bit data with 128-Bit using AES. Copy back results 2.25.3 Prototype void AES128Encrypt(const unsigned char idata* InputData, unsigned char idata* OutputData, const unsigned char idata* 2.25.4 Table Inputs AES128Encrypt: Input Parameters Type Name Description Pointer 128-Bit data encryption InputData const unsigned char idata* unsigned char OutputData idata* const unsigned char idata* Register Address Pointer 128-Bit encryption result Pointer 128-Bit 2.25.5 Table Outputs AES128Encrypt: Output values Name Register/ Address Type none Description 2.25.6 Table Type Registers Stack Resource Usage AES128Encrypt: Resources used modified A,B,DPTR,IE Bytes Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.25.7 Table Value Execution Information AES128Encrypt: Execution Information 2072 Unit Conditions Clock High DIVIC 0x00 Execution time Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.26 2.26.1 AES128Decrypt() Description This function performs Decryption with 128-Bit data 128-Bit key. 2.26.2 Actions Prepare data decryption Decrypt 128-Bit data with 128-Bit using AES. Copy back results 2.26.3 Prototype signed char AES128Decrypt(void) 2.26.4 Table Inputs AES128Decrypt: Input Parameters Type Name Description Pointer 128-Bit data decryption InputData const unsigned char idata* unsigned char OutputData idata* const unsigned char idata* Register Address Pointer 128-Bit decryption result Pointer 128-Bit 2.26.5 Table Outputs AES128Decrypt: Output values Name Register/ Address Type none Description 2.26.6 Table Type Registers Stack Resource Usage AES128Decrypt: Resources used modified A,B,DPTR,IE Bytes Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.26.7 Table Value Execution Information AES128Decrypt: Execution Information 3055 Unit Conditions Clock= High DIVIC 0x00 Execution Time Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.27 2.27.1 Wr_EEByte() Description This function writes single byte EEPROM Emulation. Attention: This function shows only effect Lockbyte that protects User Configuration Sectors set. Note: application software ensure that FLASH only programmed erased when required environmental conditions fulfilled. Special care taken that ambient temperature TFL, supply voltage VbatFL Endurance EnFL within specified range (see "Reference Documents" Page 80.) This function returns effect executed DEBUG mode. 2.27.2 Actions current EEPROM content byte content Write back EEPROM content 2.27.3 Prototype signed char WR_EEByte(unsigned char Address, unsigned char EEByte) 2.27.4 Table Inputs Wr_EEByte: Input Parameters Type Name Description Address byte location (0x00-0x1E) Byte write unsigned char Address unsigend char EEByte Register Address 2.27.5 Table Outputs Wr_EEByte: Output values Name Statusbyte Register/ Address Type signed char Description success Address range Lockbyte Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.27.6 Table Type Registers Stack Resource Usage Wr_EEByte: Resources used modified PSW, DPL, DPH, CRC0, CRC1, CRCC, CRCD, DIVIC, TCON, TH1, TL1, FCS, FCSERM, FCPP0, FCTKAS, FCSP, Bytes 2.27.7 Table Value Execution Information Wr_EEByte: Execution Information 4760 212750 Unit Conditions typ.: Writing line without erasing max.: Writing line with erasing (startup every fourth time) Instruction Cycles Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.28 2.28.1 Wr_EEInt() Description This function writes value EEPROM Emulation. Attention: This function shows only effect Lockbyte that protects User Configuration Sectors set. Note: application software ensure that FLASH only programmed erased when required environmental conditions fulfilled. Special care taken that ambient temperature TFL, supply voltage VbatFL Endurance EnFL within specified range (see "Reference Documents" Page 80.) This function returns effect executed DEBUG mode. 2.28.2 Actions current EEPROM content value content Write back EEPROM content 2.28.3 Prototype signed char WR_EEInt(unsigned char Address, unsigned EEInt) 2.28.4 Table Inputs Wr_EEInt: Input Parameters Type unsigend Name EEInt Description Address location (0x00-0x1D) value write unsigned char Address Register Address 2.28.5 Table Outputs Wr_EEInt: Output values Name Statusbyte Register/ Address Type signed char Description success Address range Lockbyte Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.28.6 Table Type Registers Stack Resource Usage Wr_EEInt: Resources used modified PSW, DPL, DPH, CRC0, CRC1, CRCC, CRCD, DIVIC, TCON, TH1, TL1, FCS, FCSERM, FCPP0, FCTKAS, FCSP, Bytes 2.28.7 Table Value Execution Information Wr_EEInt: Execution Information 4760 212750 Unit Conditions typ.: Writing line without erasing max.: Writing line with erasing (startup every fourth time) Instruction Cycles Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.29 2.29.1 Wr_EELong() Description This function writes long value EEPROM Emulation. Attention: This function shows only effect Lockbyte that protects User Configuration Sectors set. Note: application software ensure that FLASH only programmed erased when required environmental conditions fulfilled. Special care taken that ambient temperature TFL, supply voltage VbatFL Endurance EnFL within specified range (see "Reference Documents" Page 80.) This function returns effect executed DEBUG mode. 2.29.2 Actions current EEPROM content long value content Write back EEPROM content 2.29.3 Prototype signed char WR_EELong(unsigned char Address, unsigned long idata *EELong) 2.29.4 Table Inputs Wr_EELong: Input Parameters Type unsigend long idata* Name EELong Description Address byte location (0x00-0x1B) Pointer long value write unsigned char Address Register Address 2.29.5 Table Outputs Wr_EELong: Output values Name Statusbyte Register/ Address Type signed char Description success Address range Lockbyte Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.29.6 Table Type Registers Stack Resource Usage Wr_EELong: Resources used modified PSW, DPL, DPH, CRC0, CRC1, CRCC, CRCD, DIVIC, TCON, TH1, TL1, FCS, FCSERM, FCPP0, FCTKAS, FCSP, Bytes 2.29.7 Table Value Execution Information Wr_EELong: Execution Information 4760 212750 Unit Conditions typ.: Writing line without erasing max.: Writing line with erasing (startup every fourth time) Instruction Cycles Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.30 2.30.1 Wr_EEString() Description This function writes string EEPROM Emulation. Attention: This function shows only effect Lockbyte that protects User Configuration Sectors set. Note: application software ensure that FLASH only programmed erased when required environmental conditions fulfilled. Special care taken that ambient temperature TFL, supply voltage VbatFL Endurance EnFL within specified range (see "Reference Documents" Page 80.) This function returns effect executed DEBUG mode. 2.30.2 Actions current EEPROM content string content Write back EEPROM content 2.30.3 Prototype signed char WR_EEString(unsigned char Address, unsigned char Length, unsigned char idata Buffer) 2.30.4 Table Inputs Wr_EEString: Input Parameters Type Name Description Address string location (0x00-0x1E) String length (0-31) (addr length 0x20) Pointer buffer with string content unsigned char Address unsigend char Length unsigend char Buffer idata* Register Address 2.30.5 Table Outputs Wr_EEString: Output values Name Statusbyte Register/ Address Type signed char Description success Address range Lockbyte Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.30.6 Table Type Registers Stack Resource Usage Wr_EEString: Resources used modified PSW, DPL, DPH, CRC0, CRC1, CRCC, CRCD, DIVIC, TCON, TH1, TL1, FCS, FCSERM, FCPP0, FCTKAS, FCSP, Bytes 2.30.7 Table Value Execution Information Wr_EEString: Execution Information 4760 212750 Unit Conditions typ.: Writing line without erasing max.: Writing line with erasing (startup every fourth time) Instruction Cycles Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.31 2.31.1 Get_EEByte() Description This function reads single byte EEPROM Emulation. 2.31.2 Actions Read byte from current EEPROM content 2.31.3 Prototype unsigned char Get_EEByte(unsigned char Address) 2.31.4 Table Inputs Get_EEByte: Input Parameters Type Name Description Address byte location (0x00-0x1E) unsigned char Address Register Address 2.31.5 Table Outputs Get_EEByte: Output values Name EEByte Register/ Address Type unsigned char Description Address range/ data written 0xXX: success 2.31.6 Table Type Registers Stack Resource Usage Get_EEByte: Resources used modified PSW, DPL, DPH, Bytes 2.31.7 Table Value Execution Information Get_EEByte: Execution Information Unit Conditions Instruction Cycles Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.32 2.32.1 Get_EEInt() Description This function reads EEPROM Emulation. 2.32.2 Actions Read from current EEPROM content 2.32.3 Prototype unsigned Get_EEInt(unsigned char Address) 2.32.4 Table Inputs Get_EEInt: Input Parameters Type Name Description Address byte location (0x00-0x1D) unsigned char Address Register Address 2.32.5 Table Outputs Get_EEInt: Output values Name EEInt Register/ Address Type R6,R7 unsigned Description Address range/ data written 0xXXXX: success 2.32.6 Table Type Registers Stack Resource Usage Get_EEInt: Resources used modified PSW, DPL, DPH, Bytes 2.32.7 Table Value Execution Information Get_EEInt: Execution Information Unit Conditions Instruction Cycles Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.33 2.33.1 Get_EELong() Description This function reads long EEPROM Emulation. 2.33.2 Actions Read long from current EEPROM content 2.33.3 Prototype unsigned long Get_EELong(unsigned char Address) 2.33.4 Table Inputs Get_EELong: Input Parameters Type Name Description Address byte location (0x00-0x1B) unsigned char Address Register Address 2.33.5 Table Outputs Get_EELong: Output values Name EELong Register/ Address Type R4-R7 (MSB unsigned long Description Address range/ data written 0xXXXXXXXX: success 2.33.6 Table Type Registers Stack Resource Usage Get_EELong: Resources used modified PSW, DPL, DPH, Bytes 2.33.7 Table Value Execution Information Get_EELong: Execution Information Unit Conditions Instruction Cycles Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.34 2.34.1 Get_EEString() Description This function reads string EEPROM Emulation. 2.34.2 Actions Read string from current EEPROM content 2.34.3 Prototype signed char Get_EEString(unsigned char Address, unsigned char Length, unsigend char idata Buffer) 2.34.4 Table Inputs Get_EEString: Input Parameters Type Name Description Address byte location (0x00-0x1E) String length (0-31) (addr length 0x20) Pointer location place string content unsigned char Address unsigend char Length unsigned char Buffer idata* Register Address 2.34.5 Table Outputs Get_EEString: Output values Name Status Register/ Address Type signed char Description success Address range/string long data written 2.34.6 Table Type Registers Stack Resource Usage Get_EEString: Resources used modified PSW, DPL, DPH, Bytes Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Library Functions 2.34.7 Table Value Execution Information Get_EEString: Execution Information 7*Length Unit Conditions Instruction Cycles Preliminary Library Function Guide V1.1, 2008-06-18 PMA5110 Reference Documents Reference Documents This section contains documents used cross- reference throughout this document. Table Reference Number Reference Documents Document description PMA5110_DS_Preliminary_V1_2.pdf Preliminary Library Function Guide V1.1, 2008-06-18 www.infineon.com Published Infineon Technologies Other recent searchesRHFL4913A - RHFL4913A RHFL4913A Datasheet R61ZOV361HC - R61ZOV361HC R61ZOV361HC Datasheet MT90840 - MT90840 MT90840 Datasheet DS404 - DS404 DS404 Datasheet AT-41532 - AT-41532 AT-41532 Datasheet SC-70 - SC-70 SC-70 Datasheet
Privacy Policy | Disclaimer |