
SCI to SPI Peripheral Communication in V850ES Microcontrollers
Figure 7. Maxim MAX6627 Remote Temperature Sensor
The interface to the master unit expects SCK to be low when idle; for an SPI controller, this would
require CPOL=0. It uses the first edge of SCK as the data capture strobe and the trailing edge as the
data drive strobe; the first data drive strobe is the transition of CS from high to low. For an SPI
controller, this would require CPHA=0. This is equivalent to an NEC Electronics Type 4 CSI
interface.
SPI clocking method CPOL = 0 CPHA = 0
NEC Electronics CSI clocking type CKPn = 1 DAPn = 1 Type 4 interface
When the chip select line is activated, the first data bit is driven on SDO by the MAX6627, is
clocked into the MCU by the rising edge of SCK, and then the next data bit is driven on the falling
edge of SCK. Sixteen clocks drive sixteen bits of data, from D15 (MSB) to D0 (LSB). The data
contains the temperature reading as a signed value, with a sign bit (D15), twelve bits of
temperature data (D14 to D3), a zero bit (D2), and two bits not driven (D1 and D0).
2N3904
Diode-Connected
NPN-Type Transistor
9
Kommentare zu diesen Handbüchern