Directed Electronics 3200HS Informacje Techniczne Strona 33

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 99
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 32
SCI to SPI Peripheral Communication in V850ES Microcontrollers
Figure 21. Temp_Read_2(): Read Temperature Sensor 2 (DS1722)
Delay 100ns after CS activeDelay 100ns after CS active
II
TEMP2_CS_ON (P9H.6 = 1)TEMP2_CS_ON (P9H.6 = 1)
CSI00_SendDone = FALSE
CALL CSI00_SendData(txbuf, 3)
CSI00_SendDone = FALSE
CALL CSI00_SendData(txbuf, 3)
FF
CALL CSI00_ReceiveData(rxbuf, 3)CALL CSI00_ReceiveData(rxbuf, 3)
Yes
No
SendDone
== FALSE?
Yes
No
SendDone
== FALSE?
TEMP2_CS_OFF (P9H.6 = 0)TEMP2_CS_OFF (P9H.6 = 0)
Return retval
GG
txbuf[0] = 0x01txbuf[0] = 0x01
CALL CSI00_SetType3( )CALL CSI00_SetType3( )
DD
Retval = rxbuf[2] << 8
Retval = retval | rxbuf[1]
Retval = retval / 2
Retval = rxbuf[2] << 8
Retval = retval | rxbuf[1]
Retval = retval / 2
The routine then calls CSI00_ReceiveData(rxbuf, 3) to set the location and count of bytes to be
read from the CSI00 peripheral. The first parameter, rxbuf, is a pointer to an array of byte values
to hold the data read; the second parameter, 3, is the count of bytes to receive.
The routine then sets the first byte of a transmit buffer, txbuf[0], to the address of the temperature
low byte, 01H. The routine sets the CSI00_SendDone flag to FALSE, and starts the write of the
address plus two dummy bytes by calling CSI00_SendData(txbuf, 3). The Temp_Read_2() routine
then waits for the CSI00_SendDone flag to be set.
On the call to CSI00_SendData(txbuf, 3), the transfer is started by writing the first byte of data
(01H) to the SOTB0L register. This data will be sent out the SO00 output and received at the SDI
input of the DS1722.
After the first byte has been sent, the INTCSI00 interrupt will occur, and the MD_INTCSI00()
interrupt service routine will transmit the next byte from txbuf[1], and read the received data into
27
Przeglądanie stron 32
1 2 ... 28 29 30 31 32 33 34 35 36 37 38 ... 98 99

Komentarze do niniejszej Instrukcji

Brak uwag

Philips DC200/93 manuals

Owner’s manuals and user’s guides for Alarm clocks Philips DC200/93.
We providing 1 pdf manuals Philips DC200/93 for download free by document types: User Manual


Philips DC200/93 User Manual (2 pages)


Brand: Philips | Category: Alarm clocks | Size: 0.50 MB |

 




More products and manuals for Alarm clocks Philips

Models Document Type
AZT9230 User Manual   Philips AZT9230 User's Manual, 27 pages
AJ3475/00 User Manual   Philips AJ3475/00 User manual, 2 pages
AJL308/98 User Manual   Philips AJL308/98 User manual, 6 pages
AJ3600/37 User Manual   Philips AJ3600/37 User manual, 18 pages
AJ3160/00C User Manual        Philips AJ3160/00C User manual, 8 pages
AJ3500/05 Datasheet   Philips Clock Radio AJ3500, 3 pages
AJ3916 Datasheet   Philips Clock Radio AJ3916 CD, 2 pages
AJ3650 Datasheet   Philips Clock Radio AJ3650, 2 pages
AJ4300B User Manual   Philips AJ4300B, 14 pages
AJ3121/79 User Manual   Philips AJ3121/79 User manual, 12 pages
AJ6000 User Manual   Philips AJ6000, 12 pages
AJH510/37 User Manual   Philips AJH510/37 User manual, 18 pages
TCJ330 User Manual   Philips TCJ330, 9 pages
DC291 User Manual   Philips DC291/17 User manual, 20 pages
AJT600 User Manual   Philips AJT600, 12 pages
AJ4000 User Manual   Philips AJ4000/05 User manual, 12 pages
AJ3116 User Manual   Philips Clock Radio AJ3116, 17 pages
AJB4700 User Manual   Philips Clock Radio AJB4700, 15 pages
AJ3400 User Manual   Philips Clock Radio AJ3400, 11 pages
AJ300D/05 User Manual   Philips AJ300D/05 User manual, 16 pages