71M6523-DB Maxim Integrated Products, 71M6523-DB Datasheet - Page 51
![no-image](/images/manufacturer_photos/0/4/417/maxim_integrated_products_sml.jpg)
71M6523-DB
Manufacturer Part Number
71M6523-DB
Description
Power Management Modules & Development Tools 71M6521D 68 QFN DEMO BOARD
Manufacturer
Maxim Integrated Products
Datasheet
1.71M6521DE-DB.pdf
(138 pages)
- Current page: 51 of 138
- Download datasheet (2Mb)
71M652X Software User’s Guide
the interrupt of the EEPROM (external interrupt 5), currently unused (code is available in Io\eeprom.c). Timer 0 shares
its interrupt priority bits with FWCOL, the flash write timing interrupt, also unused (flash code is in Util\flash.c).
The lowest priority is xfer_busy_isr() (Meter\ce.c) and the rtc_isr() interrupts (Io\rtc.c; both share external interrupt 6,
Meter\io652x.c). These can usually wait up to half a second. The XFER_BUSY interrupt, in particular, takes up to 4
milliseconds to copy data from the CE, so though it is very important, it needs to be low priority in order to let other
interrupts run.
The RTC can be calibrated by using the RTC-1-Second interrupt to toggle a DIO pin, and measuring the external
square wave against a traceable time standard. In this case, a calibration mode must temporarily turn off the CE (it
shares the interrupt) set external interrupt 6 to the highest priority and the code leading from the vector to the RTC's
DIO-toggle should have an unchanging execution time.
Although the demo code does not do this, it is possible to run preemptive code at the same interrupt priority as the
main loop. This creates a fifth priority below the lowest priority. To do this, set an interrupt to the lowest priority. This
interrupt's service routine must push the address of the fifth-priority code on the stack, and run RTI. RTI clears the
fourth-priority hardware, and then returns into the fifth-priority code, running it at the same interrupt level as the main
loop. For example, this permits preemptive software timers that run at the same priority as the main loop.
All interrupt service routines (ISRs) must be declared “small reentrant”. Also, all routines called by ISRs must be re-
entrant as well. Priorities are set using the IP0 and IP1 SFRs, as follows:
This results in the priority assignment shown in Table 5-11.
timer0 of the MPU is the main system timer, and it is used to generate a 10ms timer tick, which is adjusted for MPU
clock speed. The timer tick (variable tick_count) is used to control the software timers. The software timers are updated
by the stm_run() function in the main loop of the background task. Eight software timers can be simultaneously running.
If it is desired to change the system timer to timer1, the include file called out in stm.c has to be changed to tmr1.h.
timer1 is used for delay functions, e.g. for EEPROM or RTC access control. Timer 1 is enabled and starts functioning
by calling the “Add_Delay_Func()” function as defined in the timer.c module.
Various macros are available to control the timers:
These routines are very similar to the software timer commands, in stm.h.
Revision 1.7
•
•
•
•
•
IP0 (SFR 0xA9) = 0x1A = 0001 1010
IP1 (SFR 0xB9) = 0x2C = 0000 1100
tmr_start(A, B, C) has three parameters: A is the timer time, the number of ticks to reload on each interrupt. B
is true if the timer should restart itself when it expires. C is a pointer to a reentrant function.
tmr_stop() stops the timer.
tmr_running() returns TRUE if the timer is running.
Group
0
1
2
3
4
5
Timer Interrupt
IP1 Bit
0
0
1
1
0
0
© Copyright 2005-2007 TERIDIAN Semiconductor Corporation
IP0 Bit
0
1
0
1
1
0
Table 5-11: Interrupt Priority Assignment
Priority
0
1
2
3
1
0
TERIDIAN Proprietary
External interrupt
External interrupt
UART 0 interrupt
Timer 0 interrupt
Timer 1 interrupt
0 (DIO)
1 (DIO)
-
Affected Interrupts
UART 1 interrupt
-
-
-
-
-
Ext 6 (XFER_BUSY,
Ext 2 (comparators)
Ext 4 (comparators)
Ext 3 (CE_BUSY)
Ext 5 (EEPROM)
RTC_1S
-
51 of 138
Related parts for 71M6523-DB
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![71M6523-IM/F](/images/manufacturer_photos/0/4/417/maxim_integrated_products_tmb.jpg)
Part Number:
Description:
Current & Power Monitors & Regulators Residential Energy Meter IC
Manufacturer:
Maxim Integrated Products
![71M6523-IM](/images/manufacturer_photos/0/4/417/maxim_integrated_products_tmb.jpg)
Part Number:
Description:
Current & Power Monitors & Regulators Residential Energy Meter IC
Manufacturer:
Maxim Integrated Products
![71M6523-IMR](/images/manufacturer_photos/0/4/417/maxim_integrated_products_tmb.jpg)
Part Number:
Description:
Current & Power Monitors & Regulators Residential Energy Meter IC
Manufacturer:
Maxim Integrated Products
![71M6523-IMR/F](/images/manufacturer_photos/0/4/417/maxim_integrated_products_tmb.jpg)
Part Number:
Description:
Current & Power Monitors & Regulators Residential Energy Meter IC
Manufacturer:
Maxim Integrated Products
![MAX7528KCWP](/images/manufacturer_photos/0/4/417/maxim_integrated_products_tmb.jpg)
Part Number:
Description:
MAX7528KCWPMaxim Integrated Products [CMOS Dual 8-Bit Buffered Multiplying DACs]
Manufacturer:
Maxim Integrated Products
Datasheet:
![MAX3261CCJ](/images/manufacturer_photos/0/4/417/maxim_integrated_products_tmb.jpg)
Part Number:
Description:
Single +5V, fully integrated, 1.25Gbps laser diode driver.
Manufacturer:
Maxim Integrated Products
Datasheet:
![MAX3263CAG](/images/manufacturer_photos/0/4/417/maxim_integrated_products_tmb.jpg)
Part Number:
Description:
Single +5V, fully integrated, 155Mbps laser diode driver.
Manufacturer:
Maxim Integrated Products
Datasheet:
![MAX8809AETL+](/images/manufacturer_photos/0/4/417/maxim_integrated_products_tmb.jpg)
Part Number:
Description:
VRD11/VRD10, K8 Rev F 2/3/4-Phase PWM Controllers with Integrated Dual MOSFET Drivers
Manufacturer:
Maxim Integrated Products
Datasheet:
![MAX1535CETJ+T](/images/manufacturer_photos/0/4/417/maxim_integrated_products_tmb.jpg)
Part Number:
Description:
Highly Integrated Level 2 SMBus Battery Chargers
Manufacturer:
Maxim Integrated Products
Datasheet:
![DS2741N+](/images/manufacturer_photos/0/4/417/maxim_integrated_products_tmb.jpg)
Part Number:
Description:
Current Monitor and Accumulator with Integrated Sense Resistor; ; Temperature Range: -40°C to +85°C
Manufacturer:
Maxim Integrated Products
![MAX13450EAUD+T](/images/manufacturer_photos/0/4/417/maxim_integrated_products_tmb.jpg)
Part Number:
Description:
TSSOP 14/A°/RS-485 Transceivers with Integrated 100O/120O Termination Resis
Manufacturer:
Maxim Integrated Products
![MAX13451EAUD+T](/images/manufacturer_photos/0/4/417/maxim_integrated_products_tmb.jpg)
Part Number:
Description:
TSSOP 14/A°/RS-485 Transceivers with Integrated 100O/120O Termination Resis
Manufacturer:
Maxim Integrated Products
![MAX17497BATE+](/images/manufacturer_photos/0/4/417/maxim_integrated_products_tmb.jpg)
Part Number:
Description:
QFN 16/A°/AC-DC and DC-DC Peak-Current-Mode Converters with Integrated Step
Manufacturer:
Maxim Integrated Products
![MAX17502FATB+T](/images/manufacturer_photos/0/4/417/maxim_integrated_products_tmb.jpg)
Part Number:
Description:
TDFN/A/65V, 1A, 600KHZ, SYNCHRONOUS STEP-DOWN REGULATOR WITH INTEGRATED SWI
Manufacturer:
Maxim Integrated Products
![MAX1978EVKIT](/images/manufacturer_photos/0/4/417/maxim_integrated_products_tmb.jpg)
Part Number:
Description:
Integrated Temperature Controller f
Manufacturer:
Maxim Integrated Products