<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[micropython driver for the Epson RX8130CE Real Time Controller used on the Tab5]]></title><description><![CDATA[<p dir="auto">I've just finished work on a full feature micropythin driver for this Real Time Controller chip fitted to the Tab5 (and other M5 products etc.)</p>
<p dir="auto"><a href="https://codeberg.org/easytarget/rx8130ce-micropython" target="_blank" rel="noopener noreferrer nofollow ugc">https://codeberg.org/easytarget/rx8130ce-micropython</a></p>
<p dir="auto">As an example;</p>
<pre><code class="language-code"># Create a I2C object
# set sda/scl as needed, example below for esp32p4

from machine import I2C, Pin
i2c = I2C(sda = Pin(31), scl = Pin(32))

# Create a clock object
from rx8130ce import RX8130
clock = RX8130(i2c)

print(clock.timestring())

# demo of timer
from time import sleep

# set a timer for 10s at 64Hz countdown
clock.timer_enable(count = 640, tsel = 1)

# wait for the timer
while not clock.timer_interrupt():
  sleep(0.1)
  print('.', end='')
print('\nTimeout: ', clock.timestring())

# disable timer
clock.timer_enable(0)
</code></pre>
<p dir="auto">This gives:</p>
<pre><code class="language-code">MPY: soft reboot
MicroPython v1.27.0 on 2025-12-09; Generic ESP32P4 module with WIFI module of external ESP32C6 with ESP32P4
Type "help()" for more information.
&gt;&gt;&gt; import test.py
Fri, 30 Jan 46, 17:16:06
....................................................................................................
Timeout:  Fri, 30 Jan 46, 17:16:16
&gt;&gt;&gt; 
</code></pre>
<p dir="auto">There is a lot more in the repo, including a demo of how to use the RTC to set the system clock at boot time.</p>
<p dir="auto">All the chip 'advanced' features can be accessed via the driver, but are of limited value on the Tab5 due to not having some pins connected, and the <em>/IRQ</em> pin being rendered almost useless by the power management mcu.</p>
]]></description><link>https://community.m5stack.com/topic/8046/micropython-driver-for-the-epson-rx8130ce-real-time-controller-used-on-the-tab5</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 06:43:23 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/8046.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 30 Jan 2026 17:40:55 GMT</pubDate><ttl>60</ttl></channel></rss>