beautypg.com

A1-1, Maxq family user’s guide: maxq2010 supplement – Maxim Integrated MAXQ Family Users Guide: MAXQ2010 Supplement User Manual

Page 143

background image

MAXQ Family User’s Guide:

MAXQ2010 Supplement

A1-1

APPENDIX 1: SAMPLE MAXQ2010 DEVICE INCLUDE FILE FOR

MAX-IDE

#define PO0

M0[00h]

; Port 0 Output

#define PO1

M0[01h]

; Port 1 Output

#define PO2

M0[02h]

; Port 2 Output

#define PO3

M0[03h]

; Port 3 Output

#define EIF0

M0[04h]

; External Interrupt Flag 0

#define EIE0

M0[05h]

; External Interrupt Enable 0

;

M0[06h]

;

M0[07h]

#define PI0

M0[08h]

; Port 0 Input

#define PI1

M0[09h]

; Port 1 Input

#define PI2

M0[0Ah]

; Port 2 Input

#define PI3

M0[0Bh]

; Port 3 Input

#define EIES0

M0[0Ch]

; External Interrupt Edge Select 0

;

M0[0Dh]

;

M0[0Eh]

#define PWCN

M0[0Fh]

; Power Control

#define PD0

M0[10h]

; Port 0 Direction

#define PD1

M0[11h]

; Port 1 Direction

#define PD2

M0[12h]

; Port 2 Direction

#define PD3

M0[13h]

; Port 3 Direction

;

M0[14h]

;

M0[15h]

;

M0[16h]

;

M0[17h]

#define RTRM

M0[18h]

; Real Time Clock Trim

#define RCNT

M0[19h]

; Real Time Clock Control

#define RTSS

M0[1Ah]

; Real Time Clock Subsecond Counter

#define RTSH

M0[1Bh]

; Real Time Clock Second Counter High

#define RTSL

M0[1Ch]

; Real Time Clock Second Counter Low

#define RSSA

M0[1Dh]

; Real Time Clock Subsecond Alarm

#define RASH

M0[1Eh]

; Real Time Clock Time-of-Day Alarm High

#define RASL

M0[1Fh]

; Real Time Clock Time-of-Day Alarm Low

#define PO4

M1[00h]

; Port 4 Output

#define PO5

M1[01h]

; Port 5 Output

#define PO6

M1[02h]

; Port 6 Output

#define SPIB

M1[03h]

; SPI Data Buffer

#define EIF1

M1[04h]

; External Interrupt Flag 1

#define EIE1

M1[05h]

; External Interrupt Enable 1

#define EIF2

M1[06h]

; External Interrupt Flag 2

#define EIE2

M1[07h]

; External Interrupt Enable 2

#define PI4

M1[08h]

; Port 4 Input

#define PI5

M1[09h]

; Port 5 Input

#define PI6

M1[0Ah]

; Port 6 Input