aduc7033bstz-8l-rl Analog Devices, Inc., aduc7033bstz-8l-rl Datasheet - Page 118

no-image

aduc7033bstz-8l-rl

Manufacturer Part Number
aduc7033bstz-8l-rl
Description
Integrated Precision Battery Sensor For Automotive
Manufacturer
Analog Devices, Inc.
Datasheet
ADuC7033
An example code segment configuring the STI port to transmit five bytes and then to transmit two bytes follows:
T4LD = 267;
T4CON = 0xC0;
STIKEY0 = 07;
STICON = 0x11;
STIKEY1 = 0xb9;
STIDAT0 = 0xAABB;
STIDAT1 = 0xCCDD;
STIDAT2 = 0xFF;
while(STICON != 0x09)
{}
STIKEY0 = 07;
STICON = 0x05;
STIKEY1 = 0xb9;
STIDAT0 = 0xEEFF;
while(STICON != 0x09)
{}
// Timer4 Reload Value
// Enable T4, selecting core clock in periodic mode
// STICON start write sequence
// Enable and transmit 5 bytes
// STICON complete write
// 5 bytes for
// Transmission
// Wait for transmission to complete
// STICON start write sequence
// Enable and transmit 2 bytes
// STICON complete write
// 2 bytes for transmission
// Wait for transmission to complete
Rev. 0 | Page 118 of 136

Related parts for aduc7033bstz-8l-rl