Example MPC5775K IIC Communication with RTC PCA8565TS/1 S32DS

File uploaded by Martin Kovar Employee on Apr 26, 2016Last modified by Martin Kovar Employee on Apr 27, 2016
Version 2Show Document
  • View in full screen mode

********************************************************************************

* Detailed Description:

* This example shows, how to communicate with RTC module PCA8565TS/1 via I2C bus.

* For this purpose is used I2C driver created by Petr Stancik. Information from

* RTC are sent using DMA via UART. The whole example consists from two parts.

* Second part is PC application called GraphicalTerminalExample. This application

* handles data from RTC and displays them. RTC also can be set using PC application.

* Microcontroller receives data from PC application using DMA via UART.

* Received data are written to RTC module.

*

* UART connection parameters:

* Baud rate 19200b/s

* 8 data bits

* 1 stop bit

* none parity

*

* For correct function of java application, it is required Java 1.8.0_40

*

* ------------------------------------------------------------------------------

* Test HW:         MPC5775K-356DS, MPC57xx Motherboard

* MCU:             PPC5775KMMY3B 0N76P

* Fsys:            PLL0 266MHz

*                    Z4 Core 133MHz

* Debugger:        Lauterbach Trace32

*                  PeMicro USB-ML-PPCNEXUS

* Target:          internal_FLASH (debug mode, release mode)

* EVB connection:

*                     UART connection

*                     J14.1 connected to P12.6 (RX)

*                     J13.1 connected to P12.7 (TX)

*

*                     RTC connection

*                     RTC pin 4 - connected to any GROUND pin

*                     RTC pin 8 - connected to any 3.3V pin

*                     RTC pin 6 - connected to P8.10 (SCL - I2C clock)

*                     RTC pin 5 - connected to P8.11 (SDA - I2C data)

*

********************************************************************************

Attachments

Outcomes