EasyManua.ls Logo

Abov MC97F6108A User Manual

Default Icon
256 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #178 background imageLoading...
Page #178 background image
16. Inter Integrated Circuit (I2C) MC97F6108A User’s manual
178
16.7.4 Slave receiver
I2C Block that is under IIC enable and INTEN enable on I2CMR is monitoring I2C bus lines for being a
start condition and self-address with I2CSAD. To have both signals of start signal and getting self-
address, I2C block generate I2C interrupt with the status bits (SSEL, BUSY RXACK, SLAVE mode ...)
after sending ACK signal. At the time I2C block control SCL line to low state for ready to get/handle
next i2c data. If I2C block by I2C interrupt service is ready for next step, it is to release the SCL line to
high state for getting next SCL clock from the master. I2C Block decide bus direction (data
receive/transmission) by data direction (R/Wî¡­) bit in Slave address from master. The state of bus
direction is on TMOD bit on I2CSR register. If the master generate Stop condition I2C block receive
STOP condition and generate I2C interrupt. I2C interrupt service write any data to I2CSR and finish
Slave operation.
Example code of slave mode is introduced in the followings:
I2C Interrupt service
I2C Slave service
if(Getting SSEL and send ACK) // received Self-address form master
if(TMODE) // data direction (R/Wî¶¶)
I2CDR=I2C_TXData // Transmission mode, Load data
else
I2C_RXData =I2CDR
else
if (Get STOP condition)
else
if (TMODE) // data direction (R/Wî¶¶)
I2CDR= I2C_TXData // Transmission mode, Load data
else
I2C_RXData =I2CDR // Save received Data
I2CSR=0xff;

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the Abov MC97F6108A and is the answer not in the manual?

Abov MC97F6108A Specifications

General IconGeneral
BrandAbov
ModelMC97F6108A
CategoryMicrocontrollers
LanguageEnglish

Summary

Introduction to MC97F6108A

Reference Documents for MC97F6108A

Lists external documents and resources related to the MC97F6108A microcontroller, including programming tools.

MC97F6108A Device Description

MC97F6108A Device Overview

Provides a general overview of the MC97F6108A microcontroller's features and peripheral counts.

MC97F6108A Block Diagram

Illustrates the internal architecture and connectivity of the MC97F6108A microcontroller's core and peripherals.

MC97F6108A Pinouts and Pin Descriptions

MC97F6108A Pin Assignment

Details the pin configurations for the 20 SOP and 16 SOPN packages, including pin names and assignments.

Pin Description Details

Provides detailed descriptions of each pin's function, I/O type, and remarks for the MC97F6108A microcontroller.

MC97F6108A Port Structures

MC97F6108A Memory Organization

Program Memory Map

Describes the layout and addressing of the MC97F6108A's program memory space.

Data Memory Map

Explains the organization of internal data memory, including RAM, SFRs, and addressing modes.

SFR Map Summary

Provides a summary of the Special Function Registers (SFRs) available on the MC97F6108A.

MC97F6108A I/O Ports Configuration

P0 Port Registers

Details the registers for configuring the P0 port, including data, direction, pull-up, and open-drain settings.

P1 Port Registers

Describes the registers for configuring the P1 port, covering data, direction, pull-up, and open-drain settings.

MC97F6108A Interrupt Controller

Interrupt Vector Table

Lists all interrupt sources, their symbols, priorities, and vector addresses for the MC97F6108A.

Interrupt Register Overview

Details the various registers used for interrupt control, including enable, priority, and flag registers.

MC97F6108A Clock Generator

MC97F6108A Basic Interval Timer (BIT)

MC97F6108A Watchdog Timer (WDT)

MC97F6108A Timer0/1/2/3 Operation

16-bit Timer/Counter Mode

Explains the configuration and operation of the 16-bit timer/counter mode for Timer0/1/2/3.

16-bit Capture Mode

Details the operation of the 16-bit capture mode for Timer0/1/2/3, including data capture.

16-bit PWM Mode

Describes the 16-bit Pulse Width Modulation (PWM) mode for Timer0/1/2/3.

