Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
ARM?? Cortex?? M4 Cookbook

You're reading from  ARM?? Cortex?? M4 Cookbook

Product type Book
Published in Mar 2016
Publisher Packt
ISBN-13 9781782176503
Pages 296 pages
Edition 1st Edition
Languages
Author (1):
Dr. Mark Fisher Dr. Mark Fisher
Profile icon Dr. Mark Fisher
Toc

Table of Contents (16) Chapters close

ARM Cortex M4 Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
A Practical Introduction to ARM CORTEX C Language Programming Programming I/O Assembly Language Programming Data Conversion Multimedia Support Real-Time Signal Processing Real-Time Embedded Systems Embedded Toolchain Index

Setting the RTE for the I2C Peripheral Bus


The LCD touchscreen, three-axis motion sensor (LIS302DL), audio-codec (CS42L52), 64k EEPROM (M24C64), camera, and other peripherals that are supported by the MCBSTM32F400 evaluation board are connected to the STM32C microcontroller by a synchronous serial bus called I2C. The bus standard adopted is called the Inter-Integrated Circuit (I2C) Interface, which was developed by Phillips in the 1980s. Before we can use any peripherals that are connected to the I2C bus, we must first configure the I2C interface. We'll illustrate this by a recipe called touchScreenDemo_c6v0. Later in this chapter, we'll show you how to configure other I2C peripherals.

How to do it…

To set RTE for an I2C Peripheral Bus perform the following steps:

  1. Open a new project (touchScreenDemo), in a new folder named touchScreenDemo_c6v0.

  2. Using the RTE manager, select Touchscreen (an I2C peripheral) under Software Component | Board Support.

  3. Set the CMSIS and Device options, as we've done...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime