AN2839 Freescale Semiconductor / Motorola, AN2839 Datasheet - Page 13

no-image

AN2839

Manufacturer Part Number
AN2839
Description
Implementing a Lamp Dimmer with an HC908Q Family MCU
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
;*******************************************************************************************
;* Title: dimmer.asm
;*******************************************************************************************
;* Author: Marcus Espindola - Freescale SPS/BSTC
;*
;* Description: Implementing a Lamp Dimmer with HC908Qx MCU.
;*
;* Documentation: HC908QY4 Data Sheet (MC68HC908QY4/D) for register and bit explanations
;*
;* Include Files: dimmer.equ, MC68HC908QT4.equ
;*
;* Assembler: P&E Microcomputer Systems - CASM for HC08
;*
;*
;* Revision History:
;* Rev #
;* -----
;* 0.3
;* 0.2
;* 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.
;*******************************************************************************************
;*******************************************************************************************
;* Equates and Data Table Includes
;*******************************************************************************************
trim_val:
;*******************************************************************************************
;* Constants and Variables for this file
;*******************************************************************************************
Freescale Semiconductor
-----------
org $FFC0
DC.B $FF
10-Sep-04
15-May-04
09-Feb-04
include 'MC68HC908QT4.equ'
org
include 'dimmer.equ'
Metrowerks CodeWarrior Compiler for HC08 V-5.0.17
Date
RamStart
Implementing a Lamp Dimmer with an HC908Q Family MCU, Rev. 0
Who
---------
Espindola
Espindola
Espindola
; here we set the FLASH trim to a default value.
; DO NOT change this value, as the trim will not be
; automatically calibrated by the programming interface if
; this value is anything other than $FF
Comments
-------------------------------------------------------
Adjusted timer values according to circuit
Included 1 minute timer
Initial data entry
; For the QT1, QT2, QT4, QY1, QY2, QY4
Copyright (c) Freescale 2004
Software Description
13

Related parts for AN2839