AN2839 Freescale Semiconductor / Motorola, AN2839 Datasheet - Page 21

no-image

AN2839

Manufacturer Part Number
AN2839
Description
Implementing a Lamp Dimmer with an HC908Q Family MCU
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
;*******************************************************************************************
;* Title: dimmer.equ
;*******************************************************************************************
;* Author: Marcus Espindola - Freescale SPS/BSTC
;*
;* Description: Constants and variables definitions for MC68HC908QY4 and MC68HC908QT4.
;*
;* Documentation: HC908QY4 Data Sheet (MC68HC908QY4/D) for register and bit explanations
;*
;* Include Files:
;*
;* Assembler: P&E Microcomputer Systems - CASM for HC08
;*
;*
;* Revision History:
;* Rev #
;* -----
;* 0.1
;*******************************************************************************************
;*******************************************************************************************
;* Freescale reserves the right to make changes without further notice to any product
;* herein to improve reliability, function, or design. Freescale does not assume any
;* liability arising out of the application or use of any product, circuit, or software
;* described herein; neither does it convey any license under its patent rights nor the
;* rights of others. Freescale products are not designed, intended, or authorized for
;* use as components in systems intended for surgical implant into the body, or other
;* applications intended to support life, or for any other application in which the
;* failure of the Freescale product could create a situation where personal injury or
;* death may occur. Should Buyer purchase or use Freescale products for any such
;* intended or unauthorized application, Buyer shall indemnify and hold Freescale and
;* its officers, employees, subsidiaries, affiliates, and distributors harmless against
;* all claims, costs, damages, and expenses, and reasonable attorney fees arising out
;* of, directly or indirectly, any claim of personal injury or death associated with
;* such unintended or unauthorized use, even if such claim alleges that Freescale was
;* negligent regarding the design or manufacture of the part.
;*
;* Freescale is a registered trademark of Freescale Semiconductor, Inc.
;*******************************************************************************************
;*******************************************************************************************
;* Constants and Variables for this file
;*******************************************************************************************
initCfg1:
;
;
;
;
;
;
;
;
;
initCfg2:
;
;
;
;
;
;
;
Freescale Semiconductor
-----------
09-Feb-04
equ
equ
Metrowerks CodeWarrior Compiler for HC08 V-5.0.17
Date
%00010011
%01000001
||||||||
|||||||+-COPD
||||||+--STOP
|||||+---SSREC
||||+----LVI5OR3 - 0 set LVI for 3V system
|||+-----LVIPWRD - 1 disable power to LVI system
||+------LVIRSTD - 0 enable reset on LVI trip
|+-------LVISTOP - 0 disable LVI in STOP mode
+--------COPRS
||||||||
|||||||+-RSTEN
||||||+--R
|||||+---R
||||+----OSCOPT0 - 0 Set oscillator option as internal
|||+-----OSCOPT1 - 0 Set oscillator option as internal
||+------R
Implementing a Lamp Dimmer with an HC908Q Family MCU, Rev. 0
Who
---------
Espindola
;Config1 Register value
CONFIG1 is a write once register
;Config2 Register value
CONFIG2 is a write once register
Comments
--------------------------------------------
Initial data entry
- 1 disable COP Watchdog
- 1 enable STOP instruction
- 0 4096 cycle STOP recovery
- 0 long COP timeout
- 1 Reset function active in pin
- 0 Reserved bit
- 0 Reserved bit
- 0 Reserved bit
Copyright (c) Freescale 2004
Software Description
21

Related parts for AN2839