EasyManuals Logo
Home>Texas Instruments>Motherboard>AFE4500EVM

Texas Instruments AFE4500EVM User Manual

Texas Instruments AFE4500EVM
52 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #29 background imageLoading...
Page #29 background image
6.2.2 Writing and Reading from AFE4500
AFE.writeReg(address,data)
This function can be called to write any register. The parameter “address [8:8]” is considered as the Page.
Parameter “address [7:0]” is considered as the register address.
Parameter “data” is the data that will be written to the given register address and page.
AFE.readReg (address)
This function can be called to read any register value. The parameter “address [8:8]” is considered as the
Page.
Parameter “address [7:0]” is considered as the register address.
The returned value will be the data of the register in the mentioned page.
Below example shows reading from register 0xC1, modifying only bit 0X42[5:4] (INT_MUX_ADC_RDY_1)
with the value of 2 and then reading back the modified value to register 0x42.
6.2.3 Writing and Reading from bit fields using the bitfield names mentioned in datasheet
Open the Register Settings tab in the GUI and find the register bit field that need to be modified.
Simply double click the field to copy it to clipboard.
Paste the copied data into the script and assign the value.
An example is shown below showing Write and read from bit fields.
Note that there is “_” additionally added before the bitfield name while reading the value.
getValue() function returns the value of the field.
While doing a raw write using the AFE.writeReg function, the bitfield variables doesn’t get updated. In-order
to update the bitfield names, call function workSpaceWindow.updateRegisterSettingsTab()
www.ti.com
Modifying or Creating Own Script
SBAU370 – APRIL 2021
Submit Document Feedback
AFE4500 EVM User Guide 29
Copyright © 2021 Texas Instruments Incorporated

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments AFE4500EVM and is the answer not in the manual?

Texas Instruments AFE4500EVM Specifications

General IconGeneral
BrandTexas Instruments
ModelAFE4500EVM
CategoryMotherboard
LanguageEnglish

Related product manuals