English
Language : 

ADUC7030 Datasheet, PDF (131/150 Pages) Analog Devices – Integrated Precision Battery Sensor For Automotive
Preliminary Technical Data
ADuC7030/ADuC7033
An example code segment configuring the STI port to transmit 5 bytes and then to transmit 2 bytes is shown below:
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. PrE | Page 131 of 150