background image

 

CONFIDENTIAL

                    DM816x RTC User Guide v1.1 

   
 
                                                                                                                                                                                                                                                             

___________________________________________________________________________________________ 

                                                                                                                                                                 

Z3 Technology, LLC 

 100 N. 8th St., Suite 250 

 Lincoln, NE 68508 USA 

 +1.402.323.0702 

1

 

Introduction 

 
The DM8148, DM8168, and DM8169 modules from Z3 Technology contain a real time clock circuit that can be used to 

keep the time and date even when power is removed. The RTC uses a CR1220 or CR1225 lithium battery connected to 

the module (the CR1225 will provide slightly more power). 

 
In order for this hardware real time clock to function, the proper firmware needs to be loaded into the MSP430. The 

modules do NOT have this firmware loaded prior to leaving the factory.    In order to enable the RTC function, the RTC 

firmware needs to be uploaded to the module.    This document describes how to do this. 

 

2

 

The RTC 

 

3.1    RTC Battery 

 
The RTC firmware controls the power drain on the RTC battery. Without the proper RTC firmware loaded, the RTC 

battery will be drained very quickly -- in a matter of minutes. 

 

Do not insert a battery in the battery holder before the RTC firmware is loaded, or the battery will be lost

.    Please 

wait until after the RTC software is installed before inserting the battery in the battery holder. The battery should last for 

3 to 5 years in normal conditions. 

 

3.1    RTC Power 

 
The RTC can receive power from the main module power, the RTC battery, or from the expansion connector J5 pin 83. 

Regardless of a battery being present, the RTC circuit will receive power from the main module any time the +12V 

power is applied. This is true even if the power switch is OFF on modules that have a power switch. Whenever there is 

no +12V power applied to the module, then either the RTC battery or J5 pin 83 will be able to power the RTC. 

 
J5 pin 83 can be used to connect a battery with longer life than the CR1220/1225 or if the battery needs to be assembled 

on the application board. 

 

 

 

 

Summary of Contents for DM8148

Page 1: ...___________________________________________________________________________________________ Z3 Technology LLC 100 N 8th St Suite 250 Lincoln NE 68508 USA 1 402 323 0702 1 RTC Firmware for the DM81xx MOD Family DOC USR 0016 02 September 6 2013 ...

Page 2: ..._________________________________________________________________ Z3 Technology LLC 100 N 8th St Suite 250 Lincoln NE 68508 USA 1 402 323 0702 2 Revision History Version Date Change Note Author 1 0 3 7 12 Initial version BM 1 1 9 6 13 Updated programming procedure RC ...

Page 3: ...are Programmed Successfully Quick Test 10 5 Verifying the Firmware Programmed Successfully Running the Linux Apps 11 5 1 Building the software 11 5 2 Running the software 12 6 Inserting the Battery 13 7 Programming Other Modules 13 LIST OF FIGURES Figure 1 TI MSP 430 Debugger 5 Figure 2 Elprotronic Download Page MSP430 Portion 5 Figure 3 Connecting the Debugger to the Z3 DM8168 APP 02 6 Figure 4 E...

Page 4: ... RTC firmware controls the power drain on the RTC battery Without the proper RTC firmware loaded the RTC battery will be drained very quickly in a matter of minutes Do not insert a battery in the battery holder before the RTC firmware is loaded or the battery will be lost Please wait until after the RTC software is installed before inserting the battery in the battery holder The battery should las...

Page 5: ...p fet430uif To load the RTC firmware perform the following steps 3 1 Installing the programming software 1 Download the Elprotronic FET Pro430 Lite programming software This can be found at the following site http www elprotronic com download html Find the Flash Programmers for TI s MSP430 MCU uses TI s FET Adapter at the very bottom of the page and click on the link that says FREE 2 Install the d...

Page 6: ...is running normally 6 Connect the USB end of the MSP430 debugger to the PC with the Elprotronic Software installed Once you do so the power light on the MSP430 debugger should turn green 3 3 Running the programming software 7 Make a directory in the C drive of your PC called Z3 MSP430 8 Copy the MSP_DM81xx_v2 2 txt file received from Z3 into this directory 9 Run the Elprotronic FET Pro430 Lite sof...

Page 7: ..._______________________________________________ Z3 Technology LLC 100 N 8th St Suite 250 Lincoln NE 68508 USA 1 402 323 0702 7 Figure 4 Elprotronic Main Menu 1 Click here and open MSP_DM81xx_v2 2 txt 2 Select Group MSP430F2xx and then MSP430F2012 3 Select Setup Connection Device Reset ...

Page 8: ...etup Connection Device Reset This should open the Connection Reset Options menu 13 Select Spy Bi Wire as the method of Communication with the Target Device 14 Under Final Target Device action select Reset and start the application program 15 Ensure COM Port is set to USB à Automatic 16 Click Ok Figure 5 Elprotronic Target Connection Reset Options Menu 1 Select Spy Bi Wire 2 Select Reset and start ...

Page 9: ... 17 In the main menu click on the AUTO PROG key The Status should change to Active and the software should automatically go through the Verify Security Fuse Erase Flash Write Flash and Verify Flash stages Figure 6 shows what the screen should look like after a successful program 17 The Firmware should now be programmed Figure 6 Elprotronic Main Menu After Successful Programming Click here to start...

Page 10: ... the space bar before u boot ends so that you are in the u boot prompt 3 Within the u boot prompt type Z3 DM8168 MOD i2c md 42 0 20 You should see a row of register values followed by a row of dd s Figure 7 Note that the value at 0000 will likely be different from 01 4 Again type Z3 DM8168 MOD i2c md 42 0 20 You should see the same thing except the very first value at 0000 should gradually increme...

Page 11: ... below detail where to copy these files and how to build and use it 5 1 Building the software 1 Go to the project directory and type source z3 env make sure z3 env and z3apps are in this directory ls note actual contents may be slightly different build tools factory images makeall sh sysapps u boot z3 env dvr rdk filesys kernels Makefile toolchain z3apps source z3 env 2 Go to the z3apps app direct...

Page 12: ...32 44 Date YYYY MM DD 2013 08 27 Time HH MM SS 08 32 45 You should see the version of the RTC software and date time each time you press enter Press Ctl C to exit 11 Type usr local bin hwclock2 r to print the time and date from the RTC usr local bin hwclock2 r Date YYYY MM DD 2013 08 27 Time HH MM SS 08 34 00 12 Type usr local bin hwclock2 set date m d y h m s to set the RTC time date usr local bi...

Page 13: ...rmly snapped in place It is a common error to not snap the 5th connector into place When this happens it will seem like the MOD is operating correctly in that it might boot up but then unexpected behavior can happen later It is therefore a good idea to make doubly sure that the MOD and APP boards are firmly connected at this stage you should hear a slight snap when that fifth connector is firmly i...

Reviews: