AN2475 Freescale Semiconductor / Motorola, AN2475 Datasheet - Page 19

no-image

AN2475

Manufacturer Part Number
AN2475
Description
Generating a PWM Signal Modulated by an Analog Input Using the MC68HC908QY4 Microcontroller
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
CH4:
CH3:
CH2:
CH1:
CH0:
; bit position masks
mCOCO:
mAIEN:
mADCO:
mCH4:
mCH3:
mCH2:
mCH1:
mCH0:
ADR:
ADICLK:
; bit numbers for use in BCLR, BSET, BRCLR, and BRSET
ADIV2:
ADIV1:
ADIV0:
; bit position masks
mADIV2:
mADIV1:
mADIV0:
;****
;*
BSR:
; bit numbers for use in BCLR, BSET, BRCLR, and BRSET
SBSW
; bit position masks
mSBSW:
SRSR:
; bit numbers for use in BCLR, BSET, BRCLR, and BRSET
POR:
PIN:
COP:
ILOP:
ILAD:
MODRST:
LVI:
; bit position masks
mPOR:
mPIN:
mCOP:
mILOP:
mILAD:
mMODRST:
mLVI:
BRKAR:
; bit numbers for use in BCLR, BSET, BRCLR, and BRSET
BDCOP:
; bit position masks
mBDCOP:
BFCR:
MOTOROLA
System Integration Module (SIM)
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
$FE00
1
%00000010
$FE01
7
6
5
4
3
2
1
%10000000
%01000000
%00100000
%00010000
%00001000
%00000100
%00000010
$FE02
0
%00000001
$FE03
4
3
2
1
0
%10000000
%01000000
%00100000
%00010000
%00001000
%00000100
%00000010
%00000001
$3E
$3F
7
6
5
%10000000
%01000000
%00100000
Generating a PWM Signal Modulated by an Analog Input
Freescale Semiconductor, Inc.
For More Information On This Product,
Using the MC68HC908QY4 Microcontroller
;ADC channel select bit 4
;ADC channel select bit 3
;ADC channel select bit 2
;ADC channel select bit 1
;ADC channel select bit 0
;Conversions complete
;ADC interrupt enable bit
;ADC continuous conversion
;ADC channel select bit 4
;ADC channel select bit 3
;ADC channel select bit 2
;ADC channel select bit 1
;ADC channel select bit 0
;ADC data register
;ADC input clock register
;ADC clock prescaler bit 2
;ADC clock prescaler bit 1
;ADC clock prescaler bit 0
;ADC clock prescaler bit 2
;ADC clock prescaler bit 1
;ADC clock prescaler bit 0
;SIM break status register
;SIM break stop/wait
;SIM break stop/wait
;SIM reset status register
;Power-on reset
;External reset
;COP reset
;Illegal opcode reset
;Illegal address reset
;Monitor mode entry module reset
;LVI reset
;Power-on reset
;External reset
;COP reset
;Illegal opcode reset
;Illegal address reset
;Monitor mode entry module reset
;LVI reset
;Break auxiliary register
;Break disable COP
;Break disable COP
;Break flag control register
Go to: www.freescale.com
*************************************************
Register and Bit Definitions for MC68HC908QY4
AN2475/D
19

Related parts for AN2475