em78f644nso28s ELAN Microelectronics Corp, em78f644nso28s Datasheet - Page 122

no-image

em78f644nso28s

Manufacturer Part Number
em78f644nso28s
Description
Flash Series 8-bit Microcontroller
Manufacturer
ELAN Microelectronics Corp
Datasheet
EM78F648/644/642/641/548/544/542/541N
8-Bit Microcontroller
112 •
6.8.3 Master Mode I2C Tranmit
In transmitting serial data, the I2C operates as follows:
1. Set I2CTS1~0, I2CCS, and ISS bits to select I2C transmit clock source.
2. Set I2CEN and IMS bits to enable I2C master function.
3. Write Slave address into the I2CSA register and IRW bit to select Read or Write.
4. Set strobe bit will start transmitting and then Check SAR_EMPTY bit.
5. Write 1
6. Write 2
6.8.2 Slave Mode I2C Tranmit
In receiving, the I2C operates as follows:
1. Set I2CTS1~0, I2CCS, and ISS bits to select I2C transmit clock source.
2. Set I2CEN and IMS bits to enable I2C Slave function.
3. Write device address into the I2CDA register.
4. Check FULL bit, read I2CDB register (address), and then clear Pend bit.
5. Check FULL bit, read I2CDB register (1
6. Check FULL bit, read I2CDB register (2
6.9 Dual Set of PWM (Pulse Width Modulation)
6.9.1 Overview
In PWM mode, PWMA and PWMB pins produce up to a 10-bit resolution PWM output
(see Figure 6-21a below for the functional block diagram). A PWM output has a
period and a duty cycle, and it keeps the output in high. The baud rate of the PWM is
the inverse of the period. Figure 6-21b depicts the relationships between a period and
a duty cycle.
EMPTY bit.
st
nd
data into the I2CDB register, set Strobe bit and Check EMPTY bit.
data into the I2CDB register, set Strobe bit, STOP bit and Check
(This specification is subject to change without further notice)
st
nd
data), and then clear Pend bit.
data), and then clear Pend bit.
Product Specification (V1.0) 05.05.2010

Related parts for em78f644nso28s