MC97F6108A PPG (Programmable Pulse Generator)

PPG Start and One Shot Pulse

Explains how to start the PPG and its operation in one-shot pulse mode.

Auto Period Mode by Comparator 2

Details the auto period mode operation controlled by Comparator 2.

MC97F6108A Analog Comparator and OP-AMP

Comparator and OP-AMP Description

Provides a detailed description of the analog comparators and operational amplifiers.

MC97F6108A Buzzer Driver

MC97F6108A 12-bit AD Converter (ADC)

Conversion Timing for ADC

Explains the timing requirements and calculation for ADC conversion.

ADC Operation Flow

Illustrates the step-by-step process for operating the Analog-to-Digital Converter.

MC97F6108A USART Operation

USART Data Format

Defines the serial frame format for USART communication, including start, data, parity, and stop bits.

USART Transmitter Operation

Details the functionality and flags of the USART transmitter unit.

USART Receiver Operation

Explains the operation of the USART receiver, including flags and error detection.

SPI Mode Operation

Describes how to configure and operate the USART in Serial Peripheral Interface (SPI) mode.

MC97F6108A Inter Integrated Circuit (I2C)

I2C Bit Transfer Timing

Illustrates the timing for transferring a single bit over the I2C bus.

I2C Start, Repeated Start, and Stop Conditions

Defines the conditions for starting, repeating start, and stopping I2C bus transactions.

I2C Data Transfer Procedure

Explains the process of transferring data bytes, including acknowledgment and MSB/LSB order.

I2C Initialization Process

Details the steps required to initialize the I2C block for slave device service.

MC97F6108A Power Down Operation Modes

Peripheral Operation in IDLE and STOP Modes

Summarizes peripheral behavior during IDLE, STOP1, and STOP2 power-down modes.

IDLE Mode Operation

Explains how to enter and exit the IDLE power-down mode.

STOP Mode Operation

Details the STOP power-down mode, including exit conditions and timing.

MC97F6108A Reset Features

Reset Block Diagram

Illustrates the internal reset circuitry and its various input sources.

Power On Reset (POR) Function

Describes the Power On Reset functionality and its impact on device operation.

External RESETB Input

Explains the behavior and timing of the external RESETB input pin.

Brown Out Detector (BOD) Processor

Details the on-chip brown-out detection circuit and its configuration.

MC97F6108A Memory Programming

Flash Control and Status Registers

Describes registers for controlling and monitoring Flash memory operations.

Serial In-System Programming (ISP) Mode

Explains the process and sequence for programming Flash memory via serial ISP.

Parallel Mode Operation

Details the parallel programming mode, including instruction format and timing diagrams.

Security Features and Lock Bits

Describes the security features and the use of lock bits for Flash memory protection.

MC97F6108A Electrical Characteristics

Absolute Maximum Ratings

Specifies the absolute maximum electrical ratings to prevent device damage.

Recommended Operating Conditions

Lists the recommended operating conditions for reliable device performance.

DC Characteristics

Provides DC electrical characteristics including voltage, current, and resistor values.

AC Characteristics

Details the AC timing parameters for various interfaces and operations.

Analog Comparator Characteristics

Specifies the DC characteristics for the analog comparators.

SPI Characteristics

Lists the timing parameters for the Serial Peripheral Interface (SPI) operation.

I2C Characteristics

Provides timing parameters for the Inter Integrated Circuit (I2C) communication.

Typical Characteristics

Presents typical performance data for guidance, not guaranteed.

MC97F6108A Package Information

20 SOP Package Outline

Provides the mechanical outline and dimensions for the 20-pin Small Outline Package.

16 SOPN Package Outline

Details the mechanical outline and dimensions for the 16-pin Small Outline Package.

MC97F6108A Ordering Information

MC97F6108A Development Tools

OCD II Emulator and Debugger

Describes the On-Chip Debugger II for emulation, programming, and debugging.

Flash Programming Procedures

Explains the steps for programming the Flash memory, including pin requirements.

On-Chip Debug System Overview

Introduces the features and capabilities of the On-Chip Debug (OCD II) system.

Appendix: Instruction Table

Related product manuals