Sample Programs For I 2 C - Fujitsu F2MC-8FX Hardware Manual

F2mc-8fx 8-bit microcontroller
Hide thumbs Also See for F2MC-8FX:
Table of Contents

Advertisement

22.9
Sample Programs for I
Fujitsu provides sample programs for operating the I
2
I
C Sample Programs
2
For I
C sample programs, see "
Setting Methods Other than Those in Sample Programs
Enabling/disabling I
Use the I
Selecting the I
Use the master/slave select bit (IBCR10.MSS).
Selecting the shift clock
Use the clock select bits (ICCR0. CS4/CS3/CS2/CS1/CS0).
Bypassing the m divider when the shift clock frequency is generated
Use the divider-m bypass bit (ICCR0.DMBP).
2
C operation
2
C operation enable bit (ICCR0.EN).
Control
2
To disable I
C operation
2
To enable I
C operation
2
C master or slave mode
Control
To select master mode
To select slave mode
Control
To bypass divider m
2
C
2
C interface.
Sample Programs" in Preface.
2
I
C operation enable bit (EN)
Set the bit to "0".
Set the bit to "1"
Master/slave select bit (MSS)
Set the bit to "1"
Set the bit to "0".
Divider-m bypass bit (DMBP)
Set the bit to "1"
2
CHAPTER 22 I
C
407

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb95170j series

Table of Contents